cancel
Showing results for 
Search instead for 
Did you mean: 

How to connect ST-Link/V2

Ken Inoue
Associate III
Posted on July 02, 2017 at 10:59

Thank you for your patronage. 

I'm Japanese. 

I connected ST-Link / V2 as shown below.  

0690X00000603rrQAA.jpg0690X00000607KqQAI.png

 However, an error was displayed as shown in the figure below. I translate this into English. 

�Fatal error : ST-Link: Failed to identify the target MCU. Please check the selected hardware and interface. Session aborted.''

0690X00000607V7QAI.png

#st-link/v2
20 REPLIES 20
Posted on July 02, 2017 at 11:26

1. The nucleo board has build-in ST-LINK v2-1. Have you tried it?

2. According to the nucleo manual CN2 jumper connects the build-in ST-LINK to the target MCU.

HAve you removed CN2 to avoid interaction of the external ST-LINK with build-in ST-LINK?

Posted on July 02, 2017 at 12:12

Ad 1. I am not able to conclude: does the original build-in ST-LINK work fine?

3. Is the ST-LINK firmware up to date? Have you compared the build-in ST-LINK firmware version with the external one? Just run ST-LINK utility to see the firmware version.

4. I assume that the hw connections are correct (at least I believe that you have verified them).

Posted on July 02, 2017 at 12:06

Thank you for your reply.

1. Yes. I tried. I want to use an external ST-Link because I am going to make a new circuit. The new circuit does not have In-circuit debugger. So I want to debug Nucleo as an exercise with an external ST-Link.

2.Yes. I removed CN2 jumper connects. But the same error appeared. 

tome
Associate II
Posted on July 02, 2017 at 14:23

Also you need to power your Nucleo board from external power source. Original ST-LINK programmer don't have a power on the VAPP pin. It's why I using  Chinise ST-LINK programmers, it's smaller, has  +5V and +3.3V pins , look like a USB-Flash and tha main things it's cost about $2USD.

Ken Inoue
Associate III
Posted on July 02, 2017 at 15:32

Thank you for your reply.

I'm sorry for my poor English.

I think 

Original ST-LINK programmer have a power on the VAPP pin.

0690X00000607LVQAY.png

The photo above is Original ST-LINK programmer.

Here is part of Original ST-LINK programmer manual. According to this, there is a VAPP pin. 

0690X00000607LjQAI.png0690X00000607GJQAY.png
Posted on July 02, 2017 at 15:39

I believe that you have verified the voltage supplied to the target MCU.

S.Ma
Principal
Posted on July 02, 2017 at 16:04

To my understanding, the stlink monitors the application vdd, and refrain from being an applucation supply voltage.

Posted on July 02, 2017 at 15:18

I'm very happy to reply because I am in great trouble. 

1. Yes. T

he original build-in ST-LINK work fine.

3. I upgrade ST-Link.

But the same error appeared. 

0690X00000607a5QAA.png

The photo above is Nucleo ST-Link version

0690X00000607LoQAI.png

The photo above is External ST-Link version.

4. Thank you very much.

Ken Inoue
Associate III
Posted on July 02, 2017 at 17:30

Thank you everybody.

I'm sorry. I noticed that VAPP voltage is 1.5V. My target MCU supplied voltage is 3.3V.

So I changed it as below.

0690X00000607LtQAI.png

But an error in the figure below appears. 

I translate this into English. ?

Failed to load the flash loader.''0690X00000607MDQAY.png