2024-08-27 1:49 AM - edited 2024-08-27 7:21 AM
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."
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."
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.
Solved! Go to Solution.
2025-09-13 11:56 PM
If I may, sounds you're relying on versions <3.0.0 while some new pre-release versions >3.0.0 are available see https://community.st.com/t5/stm32cube-for-visual-studio-code/new-stm32cube-for-visual-studio-code-extenstion-released-3-5-1/td-p/819484
STLink firmware update experience is according to me much better embracing fresh material
2024-09-19 3:00 AM
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
2024-09-19 3:21 AM
hi @mlnslm. thank you, it worked!
2025-09-09 2:28 AM
The "Upgrade ST Link firmware" button in PROJECT MANAGER will ultimately run the CubeCLT's "STLinkUpgrade.bat" in this way:
2025-09-13 11:56 PM
If I may, sounds you're relying on versions <3.0.0 while some new pre-release versions >3.0.0 are available see https://community.st.com/t5/stm32cube-for-visual-studio-code/new-stm32cube-for-visual-studio-code-extenstion-released-3-5-1/td-p/819484
STLink firmware update experience is according to me much better embracing fresh material