2014-07-25 09:47 AM
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.
2014-07-28 12:26 PM
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);