cancel
Showing results for 
Search instead for 
Did you mean: 

stuck in sleep mode

markgilson9
Associate II
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?

2 REPLIES 2
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 Venmo
Up vote any posts that you find helpful, it shows what's working..
markgilson9
Associate II
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