2024-09-24 08:07 AM
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
2024-09-24 08:25 AM
Effective way i mean not exist ... threads have interconnections etc. But for real speed up is one way empty GUI variant...
2024-09-27 05:51 AM
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,
2024-09-30 12:40 AM
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
2024-09-30 07:22 AM
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,
2024-10-01 12:35 AM
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
2024-10-01 12:45 AM
Hello @PascalP ,
In TouchGFX Designer, you can either run on simulator or run on target:
Depending on which button you click, you will run different commands:
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,
2024-10-18 07:17 AM
Hello @PascalP ,
Have you been able to move forward with your question?
Regards,