Skip to main content
Ken Inoue
Associate III
July 2, 2017
Question

How to connect ST-Link/V2

  • July 2, 2017
  • 20 replies
  • 7230 views
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
This topic has been closed for replies.

20 replies

Bogdan Golab
Lead
July 2, 2017
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?

Ken Inoue
Ken InoueAuthor
Associate III
July 2, 2017
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. 

Bogdan Golab
Lead
July 2, 2017
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).

Ken Inoue
Ken InoueAuthor
Associate III
July 2, 2017
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.

tome
Associate II
July 2, 2017
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
Ken InoueAuthor
Associate III
July 2, 2017
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
Bogdan Golab
Lead
July 2, 2017
Posted on July 02, 2017 at 15:39

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

Ken Inoue
Ken InoueAuthor
Associate III
July 2, 2017
Posted on July 02, 2017 at 17:32

Thank you for your advice. My target MCU supplied voltage is 3.3V. Your advice has been of great help.

S.Ma
Principal
July 2, 2017
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.

Ken Inoue
Ken InoueAuthor
Associate III
July 2, 2017
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
tome
Associate II
July 2, 2017
Posted on July 02, 2017 at 17:45

Read again user manual chapter #4 of UM1075

Table 4. Than under table you could see.

'1. The power supply from the application board is connected to the ST-LINK/V2 debugging and programming

board to ensure signal compatibility between both boards.' How do you think, what does it mean?

________________

Attachments :

Screenshot_20170702-182712.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyZk&d=%2Fa%2F0X0000000b9k%2FPbXNtU6llVjk7GmT.k7WSDUF34YXjvfFmzGP8sq3a4U&asPdf=false
Ken Inoue
Ken InoueAuthor
Associate III
July 3, 2017
Posted on July 03, 2017 at 12:18

Sorry for late reply. It is difficult for me. I'll think about it.

Ken Inoue
Ken InoueAuthor
Associate III
July 4, 2017
Posted on July 04, 2017 at 04:48

Thanks to everyone, I was able to solve this problem. Thank you very much.