Skip to main content
KMunj
Associate III
May 16, 2019
Solved

CubeMX5.2/TouchGFX4.10.0/STCUBEIDE1.0 or SW4STM32 or TrueAtollic working properly with 32F746NGDiscovery

  • May 16, 2019
  • 18 replies
  • 8323 views

Has anyone got CubeMX5.2/TouchGFX4.10.0/STCUBEIDE1.0 or SW4STM32 or TrueAtollic working properly with any Discovery board? I mean be able to build with no errors and ​run it on any Discovery board? I had it working with CubeMX4.xx/TouchGFX4.10.0/SW4STM32. But when I  updated CubeMX4.xx to 5.2, I get build errors. I tried the procedure put by Zhi Pang on the community, but it doesn't work anymore. I get build errors.

If you have it working please send me some info on how you did it.

Thanks

Kiran

This topic has been closed for replies.
Best answer by Martin KJELDSEN

Hi guys,

https://community.st.com/s/question/0D50X0000At0N95SQE/cubeide-100-touchgfx-4100-working-project-inside-stm32f746gdisco

There's a working STM32F746G-DISCO project for your inspection. I will proceed with making a video tutorial now. It's a bit of a cumbersome process but i'll investigate how lenient i can be with official guidelines in order to get it out sooner :)

/Martin

18 replies

Martin KJELDSEN
Principal III
May 20, 2019

Hi @KMunj​,

There are some quirks to work out, but it should be possible to, with a little bit of effort, make TouchGFX run on a disco board with a parallel RGB screen. e.g. STM32F746G-DISCO.

Can you tell me how far you got? I will write a sticky with some of the initial issues we've identified here re: TouchGFX/CubeIDE integration.

/Martin

KMunj
KMunjAuthor
Associate III
May 20, 2019

​Thanks Martin for responding.

I am using 32F746Discovery Board as per your recommendation. Unfortunately I can't make much progress. I get errors immediately.

I open IDE and select 32F746Discovery. I keep all the defaults and name the project and open. Then I select graphics and select TouchGFX. I make sure every thing in that window is correct. (Attached -2). Then I do "Clean Build" and "Build". I get 4 errors. (Attached -3). So I do "Clean Build" and do "Execute" TouchGFX. It gets started and gives error "Error during code generation" (Attached -4). Then I tried to build the code, but IDE gets hung up.

Next time around, I did "Execute" 1st before and clean/build. But TouchGFX give same error "Error during code generation". I also selected C++ instead of C as Targeted language, but no matter I can't get rid of "Error during code generation" on TouchGFX.

If you need additional, info please let me know.

Thanks

Kiran

KMunj
KMunjAuthor
Associate III
May 20, 2019

​Looks like I can do only one attachment.

Here is -2.

KMunj
KMunjAuthor
Associate III
May 20, 2019

​Here is -3.

Thanks

Kiran

Martin KJELDSEN
Principal III
May 21, 2019

Hi @KMunj​,

I created a sticky that should help you through creating a CubeIDE/TouchGFX project. Some of the issues you're having here are addressed there, i believe. Try it out and let me know, okay?

Thanks!

Best regards,

Martin

KMunj
KMunjAuthor
Associate III
May 21, 2019

​Thanks, Martin. I would like to try this sticky. But where can I find it. I searched under your name on the Community but couldn't find it. I tried to google it too. But no luck.

Please provide the link to this sticky for creating a CubeIDE/TouchGFX project.

Thanks.

Kiran

Martin KJELDSEN
Principal III
May 21, 2019

At the top of the TouchGFX subforum (this forum). Here's the direct link.

https://community.st.com/s/question/0D50X0000AqD8zPSQS/stm32cubeide-and-touchgfx-4100-a-brief-introduction

Hope it helps!

/Martin

KMunj
KMunjAuthor
Associate III
May 22, 2019

​Thanks, Martin.

I don't know how to do #7. Is there any sticky for following how to do this?

  1. The library settings are wrong. Include the touchgfx library in MCU G++ Linker\Libraries:
    1. Libraries (-I): touchgfx-float-abi-hard
    2. Libraries search path (-L): \Middlewares\ST\TouchGFX\touchgfx\lib\core\cortex_mx\gcc\

Thanks.

-Kiran

Martin KJELDSEN
Principal III
May 23, 2019

Hi @KMunj​,

I'll update the description to be more concise - Here's a few screenshots of how to do this:

0690X000008wHlVQAU.png0690X000008wHlQQAU.png

KMunj
KMunjAuthor
Associate III
May 24, 2019

​Thanks, Martin.

I followed all your steps, but something is still missing.

In your step 3, I added LCD Reset Pin XRES = PI12. This was required to make TouchGFX OK to Execute.

Without clicking Execute I built the project, but I got 7 errors. Please see attached.

Then I went thru rest of the steps. When I went to step 8 and built the code again, IDE got hung up.

I waited for 15 minutes, but no luck.

Thanks

Kiran

Martin KJELDSEN
Principal III
May 24, 2019

These errors seem to indicate that you did not Execute the TouchGFX designer (not saying you didn't :) ) - Because those files should get generated into your project folder.

Thanks for the hint about LCD reset pin - You're right i accidentally left that out.

KMunj
KMunjAuthor
Associate III
May 24, 2019

​Now I opened the windows task manager and killed the IDE.

I reopened the IDE and built the project again. This time it didn't get hung up, but got 3 errors.

Please see attached.

Thanks

Kiran

Martin KJELDSEN
Principal III
May 24, 2019

You have not excluded the simulator folder from compilation. I think CubeIDE/CubeMX reset / overwrote your local project changes if you re-generated code. You probably weren't getting those errors the first time around.

/Martin