Skip to main content
Associate
August 10, 2023
Solved

ST-LinkUpgrade disconnects board after opening in upgrade mode. Upgrade is unable to be clicked

  • August 10, 2023
  • 2 replies
  • 1826 views

Hi,

I am new to stm products and am using the STM32F4 discovery. When I run ST-LinkUpgrade I am unable to click upgrade, although I can click "opening in upgrade mode". When I do this the board just disconnects. I have used the jar file for the upgrade software as well as the programmer, although the result is the same in both cases. 

I saw a similar support message from 3 years ago but it has not been answered. I have used the jar file for the upgrade software as well as the programmer, although the result is the same in both cases. 

Thanks

Best answer by Lucas Teti

Hi,

I tried doing what is done in both videos but I still get the same error. The error I often get is "Unexpect error during opening (1)" My device is disconnected whenever I run the open in update mode. When I reconnect it the same thing happens again. For context, I am running this on ubuntu in VirtualBox. 

Update: I decided to run update using the windows version of the stlink updater and it worked. 

2 replies

RhSilicon
Lead
August 10, 2023

I found this video about different chip, in the comments:

- where is that Arduino code????

- - Arduino code can be any simple code. It doesn't matter what code you use. If ST-Link is fake, it won't upload any code.

https://www.youtube.com/watch?v=cprE-aVBiAU

Lucas TetiAuthorBest answer
Associate
August 11, 2023

Hi,

I tried doing what is done in both videos but I still get the same error. The error I often get is "Unexpect error during opening (1)" My device is disconnected whenever I run the open in update mode. When I reconnect it the same thing happens again. For context, I am running this on ubuntu in VirtualBox. 

Update: I decided to run update using the windows version of the stlink updater and it worked. 

RhSilicon
Lead
August 11, 2023

If it worked with Windows it also works with Virtualbox and Ubuntu, days ago I did it, it must be a driver problem.

RhSilicon
Lead
August 10, 2023

When it asks to restart ST-Link, it means that it has to be removed from the USB port and reconnected:

https://www.youtube.com/watch?v=BIuO0SeKq_k