2020-08-16 08:04 AM
Hello,
I have a nucleo-L152RE development board.
I don't have an annmeter. What would be the best way to check my microcontroller is in sleep mode? Or can it be done at all? I've installed openocd and gdb but I've barely used any of them so far, so maybe the solution is obvious, or maybe it can't be done at all.
Any advice would be appreciated.
Solved! Go to Solution.
2020-08-16 10:03 AM
You can check the S_SLEEP bit in the DHCSR register. https://developer.arm.com/documentation/ddi0337/e/core-debug/core-debug-registers/debug-halting-control-and-status-register
2020-08-16 10:03 AM
You can check the S_SLEEP bit in the DHCSR register. https://developer.arm.com/documentation/ddi0337/e/core-debug/core-debug-registers/debug-halting-control-and-status-register
2020-08-16 11:04 AM
Awesome, this is working, thanks!