cancel
Showing results for 
Search instead for 
Did you mean: 

WFI() debugging

mreuter
Associate
Posted on July 25, 2014 at 18:47

I have used WFI() previously, but I can't figure out what is going on with my current code.  The WFI() returns immediately, but I can't figure out what interrupt is active.  Any tips for determining what caused a WFI() to return?  Thanks.

1 REPLY 1
stm32forum
Associate II
Posted on July 28, 2014 at 21:26

You could at stm32fxxx_dbgmcu.c to your project. With this you can keep the debugger connected during sleep mode etc. and see what exception occurs.

For example

DBGMCU_Config(DBGMCU_SLEEP);