cancel
Showing results for 
Search instead for 
Did you mean: 

DEV_USB_COMM_ERR for REAL St-link V2

OWENL
Associate II

I bought an ST-link V2 from amazon, this error occured, fearing it may be counterfeit, I then bought another St-link v2 from STM website itself so there is no way it is fake, but the same error still occured. I am on Mac M3 using Cubeprogrammer. There is utterly no documentation on this error. What do i do.

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Super User

Until it says the board has power, it's not going to work. Recheck your power distribution. You haven't shown any of that information here.

Is this a custom board? Is it designed properly? Oriented correctly? VCAP voltage there?

Take a multimeter and measure that voltage is getting to the chip. If it's not, track down where it's lost.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

8 REPLIES 8
Amine_Jridi
ST Employee

Hello @OWENL,

Could you give more context? As shown in the logs, there is no voltage in the ST-LINK, you can try the following:

- Check your hardware setup.

- Update the ST-LINK firmware and use the latest CubeProgrammer version.

 

If the issue still persists, please provide more information (OS arch, STLINK Led state ....).

 

Thanks,

Amine.

 


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
TDK
Super User

Screenshot 2026-03-05 083108.png

If the voltage is 0.00 V, it's not going to run. You need to power the board before connecting to it. The programmer does not typically provide power.

If you feel a post has answered your question, please click "Accept as Solution".

Thanks for your reply. 
1. When i click on firmware update -> open in update mode, i get "error connecting to ST-link, check usb connection and refresh device list"

2. my hardware set up : Since im on a mac, i have the Gray cord's usb end connecting to a usb to usb -c  adaptor, which is conneected to my mac. 

3. THe St-link's LED is red, so there is power, but idk why it still says 0.0V

I think the issue is to do with my USB to USB-c adaptor causing connectivity issues. Ill try to switch to a windows PC and see it it works

0.0 V is the board power, not the power on the ST-Link.

You will need to power the board and connect power from the board to pin 1 on the st link.

 

If you feel a post has answered your question, please click "Accept as Solution".
OWENL
Associate II

I have connected the Board Stack to a powered Raspberry pi, That should power the board, and i have also shown the pinout of the sh connectors in one of my pictures, i have connected VCC to pin 1 (VAPP), and the others to their respective pins, but im still having the same issue, and there is no way for me to tell if the microcontroller is powered.

OWENL
Associate II

Also, what does it mean by debug authentication?

TDK
Super User

Until it says the board has power, it's not going to work. Recheck your power distribution. You haven't shown any of that information here.

Is this a custom board? Is it designed properly? Oriented correctly? VCAP voltage there?

Take a multimeter and measure that voltage is getting to the chip. If it's not, track down where it's lost.

If you feel a post has answered your question, please click "Accept as Solution".

Based on the ST-LINK picture, it seems you are using the wrong pins. You can refer to this UM1075 for the correct pinout and wiring.

 


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.