Skip to main content
Duggan.Robert
Associate II
Jun 4, 2019 7:27 PM UTC
Solved

How to resolve a problem with ST-Link/2 not connecting to target

I have been working with the trial version of the IAR IDE and with the STM32 processor family.

I have been using the ST-Link/2 device to connect to my target for debugging with no problems.

I began having a problem when starting debug, I am getting a message for the driver:

Fatal error: ST-Link, No MCU device found / Session Aborted!

I've tried updating the ST-Link firmware and reinstalling the driver but no luck.

I've also installed the ST-Link Utility and this does not connect either. I find the same problem with several ST-Link devices and all target boards. 

However, a Nucleo board does function properly.

Does anyone have any suggestions?

This topic has been closed for replies.
Duggan.Robert
Duggan.RobertBest answer
Associate II
Jun 5, 2019 5:34 PM UTC

Thank you Gentleman. The problem was, indeed, with the power supply!

6 replies

Uwe Bonnes
Chief
Jun 5, 2019 8:48 AM UTC

Did you try connect under reset? Try also other combinations of debugger/target if you have access to more devices.

Duggan.Robert
Associate II
Jun 5, 2019 2:11 PM UTC

Thank you Uwe. I have tried three different types of target board (all operated with ST-Link/V2 dongle previously.)

The ST-Link Utility will communicate with the dongle, but not with any target connected.

Tesla DeLorean
Guru
Jun 5, 2019 2:26 PM UTC

Check that the ST-LINK can see and report the Target Voltage, pin 1/2 need to see power.

Strap BOOT0 high to observe if the part is responsive when executing ROM code.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
S.Ma
Principal
Jun 5, 2019 2:30 PM UTC

Strapping boot network is useful if the user code is in stop mode. A simple workaround to reduce this pb is in the user code to delay going to power mode after reset so you have a time window to connect...

Duggan.Robert
Duggan.RobertAuthorBest answer
Associate II
Jun 5, 2019 5:34 PM UTC

Thank you Gentleman. The problem was, indeed, with the power supply!