Hibernation
STM32 Sleep Mode Wakeup Debug
Symptom
The node prints READY, then stays silent however many times PA0 rises. The registers and bit fields are on the Datasheet tab.
Circuit
Pass condition
READY prints, then AWAKE <n> for each rising edge on PA0, counting from 1. The core takes IRQ 6 for each edge and is awake for under 5% of the run.
Notes
The motion sensor raises PA0 on each motion while the node runs. By design the handler only records each edge. Main sends the reports. Awake time counts retired instructions. A sleeping core retires none.