[STM32GENERIC] F429i Discovery

Discussions about the STM32generic core
ChrisMicro
Posts: 308
Joined: Fri Mar 24, 2017 4:51 pm
Location: Germany

[STM32GENERIC] F429i Discovery

Post by ChrisMicro » Tue Jun 20, 2017 9:55 am

I just saw that huaweix has added support for all components of the F429i Discovery board.
There is also a demo but I don't know how to compile it because it does not appear in the examples menu.

Has anybody an idea?

danieleff
Posts: 336
Joined: Thu Sep 01, 2016 8:52 pm
Location: Hungary
Contact:

Re: [STM32GENERIC] F429i Discovery

Post by danieleff » Tue Jun 20, 2017 11:16 am

Its just a copy from examples in the F4 firmware http://www.st.com/en/embedded-software/stm32cubef4.html

It is good to look at those examples, but really not the arduino way. At all.

For example, if that board really has ILI9341 on SPI, than the Adafruit ILI9341 just works (After setting the correct SPI.stm32SetInstance(SPIx), SPI.stm32SetMOSI(...) ...), and you don't need anything else.

Oh how I wish I had that board...

ChrisMicro
Posts: 308
Joined: Fri Mar 24, 2017 4:51 pm
Location: Germany

Re: [STM32GENERIC] F429i Discovery

Post by ChrisMicro » Tue Jun 20, 2017 2:44 pm

For example, if that board really has ILI9341 on SPI, than the Adafruit ILI9341 just works
That would be much too easy and I would have done an example long time ago.
It is parallel ( p.34 ).
Oh how I wish I had that board...
In my opinion you should ask STM. They shall give you one for free.
Its worth is 1/2 hour firmware developers work and I think you invested a little bit more than 1/2 hour in this project ;-)

ChrisMicro
Posts: 308
Joined: Fri Mar 24, 2017 4:51 pm
Location: Germany

Re: [STM32GENERIC] F429i Discovery

Post by ChrisMicro » Wed Jun 21, 2017 9:17 am

Meanwhile "huaweix" has a working example which drives the display ;)

He set the path separate to our examples directory and added all necessary libraries.
Probably that's a quite good strategy to have all the important libraries related to the board in its location.

Daniel, what do you think? It would probably very good to include the work of huaweix quite soon in the repo.

danieleff
Posts: 336
Joined: Thu Sep 01, 2016 8:52 pm
Location: Hungary
Contact:

Re: [STM32GENERIC] F429i Discovery

Post by danieleff » Wed Jun 21, 2017 10:00 am

Again, it is just the firmware examples. Download the firmware, and you get examples for everything.
It is fine if you do your own project without arduino.
But look at the code!

Code: Select all

#define LED3_PIN                                GPIO_PIN_13
#define LED3_GPIO_PORT                          GPIOG
#define LED3_GPIO_CLK_ENABLE()                  __GPIOG_CLK_ENABLE()  
#define LED3_GPIO_CLK_DISABLE() __GPIOG_CLK_DISABLE() 
What the heck, you do not do this in Arduino! Do not use `BSP_LED_Toggle(LED3);` to blink led.

Code: Select all

#define DISCOVERY_SPIx                          SPI5
#define DISCOVERY_SPIx_CLK_ENABLE()             __SPI5_CLK_ENABLE()
#define DISCOVERY_SPIx_GPIO_PORT                GPIOF                      /* GPIOF */
#define DISCOVERY_SPIx_AF GPIO_AF5_SPI5
What? No. Use SPIClass. etc etc...

This is absolutely not the way to write arduino examples. It is literally circumventing the framework, and not using anything.

He created a pull request with a million different things in them. He reverted #20 without telling why. Does not understand git, just uploads files one by one. Wrote "FUCKST" in a commit. Add a html file. Does not tell why did things, just "fix errs" Does not communicate.

Jesus christ...

ChrisMicro
Posts: 308
Joined: Fri Mar 24, 2017 4:51 pm
Location: Germany

Re: [STM32GENERIC] F429i Discovery

Post by ChrisMicro » Wed Jun 21, 2017 11:37 am

Hi Daniel,

I saw that it is quite unclean, but at least the display was working.
So there seems to be a change to use the display driver without to much effort.
I know you don't have the board ... I tried to send STM a message that the should provide you one.

About library compatibility: I will open a general thread regarding all frameworks.

Cheers,
Christoph

ChrisMicro
Posts: 308
Joined: Fri Mar 24, 2017 4:51 pm
Location: Germany

Re: [STM32GENERIC] F429i Discovery

Post by ChrisMicro » Fri Jun 30, 2017 9:11 am

I've just added a Adafruit-GFX compatible wrapper and two examples.

Now the Adafruit-GFX functions can be used for the graphics.

danieleff
Posts: 336
Joined: Thu Sep 01, 2016 8:52 pm
Location: Hungary
Contact:

Re: [STM32GENERIC] F429i Discovery

Post by danieleff » Fri Jun 30, 2017 10:08 am

FYI ST wants to create individual repos for "hardware features" of their boards https://github.com/stm32duino/Arduino_C ... /issues/48

If the do, and only use HAL, than I will "use" those too, so it will be their responsibility to create and maintain the libraries ;-P

fpiSTM
Posts: 243
Joined: Fri Sep 16, 2016 12:33 pm
Location: Le Mans, France

Re: [STM32GENERIC] F429i Discovery

Post by fpiSTM » Fri Jun 30, 2017 3:16 pm

danieleff wrote:
Fri Jun 30, 2017 10:08 am
If the do, and only use HAL, than I will "use" those too, so it will be their responsibility to create and maintain the libraries ;-P
We also accept contribution/suggestion, it's an open source project ;) All contributors/contributions are welcome. :mrgreen:

ChrisMicro
Posts: 308
Joined: Fri Mar 24, 2017 4:51 pm
Location: Germany

Re: [STM32GENERIC] F429i Discovery

Post by ChrisMicro » Fri Jun 30, 2017 4:38 pm

It is probably a good idea to separate the board drivers in another github repo.
Probably it can speed up the development process.
The most important thing is in that case that there is a description on how to install both repos.
Usually I simply make "git clone" because than I can make changes in my repo very quick but I don't know how this collides with an installation by the board manager ... if you could just describe the "work flow" ...

Post Reply