cancel
Showing results for 
Search instead for 
Did you mean: 

How do I find the wake source on a STM32H7A3? We have a product that under certain circumstances, will wake when it's not supposed to.

mreed
Associate III

We track known (i.e. programmed) wake sources and report them at wake. The wake is not reporting any know source. The wake seems to be a loop, i.e. as soon as we enter sleep, the wake occurs.

 /* Set SLEEPDEEP bit of Cortex System Control Register */

 SET_BIT (SCB->SCR, SCB_SCR_SLEEPDEEP_Msk);

 /* Ensure that all instructions are done before entering STOP mode */

 __DSB ();

 __ISB ();

   /* Request Wait For Interrupt */

   __WFI ();

1 REPLY 1

I think you have to repeat this, as WFI will drop thru if it causes interrupt service.

Mop up all pending interrupts

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..