ARM WFI won't sleep
I am trying to enter standby mode on a Cortex-M4. The normal behaviour is that the device wakes up about every two minutes, but on my latest firmware release, it seems that the code is "randomly" stuck. After investigation, it seems that the code passes the WFI instruction without going to standby (no standby => no reset => infinite loop => ... => 42). So after many unclear specification readings, my understanding is that the WFI instruction may not go to sleep if there are pending interrupts. Can you confirm the last sentence? How can I ensure all pending interrupts are cleared before calling
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.