2023-08-09 07:04 PM
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
Solved! Go to Solution.
2023-08-10 05:49 PM - edited 2023-08-10 07:08 PM
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.
2023-08-09 09:06 PM
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.
2023-08-09 09:12 PM
When it asks to restart ST-Link, it means that it has to be removed from the USB port and reconnected:
2023-08-10 05:49 PM - edited 2023-08-10 07:08 PM
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.
2023-08-10 07:47 PM
If it worked with Windows it also works with Virtualbox and Ubuntu, days ago I did it, it must be a driver problem.
2024-07-11 02:30 PM
Hi,
if you are using Ubuntu then you have to configure a udev rule to be able to access st-link. When you click "opening in upgrade mode" the board is disconnected and reconnected, if the udev rule is not there after the reconnection it can't be accessed.
This is a reference: https://calinradoni.github.io/pages/200616-non-root-access-usb.html