Detect Debugger Connected To STM32L0 ?
Posted on December 13, 2017 at 17:32
In Cortex-M3, M4, etc, we can just check the DEBUGEN bit in DHCSR (the Debug Halting Control and Status Register)
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0337e/CEGCJAHJ.html
But in Cortex-M0, that register is not accessible to the user code.
:(
So - is there any other way on an STM32L0 to detect when the debugger is connected?
#stm32l0 #debug
