cancel
Showing results for 
Search instead for 
Did you mean: 

Error whilst trying to update STLink Firmware

mqasemipur
Associate

 I am using an ST-Link V2 for debugging in VS Code. It worked before, but now it gives me an error in the GDB server terminal:

"Error in initializing ST-LINK device.
Reason: ST-LINK firmware upgrade required. Please upgrade the ST-LINK firmware using the upgrade tool."

mqasemipur_0-1724768422373.png

When I try to upgrade my ST-Link firmware version using the button in the VS Code STM32 extension, this error is displayed: "Error whilst trying to update STLink Firmware."

mqasemipur_0-1724767268468.png

Even when the ST-Link is disconnected, this error is still displayed.I tried to upgrade it with the ST-Link utility, and it tells me the upgrade is successful, but nothing changed, and I still have these errors.

2 REPLIES 2
mlnslm
Associate

Hello mqasemipur

At least for me on Windows 11, the command 

 

stlinkupgrade

 

typed in a Terminal worked. If the command is not found, it is essentially a .bat script in the STM32CubeCLT base directory, by default at

 

C:\ST\STM32CubeCLT

 

Naturally this does not fix the issue of the extension, which I also got on multiple machines.

Best regards

hi @mlnslm. thank you, it worked!