Skip to main content
Associate II
September 24, 2024
Question

Exclude TouchGFX from build when debugging in STM32CubeIDE

  • September 24, 2024
  • 3 replies
  • 1372 views

Hello everybody,

I would want to know if there is a way or another to exclude TouchGFX from build when debugging in STM32CubeIDE.

I'm using ThreadX underneath, so basically I've got at least two separates threads: one for the GUI and one for a background task. I'm working a lot on the background task so each time I modify it, it takes a lot of time to upload binary to the debugger each time I want to debug on a board.

Thanks a lot in advance for your valuable help

 

3 replies

MM..1
Chief III
September 24, 2024

Effective way i mean not exist ... threads have interconnections etc. But for real speed up is one way empty GUI variant...

GaetanGodart
Technical Moderator
September 27, 2024

Hello @PascalP ,

 

One option for you could be to flash your new program on your board by using TouchGFX Designer. Since you do not change the assets, you can flash the code only which greatly reduce compiling and flashing time.
Then, you can run the debug in STM32CubeIDE without flashing, go to Debug Configurations... -> Startup -> select load image -> Edit... -> uncheck Download.

 

I hope this helps! :smiling_face_with_smiling_eyes:
If this comment or another on answers your question, I invite you to select it as "best answer".

 

Regards,

PascalPAuthor
Associate II
September 30, 2024

Hello Gaetan,

Thanks a lot for your valuable help !

I tried your tips, but unfortunately when I try to compile in TouchGFX I've got one error:

In file included from gui/src/screen1_screen/Screen1View.cpp:1:0:
 gui/include/gui/screen1_screen/Screen1View.hpp:6:10: fatal error: xyz.h: No such file or directory
 #include "xyz.h"

So, I tried to add path to this include manually by following this subject:

Solved: How to manually add include path to touchgfx desig... - STMicroelectronics Community

But it still doesn't compile in TouchGFX.
How ever, it works when I compile from STM32CubeIDE

Thanks a lot in advance for your help.

Best regards,

Pascal

GaetanGodart
Technical Moderator
September 30, 2024

Hello @PascalP ,

 

What is the file xyz?

Could this solution to add path help you?

Are you modifying the right Makefile? (There is one for the simulator in the simulator folder and one for the target in the gcc folder).

 

Regards,

GaetanGodart
Technical Moderator
October 1, 2024

Hello @PascalP ,

 

In TouchGFX Designer, you can either run on simulator or run on target:

GaetanGodart_0-1727768395141.png

 

Depending on which button you click, you will run different commands:

GaetanGodart_1-1727768552273.png

 

The Makefile for the simulator is in "projectName\TouchGFX\simulator\gcc".
The Makefile for the board is in "projectName\gcc".

 

If you modified the simulator Makefile but tried to run on target, it is normal that you still get the error.

If you modified both Makefile and you still have the issue, you should double check how you included the files.

 

Regards,