Skip to main content
mreuter
Visitor II
July 25, 2014
Question

WFI() debugging

  • July 25, 2014
  • 1 reply
  • 658 views
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.

    This topic has been closed for replies.

    1 reply

    stm32forum
    Associate III
    July 28, 2014
    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);