cancel
Showing results for 
Search instead for 
Did you mean: 

Exclude TouchGFX from build when debugging in STM32CubeIDE

PascalP
Associate II

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

 

7 REPLIES 7
MM..1
Chief II

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

GaetanGodart
ST Employee

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,

Gaetan Godart
Software engineer at ST (TouchGFX)

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

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,

Gaetan Godart
Software engineer at ST (TouchGFX)

Hello Gaetan,

thanks a lot for your reply. I should have detail my case more precisely.

So, I'm using TouchGFX with only (for the moment) one screen. It has a scrool wheel and display values that are calculated outside TouchGFX code, so the "xyz.h" include.

When I build this project with CubeIDE, it works like a charm.

I tried to modify the make file in \TouchGFX\simulator\gcc\Makefile by adding path in 

ADDITIONAL_INCLUDE_PATHS :=

but it doesn't resolve the problem.

In the mean time I'm going to ask help to my colleague :)

Best regards,

Pascal

 

 

GaetanGodart
ST Employee

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,

Gaetan Godart
Software engineer at ST (TouchGFX)

Hello @PascalP ,

 

Have you been able to move forward with your question?

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)