cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F2429 DISC1 Configuration with TouchGFX & CubeMX 5.0

Mon2
Senior III

Hi. The integration between TouchGFX and CubeMX 5.0 is quite complex. Recent attempt of a combo project is able to compile without errors on IAR but the GUI generated with TouchGFX results in a blank TFT display on this kit. Guessing something to do with the LCD display and will attempt to debug.

0690X000006CmnOQAS.png

CubeMX is complaining about the Platform Settings so is the issue with the SPI_PIN?

0690X000006CmnTQAS.png

Further to the 3 templates posted on this topic:

https://touchgfx.zendesk.com/hc/en-us/articles/360019884752-Configuring-STM32F746G-DISCO

https://touchgfx.zendesk.com/hc/en-us/articles/360020001992-Configuring-STM32F7508-DISCO

https://touchgfx.zendesk.com/hc/en-us/articles/360020208091-Configuring-STM32F769I-DISCO

can someone post a similar solution for the STM32F429 DISC1 target?

There are many variables that can derail a working solution.

Thanks!

16 REPLIES 16
Mon2
Senior III

Hello again @SebastianS​. Do not have the same kit in front of me but did a dry run of the toolchain using IAR as the compiler. If you plan to use a different compiler, write back. As far as we know, only the IAR and SW4STM32 compilers work as of this writing with CubeMX and TouchGFX integration.

This effort with the IAR compiler resulted in only 7 raised errors which is much much better than the hundreds of compilation errors faced with the STM32F429i-DISC1 kit and consumed almost a solid month of debugging to fix. Anyways, believe that I have this target working but cannot validate for sure. Can you download and reflash your target kit using the pre-compiled .hex file and post your results? Does the LCD display offer the graphic screen shown in this post?

0690X000006DT6OQAW.png

1) Download this full project from (temp link for a week from now but if it works, will host on our company server as a permanent link):

https://we.tl/t-K8jYxxpCVG

2) Extract this project inside of your c:\TouchGFXProjects folder.

3) Locate the .hex file (pre-compiled already) and flash onto your target kit. This .hex file is located inside:

my_STM32F469i_DISCO\EWARM\my_STM32F469i_DISCO\Exe

folder.

4) What do you see on your kit?

If this works, you should be ok to continue to use the same project to modify to suit your needs. Do see that the simulator is raising some quirk with the gcc compiler but not sure of the fault and Martin or another developer from ST / Draupner will need to jump in.

Please post your results, regardless of the outcome. Pending a possible trip to the grocery store, will try to document the steps taken to get here, if this works for you. At this time, the touch screen is not used in this project. We can continue this on the next iteration of the demo.

Thank you for your amazing reply. Sadly the screen stays black after flashing your .hex via ST-LINK. All LED's light up

Just as a little background info. I am developing a display for a Formula Student electric car. The Information will be received via CAN, we usually use the ARM Keil toolchain.

Mon2
Senior III

@SebastianS​ , sounds like a very interesting project. Personally on the market for an electric car but here in Canada in the last 2 weeks we experienced the joy of the Polar Vortex and faced -30 to -50 degrees C temps. The electric vehicles on the market lost an estimated 40% of their efficiency due to the cold temps. If using heat inside the car, even more. Battery tech needs more attention and will hopefully improve. Tesla was on my radar but with the massive layoffs, not so sure anymore.

On this LCD trial :\ Will review some low level details and post back. Tomorrow, should be able to test on the actual kit as am pretty sure I saw it in the conference room.

Also, Draupner (now ST Company) who developed TouchGFX had an article on this kit but the URL is now broken. Let me ping good ole Martin to restore the link.

Google the following topic and the search will lead to a broken link that would be very helpful for this case:

Get Started with TouchGFX on STM32F469/79 - TouchGFX

More later...

Hey Mon,

have you by any chance made progress with the project? I had it on hold for the last months and am about to resume this further.

Thank You,

Sebastian

Hi. Sorry have not had a chance to look deeper into this case. Currently overseas in Asia and met with ST at the Hong Kong fair and discussed their AI tools.
Suggest for you to review this page:
https://community.st.com/s/question/0D70X0000076dLS/guides-for-using-touchgfx-410-with-cubemx-50-known-limitations?s1oid=00Db0000000YtG6&s1oid=00Db0000000YtG6&s1nid=0DB0X000000DYbd&s1nid=0DB0X000000DYbd&emkind=chatterCommentNotification&emkind=chatterCommentNotification&s1uid=0050X000007vr0X&s1uid=0...
Select a Target with 2.0 template is posted. This is important.
Then use that Target kit, select 2.0 template and build your gui. You must launch touchgfx first.
Then manually review the folder for the ioc file to launch the cubemx.
Do your thing here but highly suggest you stick with it for now which is documented to work as per above articles.
Now, when you use cubemx, the code will break but follow first link to fix the code once again.
Rinse and repeat if cubemx is applied again.
Hope this helps a bit.
Sorry, crazy cell phone editor....use IAR compiler as it is the best documented for these integrated tools.

.