2025-12-03 9:39 AM
Hello,
I've been struggling with this issue for a couple days, I have a Nucleo-L476RG board that I am trying to run and debug in VS Code.
I'm using the STM32CubeMX + STM32 VS Code Extension tool chain to create cmake files, build, and then debug, but I cannot run and debug code due to an error:
Error in initializing ST-LINK device.
Reason: ST-LINK firmware upgrade required. Please upgrade the ST-LINK firmware using the upgrade tool.
I have tried using the "Upgrade ST-Link Firmware" button in the VS Code Extension "STM32Cube Devices and Boards Menu" and I get the following error:
Fatal error while trying to update STLink Firmware. Source: STM32Cube Debug Core
So I installed STM32CubeProgrammer and tried to upgrade firmware from there. I get the following information about my device:
Serial Number: 066AFF485671664867215448
Firmware Version: V2J43M28
When I select the "Firmware Upgrade" button, it says
Device 066AFF485671664867215448 not found. No device connected.
So I downloaded the STSW-LINK007 software, and tried to run ST-LinkUpgrade.exe for Windows. When I select "Device Connect" I get the following error:
No ST-Link found after GoToUsbLoader commend. Wait for the end of USB enumeration then try again.
I am at the end of my troubleshooting abilities. Is there something really obvious I am missing here?