Skip to main content
Associate
November 7, 2024
Question

st link v2 red led is on

  • November 7, 2024
  • 4 replies
  • 6116 views

Hello
The LED on the top link is red. Is it a problem with the connection or the driver? I can't figure it out. Can you help me?

4 replies

Andrew Neil
Super User
November 7, 2024

Please see this for how to capture a screenshot - far better than photographing the screen!

https://www.techrepublic.com/article/how-to-take-screenshots-in-windows-10/

 

The pop-up message is telling you that it can't detect any connected STM32 target device:

AndrewNeil_0-1730973673941.png

 

The log shows you that the target supply voltage is only 0.46V

AndrewNeil_2-1730973783592.png

Your Target can't be running with less than half a volt supply!

You need to fix the power supply on the target.

Note that the ST-Link/V2 does not supply power to the target.

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
osman2Author
Associate
November 7, 2024

I know how to take a screenshot but the computer I took it on didn't have internet so I took it with my phone

Should I connect another device to the st-link instead of the computer's usb port?
Thank you for your interest

Andrew Neil
Super User
November 7, 2024

The meaning of the LED is described in the User Manual:

AndrewNeil_3-1730974074858.png

https://www.st.com/resource/en/user_manual/um1075-stlinkv2-incircuit-debuggerprogrammer-for-stm8-and-stm32-stmicroelectronics.pdf#page=15

 

So the PC is communicating with the ST-Link, but the ST-Link has not yet had any communication - successful or otherwise - with the Target.

As described in my previous post, your ST-Link can't communicate with your Target because the Target has no power.

The ST-Link can't distinguish this condition from simply having no target connected at all.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
osman2Author
Associate
November 7, 2024

I apologize, but I plugged it into other ports, but for some reason the voltage does not increase and stays at 0.46

Andrew Neil
Super User
November 7, 2024

@osman2 wrote:

I plugged it into other ports, but for some reason the voltage does not increase and stays at 0.46


Again, the ST-Link does not supply power to the Target.

Your screenshot shows that the PC is communicating fine with the ST-Link;  there is no problem there - no need to try different USB ports.

The problem is that your Target is not powered.

How are you trying to power the Target?

What Target is it?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Tesla DeLorean
Guru
November 7, 2024

You don't have anything connecting to Pin 1 which should be the VTarget voltage to power the interface buffers on the ST-LINK side

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
osman2Author
Associate
November 7, 2024

Do I need to give 3.3v from pin1 of the cn3 socket?

Andrew Neil
Super User
November 7, 2024

@osman2 wrote:

Do I need to give 3.3v from pin1 of the cn3 socket?


Again, see the User Manual - it tells you what connections you need to make between the ST-Link and your Target:

AndrewNeil_3-1730980463806.png

 

CN3 pin 1 (and pin 2) connects to the power supply (VCC) in the Target - it is an input to the ST-Link.

The voltage reported in the Log is what the ST-Link measures at this input.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
osman2Author
Associate
November 7, 2024

Dear Andrew

Thank you in advance for your answer.

I have an electronic board I have an electronic board I have a cpu using stm32f103

according to the connection in the socket in the following picture I am connecting to the cn3 socket according to the photo I am connecting 1=1--2=3---3=9---4=7--- 5=20

I can't find where I went wrong.

 

 

a1.JPG

Andrew Neil
Super User
November 7, 2024

Again, look at the User  Manual:

AndrewNeil_0-1730987997980.png

 

Plus you need a GND connection - any one will do.

 

 

Since you are only using 2 pins for debug (plus NRST), you must be using SWD.

It would be more helpful to label your schematic with the SWD names (rather than JTAG names):

  • JTCK = SWCLK
  • JTMS = SWDIO
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Andrew Neil
Super User
November 7, 2024

AndrewNeil_2-1730981200676.png

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.