2024-08-27 01:49 AM - edited 2024-08-27 07: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.
2024-09-19 03: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 03:21 AM
hi @mlnslm. thank you, it worked!