2024-10-08 04:37 AM - last edited on 2024-10-08 04:47 AM by SofLit
Hi,
I'm having issues debugging my custom STM32H573 board.
It used to work, before restoring my laptop to factory settings and reinstalling the IDE.
I hope someone can help me with the situation, I don't know what fixes to try anymore.
Setup:
Problem:
When starting a Debugging session, the STLink does not download the software onto the MCU, even though it should be enabled according to the debugging configuration. The CubeProgrammer that should run in the IDE does not start (according to the gdbserver logs).
Flashing the software using the STM32CubeProgrammer works without an issue, so the building process seems to work.
The MCU software also seems to be consistently crashing, when starting the debug session.
Tested Fixes (did not work):
I already tried downloading an older version of STM32CubeIDE and updating it, downloading and installing the latest version directly, using OpenOCD and debugging the project in VS Code.
All the same result.
I also tried flashing the software using STM32CubeProgrammer and then starting the debug session with software download disabled. The MCU run the software and I could pause it, but breakpoints did not work. When I then tried resetting the MCU with the IDE, I got the situation described before.
I hope all the necessary information is there.
Thanks in advance!
Solved! Go to Solution.
2024-10-08 07:53 AM
Hello @gnarrf95
First let me thank you for posting.
This is a known issue and it impact Cortex-M33 based MCUs. (Internal ticket number 191086)
There are two temporary solution:
KR,
Semer.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-10-08 07:53 AM
Hello @gnarrf95
First let me thank you for posting.
This is a known issue and it impact Cortex-M33 based MCUs. (Internal ticket number 191086)
There are two temporary solution:
KR,
Semer.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-10-11 10:50 AM - edited 2024-10-11 10:56 AM
@Semer CHERNImcdvoice wrote:Hello @gnarrf95
First let me thank you for posting.
This is a known issue and it impact Cortex-M33 based MCUs. (Internal ticket number 191086)
There are two temporary solution:
- Either use OpenOCD for debug
- Or flash the elf file using the STM32CubeProgrammer standalone and configure the debugger in STM32CubeIDE to just load the symbols.
KR,
Semer.
Thanks for giving the solution. I also face this issue. It will be helpful.