2024-08-30 11:21 AM
Hello everyone, I am using STM32H7S78-DK with TouchGFX HVAC-IoT Demo and I am encountering some problem while I am trying to debug application project. I can flash my code but I can't debug it.
Can anyone tell me which is the problem?
I am using TouchGFX version 4.24.0, STM32CubeIDE 1.16.0 with ST-LINK GDB Server.
I didn't make changes to the default code, so I only open TouchGFX demo example and flash it to my board.
Solved! Go to Solution.
2024-09-05 03:16 AM - edited 2024-09-18 04:55 AM
Hello @FCola.1 ,
Once you debug, it is normal to get an error message ("Break at address "0x8000b8c" with no debug information available, or outside of program code.").
In the debug session, you have to click on the "Resume" button (F8) to "run the application".
It will look like nothing is happening because you are actually in the bootloader (0x8000b8c).
Click on the hardware reset button on the board (the black button) and then you will see that you are now in the application part of the code. From there you can debug again (Resume, Step over, etc).
I hope this helps.
If this comment answers your question, I invite you to select it as "best answer".
Regards,
2024-09-02 04:53 AM
Hello @FCola.1 ,
Can you tell us what the problem is exactly?
Do you get errors messages when trying to debug? Is the Debug button greyed out?
Are you used to using this board and debugging it but only when you run the HVAC demo does it refuse to debug?
If you created a project from TouchGFX Designer, making sure to select the board, then clicking on import GUI and importing the HVAC demo, then clicking on either "Generate code" or "Simulate" at the bottom right, then you should be able to open your project in STM32CubeIDE and to click on the debug button from STM32CubeIDE.
I hope this helps.
If this message answer your question, I invite you to select it as "best answer".
Regards,
2024-09-02 07:33 AM - edited 2024-09-02 07:36 AM
Hi @GaetanGodart ,
thank you for your quick reply.
I am encountering the same problem with every demo downloaded from TouchGFX (attached image is an example).
If I flash my STM32H7S78-DK with STM32CubeProgrammer and then I do a power cycle, the demo is running normally.
If I use STMCubeIDE, I have those two behaviors :
1) I can flash the bootloader and debug it;
2) I can flash the application but i can't debug it (see attached image).
May I have to remove or add some jumpers to connectors on board?
As I mention in my first post, I have not changed either the code or the STMCubeIDE's configuration.
If you need some additional information, I am at your disposal.
2024-09-02 08:34 AM
From what I understood, you followed those steps :
Am I right?
2024-09-02 10:12 AM - edited 2024-09-02 10:12 AM
Yes, you are right
2024-09-04 08:20 AM
Any advice?
2024-09-05 03:16 AM - edited 2024-09-18 04:55 AM
Hello @FCola.1 ,
Once you debug, it is normal to get an error message ("Break at address "0x8000b8c" with no debug information available, or outside of program code.").
In the debug session, you have to click on the "Resume" button (F8) to "run the application".
It will look like nothing is happening because you are actually in the bootloader (0x8000b8c).
Click on the hardware reset button on the board (the black button) and then you will see that you are now in the application part of the code. From there you can debug again (Resume, Step over, etc).
I hope this helps.
If this comment answers your question, I invite you to select it as "best answer".
Regards,