Skip to main content
Explorer
March 20, 2024
Solved

Nucleo ST Link bricked in CUBEIDE

  • March 20, 2024
  • 3 replies
  • 2579 views

Hi,

tried to update the ST-Link Firmware on my NUCLEO-F429ZI as requested by STM32CubeIDE. Updating failed and the board is no longer recognized as a USB device. The COM LED (LD4) on the ST-Link section blinks red.

Is there a way to resurrect the firmware? I'm running on a Linux VM inside VirtualBox on a Windows 11 host. I've mapped the USB device to the VM. Have been using this board successfully from VS Code for days now...

Thanks for any assistance...

    This topic has been closed for replies.
    Best answer by mƎALLEm

    Hello,

    Give a try from Windows side using STM32CubeProgrammer tool. Moreover, with another PC/Laptop.

    If it it doesn't fix the issue, I fear you lost your ST link! 

    So maybe you need to try this at final stage: https://electronics.stackexchange.com/questions/477166/st-link-v2-repairing-issue

    3 replies

    mƎALLEmAnswer
    Technical Moderator
    March 20, 2024

    Hello,

    Give a try from Windows side using STM32CubeProgrammer tool. Moreover, with another PC/Laptop.

    If it it doesn't fix the issue, I fear you lost your ST link! 

    So maybe you need to try this at final stage: https://electronics.stackexchange.com/questions/477166/st-link-v2-repairing-issue

    tschwarzAuthor
    Explorer
    March 20, 2024

    SOLVED!
    Thanks for the suggestion to use the Windows utility for updating - will give that a try.


    Anyhow - I plugged the board into a different USB port on the windows box and it works again. So the ST-Link does not have a problem, the program in flash works as before !

    Super User
    March 20, 2024

    Could it be that the ST-Link is stuck in update mode?

    If so, using the STSW-LINK007 ST-Link firmware updater app might help ... ?

    https://www.st.com/en/development-tools/stsw-link007.html

    tschwarzAuthor
    Explorer
    March 20, 2024

    SOLVED COMPLETELY!
    Updating the ST-Link from native Windows (STM32CubeProgrammer) worked seamlessly. Now the CubeIDE ist still complaining about an outdated ST-Link version but when ignored still flashes and debugs my application as expected.

    VirtualBox allows redirecting USB Links into the VM. This could have caused the problem, as the programming process seems to drop and reset the USB connection at one point. I'd assume the USB device redirection into the VM is either not fast enough or Windows connects first and then redirects, throwing the IDE off. 

    Takeaway: Use the native CubeProgrammer Tool to flash the ST-Link firmware. For now I'm guessing that a native Linux setup would also have worked correctly...

    Super User
    March 20, 2024

    Yes - the firmware update sequence causes the STLink to re-enumerate as a DFU device to do the update, then back to an "STLink" device when done.