Skip to main content
markgilson9
Associate III
November 2, 2011
Question

stuck in sleep mode

  • November 2, 2011
  • 2 replies
  • 974 views
Posted on November 02, 2011 at 17:36

I'm using the STM32F4 Discovery kit and slightly modified the PWR_CurrentConsumption example for power measurement testing.  When I go to program the board with a new load of code, it will not program because the board is in sleep mode.  Is there a way I can flash the board while it's in sleep mode?

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    November 2, 2011
    Posted on November 02, 2011 at 19:36

    You'll have to reset the board manually. The SWD interface does not include a reset control, and the programmer (ST-LINK) device cannot reset the STM32F4.

    If you manager to brick the board, you can strap the BOOT pin to 3V3, and restart it, to recover.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    markgilson9
    Associate III
    November 2, 2011
    Posted on November 02, 2011 at 20:19

    I found a solution.  You can use this utility to clear the flash or re-program:

    http://www.st.com/internet/com/SOFTWARE_RESOURCES/TOOL/DEVICE_PROGRAMMER/stm32_st-link_utility.zip