cancel
Showing results for 
Search instead for 
Did you mean: 

Automatically set DBGMCU when debugging starts.

PWint
Associate III

I am debugging my software on STM32L452CCU6 and it is mostly in sleep mode. By default, this disables clocks to the debug port, and the debugger (using STMCube) prints out the message "Target is not responding, retrying...". After a couple of times, I lose the debugger.

Setting the correct bits in DBGMCU keeps the clocks running in sleep mode so that debugging can continue. I am able to do this in my code, but I do not want to accidentally leave it in my compiled code as this could increase power consumption.

How do I set DBGMCU using the debugger so that it is always set when I start to debug, but it is never part of my code?

10 REPLIES 10

No, you have to wait for a cryptographic authentication from the Nogoogler association.