cancel
Showing results for 
Search instead for 
Did you mean: 

Clarification on ST-LINK/V2 VTref (VAPP) Pin Behavior

Selva_emcus
Associate II

Dear STMicroelectronics Support Team,

 

I am working with two ST-LINK/V2 debuggers and have observed a difference in the VTref (VAPP) signal location on the 20-pin connector. 
I would like to understand whether this is expected behavior.

 

Details of the debuggers:

1. ST-LINK/V2 marked: B2025 16
2. ST-LINK/V2 marked: A2017 10

 

Used board to flash :

BLUENRG-M2SP

Used flasher tool :

RF-Flasher utility v4.5.0

 

Observation:

* In the B2025 16 debugger, the target voltage (~3.3 V) is measured on Pin 1 of the 20-pin connector.
* In the A2017 10 debugger, the target voltage (~3.3 V) is measured on Pin 19 of the 20-pin connector.

 

Both debuggers are being used under similar conditions with the same target hardware.

 

Could you please clarify:

 

1. Whether such variation in VTref (VAPP) pin location is expected across different ST-LINK/V2 units?
2. If there are any known hardware variations or revisions related to this behavior?
3. Any guidance to ensure correct usage in this scenario?

 

We want to ensure safe and reliable operation in our setup.

 

Looking forward to your clarification.

 

Best regards,
Selvakumar G

1 ACCEPTED SOLUTION

Accepted Solutions
Mike_ST
ST Employee

Hello,

Please note that one of your ST-Link might be a clone, the one marked "A2017 10", especially if this model# is written in blue. That can explain the difference in behavior that you're observing.

Please check this article:

How to recognize a genuine ST-LINK/V2 versus a cloned one  

>> Is there any pin on the ST-LINK/V2 20-pin connector (CN3) that can be used to supply power to the target device during programming? Or is it mandatory that the target board provides its own supply (VDD) to the VTref (VAPP) pin?

As mfgkw wrote above: no.

Please check the ST-Link user's manual section 4.2:

ST-Link UM 

There is a VDD 3.3V on pin 19, but please don't use it, it is not designed for power supply.

 

View solution in original post

6 REPLIES 6
mfgkw
Senior III

Hi Selakumar,

 

When do you measure your 3.3V voltage? With target connected or pins open?

 

Since targets may have different voltages the programmer needs to know the voltage to be used while a target is connected.

So your target's voltage VDD (maybe 3v3 or something below) must be connected to pin  1 or 2 of ST-Link's 20 pin connector CN3, This is VAPP: the voltage of your application, connected to ST-Link. It is an input pin for ST-Link.

It's level while unconnected has no meaning on ST-Link side.

 

Ignore pin 19. This is neither  suitable to measure the target's voltage nor to supply anything. It is simply irrelevant.

Dear STMicroelectronics Support Team,
Thank you for your clarification.
I would like to confirm that my earlier measurements were taken without connecting the target board. In that condition, I observed approximately 3.3 V on Pin 19, which led to my confusion.
Based on your explanation, I understand that this reading is not meaningful and that Pin 19 should be ignored.
I have one further question:
Is there any pin on the ST-LINK/V2 20-pin connector (CN3) that can be used to supply power to the target device during programming? Or is it mandatory that the target board provides its own supply (VDD) to the VTref (VAPP) pin?
Your guidance will help ensure correct and safe usage in my setup.

Dear Selvakumar,

 

> Dear STMicroelectronics Support Team,

I'm not related to ST in any way, as well as most contributors here.

It is a forum of users. (Nevertheless some members are ST employees.)

 

> Is there any pin on the ST-LINK/V2 20-pin connector (CN3) that can be used to supply power to the target device during programming?

No.

 

> Or is it mandatory that the target board provides its own supply (VDD) to the VTref (VAPP) pin?

Yes, this is correct.

 

HTH Klaus

Mike_ST
ST Employee

Hello,

Please note that one of your ST-Link might be a clone, the one marked "A2017 10", especially if this model# is written in blue. That can explain the difference in behavior that you're observing.

Please check this article:

How to recognize a genuine ST-LINK/V2 versus a cloned one  

>> Is there any pin on the ST-LINK/V2 20-pin connector (CN3) that can be used to supply power to the target device during programming? Or is it mandatory that the target board provides its own supply (VDD) to the VTref (VAPP) pin?

As mfgkw wrote above: no.

Please check the ST-Link user's manual section 4.2:

ST-Link UM 

There is a VDD 3.3V on pin 19, but please don't use it, it is not designed for power supply.

 


@Mike_ST wrote:

ST-Link UM 

There is a VDD 3.3V on pin 19, but please don't use it, it is not designed for power supply.


The User Manual could be a lot clearer about this:

Image1.png

It does, indeed, show that it should not be connected to the Target - but gives no indication as to why, nor what purpose this pin does serve.

Also, the description of VAPP could be a lot clearer that it's an input to the ST-Link from the Target.

 

This is such a common question that it really should be made clearer!

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.

Hi,

see manual:

v2-link.png

So always (!) you have to connect pin 1 (and/or 2) to target VDD. (st-link  check here VDD of target = ok ?)

+ usually have target powered by external supply.

And -no guarantee-  pin 19 to get some 100mA max. for target supply.  (only for small target, < 100mA !)

 

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