Skip to main content
Explorer
September 15, 2025
Question

Error: ST-Link error (DEV_USB_COMM_ERR)

  • September 15, 2025
  • 5 replies
  • 1442 views

Hi everyone,
My company recently purchased a new ST-Link/v2 programmer. The problem is that after the firmware update, the device stopped working, and when I press the Connect button on the STM32CubeProgrammer, the following error appears:

Error: ST-LINK error (DEV_USB_COMM_ERR)

I tried using an ST-Link/V2 programmer I bought a few months ago, and everything works fine (I only replaced the programmer, same USB cable, same programming cable).

The programmer is original, I'm sure of it. I purchased the programmer from DigiKey.

SSerg4_0-1757951175765.png

SSerg4_1-1757951186753.png

SSerg4_2-1757951198417.png

Even the serial number I see appears to be genuine.

 

SSerg4_4-1757951276202.png

When I try to update the firmware, I get the following result:

SSerg4_5-1757951413522.png

SSerg4_6-1757951450399.png

Can anyone help me solve my problem?
Thanks

 

 

    This topic has been closed for replies.

    5 replies

    Technical Moderator
    September 15, 2025

    Hello @SSerg.4 ,

    Did you try click 'Open in Update Mode' ?

    Are you using latest release of STM32CubeProgrammer?

    Check and configure the correct access port. ST-LINK fail to access to the device as the port number may become inaccessible due to incorrect access port configurations.

     

    SSerg.4Author
    Explorer
    September 16, 2025

    Hi Imen, thanks for the reply.
    I already clicked the "Open in upgrade mode" button.
    The first time I click it, the following message appears:

    "Error connecting to device ST-LINK/V2 (error 0x1); check the USB connection and refresh the device list"

    The second time I click it, the following message appears:

    "Unknown firmware type. Don't know how to upgrade."

    Look at the images I attached.

    I also used a Windows PC and installed the latest version of STM32CubeProgrammer, but the results were the same (see my reply to Pavel).

    Do you have any other suggestions?
    Thanks.
    Stefano

    Super User
    September 15, 2025

    It looks like you're a happy Mac user :)  Try to get a normal Windows PC and run the standalone updater for Windows (ST-LinkUpgrade.exe):

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

     

    SSerg.4Author
    Explorer
    September 16, 2025

    Hi Pavel, thanks for the reply.
    Unfortunately, my company forced me to choose MAC :(

    I followed your advice using a Windows PC and these are the results:

     

    SSerg4_1-1758012361798.png

    SSerg4_2-1758012372797.png

    Nothing changed. Do you have any other suggestions? The device is brand new. All I did was update the firmware.
    Thank you.
    Stefano

    SSerg.4Author
    Explorer
    September 18, 2025

    No solution to my problem?
    Can anyone help me?

    ST Employee
    September 23, 2025

    Hello Stefano,

    Unfortunately this is not a recoverable error, you should return the ST-Link and exchange it with the distributor.

    To understand better the issue you faced, you may answer the following questions:

    To check if it is a genuine ST-LINK/V2 could you provide a picture of the box and its stickers and of the provided accessories? 

    Do you remember the error message you get during the firmware upgrade and what was the initial firmware version before the upgrade (v2J46S7?) and the version you upgrade or downgrade to (v2J45S7 ?) ? Or if something unusual occurred on the PC/ USB cable connection during the upgrade process before its completion?

    Best regards

    Super User
    September 18, 2025

    The root of the problem seems to be that the updater does not recognize the present firmware version V15J63S63

    Which looks totally weird. The number after V can be 2,3,4. Not 15.

    Has someone else played with it? Updated it with J-Link or other 3rd party firmware?

    @Imen.D 

    SSerg.4Author
    Explorer
    September 19, 2025

    Hello and thank you for your time.
    No, no one picked up the programmer before me.
    I was the one who unpacked it.
    And no, I didn't do anything wrong.
    I connected the programmer to my Mac and updated the firmware using STM32CubeProgrammer.
    After that, the programmer stopped working.
    The device is intact, no tampering, no damage.
    Any other suggestions on how I can solve my problem?

    Graduate II
    September 19, 2025

    Send it back to the dealer or dispose it?