2025-04-04 1:20 PM - last edited on 2025-04-07 2:06 AM by Amel NASRI
Project: samples/basic/blinky
board: stm32h735g_disco
I am using the latest Zephyr 4.1
If have a simple project `sample/basic/blinky`. Using the west command to compile the project, flash the board, debug the board with OpenOCD protocol.
Everytime I used the debugger (dbg), I am able to step by step the project until I reach the k_msSeep() function.
A friend of mine help me to debug it and we were able find that the system breaks as indicated in the picture below.
If I don't use the debugger DBG, then the software does not crash... It just work.
2025-04-04 1:34 PM - edited 2025-04-04 3:47 PM
IIRC gdb (or certain "target monitors") have problems with single-stepping thru some ARM assembly inlines. Unless you want to debug the debugger - avoid single stepping thru these things.
2025-04-07 5:38 AM - edited 2025-04-07 6:56 AM
@Pavel A. It doesn't need to be single stepping. Just need to be in debug mode. The problem occurs with the `west debug` command or with the STM32CubeIDE. If I just flash it, it is working with no issue. Not very practical to design a new application.