Is there a way to check the MCU is in sleep mode using openocd or other linux tool?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-16 8: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.
- Labels:
-
Power
-
STM32L1 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-16 11:04 AM
Awesome, this is working, thanks!
