2024-12-04 05:14 AM
Hello, I am working with the stm32h7s board. I am developing an interface via Touchgfx designer and embedding it on this board. If I generate via Touchgx designer and upload to the program, I see my design on my LCD screen and my codes are working, but when I try to debug the same project via stm32cube ide, I get this error and when I terminate it, it doesn't work.
Do I need to make a separate setting to debug? Can't I open the code created by gfx designer and debug it in stm32cube?
Thanks.
2024-12-04 06:34 AM
Hello @hamzatamer and welcome to the community.
Need to give more details about the board you are using: ST or custom board. stm32h7s is a microcontroller not a board. Do you mean STM32H7S78-DK board?
@hamzatamer wrote:
If I generate via Touchgx designer and upload to the program, I see my design on my LCD screen and my codes are working,
-> Do you mean this button in TouchGFX designer?
How did you start your project? from board template in TouchGFX designer?
2024-12-04 08:32 PM
Yes, I am using the board you mentioned. When starting a project, I select my board from the board section. For example, let's say I add a simple button to a project. I want to generate this project in TouchGFX Designer and debug it in STM32CubeIDE. Although the debug console says "Download verified successfully" when I start debugging, I cannot debug the project.
I set breakpoints, but the resume functionality doesn’t work, and the "Step Into" and "Step Over" options don’t function either. When I press Step Into, an error occurs, showing a message like "Error message from debugger," similar to the one in Image 2.
2024-12-05 02:07 AM
Hello @hamzatamer ,
When you want to run your project, do you first build then flash the boot part and then do the same for the appli part.
When debugging the appli part, it is normal to get a breakpoint. You need to manually reset the board or click on the "reset and relaunch" button in the debugger.
Regards,