Showing results for 
Search instead for 
Did you mean: 

Firmware does not work if not debugging

Associate II

Hello, i would like to post a problem that i have: i have a custom STM32H755BI (dual core) board that i usually flash with CubeIDE and i debug. Unortunatelly i noticed that the board works fine, but if i reboot the board and i connect with a j-link some variables become unresponsive or even not recognized. If i flash the board and connect the j-link is all ok. What coult be the cause? I don't even know where to start but i suspect is something related with a debug configuration


The cause is you probably have bugs in your code that are hidden by the additional delays in debug.

The solution would be to systematically track down what the bug is by looking at what is happening vs what is not happening, checking appropriate assumptions, and instrumenting your code with sufficient checks and error reporting mechanisms.

Hard to understand what's actually happening here. Your title says "does not work if not debugging" but your text only reports an error that would occur while debugging (i.e. "some variables become unresponsive"). Or does rebooting the board mean you're no longer debugging even though you're still connected with j-link? More clarity might help.

If you feel a post has answered your question, please click "Accept as Solution".