Friday, April 05, 2013

ST-Link is not in the DFU mode

I faced problem when trying to execute the debugger in STM32F4-Discovery board.

When I tried to search with the keyword "ST-Link is not in the DFU mode", I was disappointed that there was almost no hits. Luckily I find one Japanese language blog and I could solve it.

To upgrade ST-Link over STM32F4 Discovery
1. Select JTAG mode in setting of STM32 ST-LINK Utility
    (Select "JTAG", from menu "Target->Settings->Connexion Protocol")
2. Disconnect and reconnect the target and execute "Firmware update" from  "ST-LINK" menu
3. When the upgrad is over, Restore the setting to "SWD"

To know about ST-LINK utility, please visit the following link:

http://www.delvee.com/articles/introduction-to-stm32-st-link-utility/

Enjoy embedded!
 

14 comments:

Grant said...

Rather than do all of these steps, leave your settings alone and click on ST-LINK->Firmware update. When the "ST-Link Upgrade" dialog appears, unplug and physically reconnect the board. Finally click the "Device Connect" button from the dialog.

mark said...

With Discovery board stm32f051R8
to upgrade st link disconnect two jumpers on the boar marked as st-link
and upgrade via ST-LinkUpgrade exe

Anonymous said...

Tanks!!

Anonymous said...

Thanks!, It worked for me too.

Unknown said...

It worked for me too. Thanks. Odair from Brazil. Development engenieer,

Volodymyr said...

Thank you all! It works with JTAG/SWO option...

Yannis said...

You are my favourite person this month. I am very inexperienced with stm32 arm devices and I could not connect to my device without this utility. The official page of my device doesn't even mention the utility so how was I supposed to know about it?

Krotow said...

Grant, thank you! I already lost hope how to upgrade firmware for my ST-Link V2. It definitely was so easy - device reconnection with opened "Firmware Upgrade" dialog in ST-LINK Utility solved my problem. In got upgraded fast and without any issues.

BTW Internet is full of crap nowadays. Found your post after 2 hours of getting tortured by false Google returns :)

Anonymous said...

Thank

Nico said...

Thank you! Worked like a charme...

Unknown said...

hahah, reconnecting worked like a charm

Anonymous said...

Hi all, as of 3/1/2019 reconnecting still works...
Upgraded Purple stick from V2.J17.S4 to V2.J33.57.

Thanks!

Anonymous said...

Denedim fakat güncelleme yapmıyor

teste said...

muito obrigado.