cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to debug a TouchGFX example project in STM32CubeIDE

jouderkirk
Associate

I created the project in TouchGFX 4.26.0 Designer, modified pins with CubeMX_17, and attempted to debug the project in STM32CubeIDE 2.1.1. 

The example I used was Flex Button Example.

Kit is STM32U5G9J-DK2.


When I attempt to set up a debug configuration in CubeIDE, I am unable to select a project. This project compiles and works when I flash it to my kit through TouchGFX. Could there something wrong with my project structure? Thank you.
Screenshot 2026-04-16 142303.png

 

2 REPLIES 2
Karl Yamashita
Principal

Try selecting STM32 C/C++ Application and click New Launch Configuration icon. Or you can right click and select New Configuration. It should automatically filled out the text box with correct Project name and the ELF file. If that works, you can delete the other MyApplication_4 config.

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.
CAN Jammer an open source CAN bus hacking tool
CANableV3 Open Source

mathiasmarkussen
ST Employee

Hello,

 

How did you create the project? Usually, there would be an existing CubeIDE configuration that has also already been set up with a launch configuration in the STM32CubeIDE subfolder of the project folder. You should use that, since TouchGFX updates the project configuration of that project with its generated files, unless you have selected a different IDE in CubeMX.
I guess the reason you cannot select the project may be that the project has not been built.