Skip to main content
Associate II
March 7, 2024
Solved

STM32F746G-DISCO

  • March 7, 2024
  • 3 replies
  • 10368 views

 

Hi, I'm working on STM32F746G-DISCO.

 Kindly can someone tell me if it is normal that after making some project screens on TouchGFX and launching the SIMULATOR, everything is ok. I open the project with CubeIde and add some code from the IDE and transfer it to STM32F746G-DISCO it continues to work, if I try to simulate it with the TouchGFX SIMULATOR I can no longer make it work and it gives me errors right in the lines of code I have added. Thank you.

This topic has been closed for replies.
Best answer by Osman SOYKURT

Hello @StefanoL ,

Yes the normal process is :
1- Create your UI with TouchGFX and generate code (F4)
2- Open the .ioc file with STM32CubeMX and configure your hardware
3- Generate code on STM32CubeMX for the toolchain you want (STM32CubeIDE)
4- Go back to TouchGFX and generate code again (F4)
5- Open your .project file with STM32CubeIDE and compile code.

If you use other files from a library you need to include them in the makefiles so of course you need to check the included paths.

3 replies

Technical Moderator
March 7, 2024

Hello @StefanoL ,

Could you please share more details about the error message you have, the used versions of the tools and the lines of code you have added.

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
StefanoLAuthor
Associate II
March 7, 2024

 

 The IDE is probably installed incorrectly because it seems that the file for CUBEIDE is not created properly.

mƎALLEm
Technical Moderator
March 7, 2024

Hello,

Did you declare functionON() somewhere in Screen1View.cpp?

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
StefanoLAuthor
Associate II
March 7, 2024

..

mƎALLEm
Technical Moderator
March 7, 2024

Could you please attach your project?

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
Osman SOYKURT
Technical Moderator
March 11, 2024

Hello @StefanoL ,

Could you describe what you did to include your libraries? Did you include them in here?

OsmanSOYKURT_0-1710149562439.png

Osman SOYKURTST Software Developer | TouchGFX
StefanoLAuthor
Associate II
March 11, 2024

 

no, I included this in the ".cpp" file 

Osman SOYKURT
Technical Moderator
March 12, 2024

Hello @StefanoL ,

Ok I think I understand your issue. The makefile that TouchGFX Designer uses is independent from STM32CubeIDE.

So I think what you need to do is to include the path to the new libraries you added to your makefiles; there is 2 makefiles used by TouchGFX 

- under your project, in the gcc folder    (used to run to the target directly from TouchGFX Designer)

- in \TouchGFX\simulator\gcc folder     (used for the simulator)

Verify these 2 files, especially the "include paths".

Osman SOYKURTST Software Developer | TouchGFX