Skip to main content
Pas Kol
Visitor II
December 26, 2017
Question

ST_LINK V2 Not detecting Target

Posted on December 26, 2017 at 20:23

So I made a custom STM32F446RET6 board and I first used a mini ST_LINK programmer to connect to the MCU. I was able to program it but couldn�t debug it since the mini ST_LINK programmer doesn't have the SWO pin. I used STM32 ST-LINK Utility and Keil to program the chip.

0690X00000604EGQAY.jpg

I then purchased the ST_LINK V2 programmer from ST but it doesn�t connect to the MCU (target). My laptop does recognise the ST_LINK V2 programmer since I have the stsw-LINK009 software installed. The SWCLK. SWDIO, and SWO pins are directly connected to the male headers as seen in the pictures.

 

Here are the Connections:

0690X0000060PGeQAM.jpg0690X0000060PGfQAM.jpg

I also attached the trace.log file from STM32 Utility: 

 

 

Any ideas as to why this is happening?

#stm32f4 #debugging #no-target-connected #keil-ide #st_link
This topic has been closed for replies.

10 replies

Kenta Chang
Associate II
December 29, 2017
Posted on December 29, 2017 at 06:11

Hello, 

I am a new user for STM32F446, and I made a board to learn the STM32F446 this week. But have a problem: Fatal error, ST-LINK V2, No MCU device found. Session aborted!

Could you please help me to solve this issue?

Tesla DeLorean
Guru
December 29, 2017
Posted on December 29, 2017 at 17:27

Review the schematic, the error suggests the chip isn't running, or is wired up wrong.

Check voltage observed on NRST and VCAP pins.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Kenta Chang
Associate II
December 30, 2017
Posted on December 30, 2017 at 15:29

Thanks.

The voltage on NRST pin is 3.27V, on VCAP1 pin is 1.12V and on VCAP2 pin is 0.20V. 

By the way, could you please let me know: what voltage are correct on VCAP1 and VCAP2 ?

Kenta Chang
Associate II
December 29, 2017
Posted on December 29, 2017 at 11:03

Hi, 

I find the connection was Not correct on ST-LINK V2 side.

Andrew Neil
Super User
December 29, 2017
Posted on December 29, 2017 at 14:49

Note that what you show there is not an 'official' ST product - it is a cheap chinese knock-off.

I have noticed with these that the target connector pinout can differ from one item to another - so check the markings on the case carefully ...

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.