Skip to main content
Brian H
Senior
November 12, 2024
Question

Frequent ST-LINK/v2 Hang with Solid Green LED

  • November 12, 2024
  • 2 replies
  • 1576 views

Just wondering if anyone else sees this on the regular.

I have a custom board with an STM32F107 MCU (but I see this across hardware projects with various ST MCUs).

I have the ST-LINK/v2 doing SWD to the MCU and it's connected to the host PC through a SABRENT-brand 10-port USB-3 hub.

Every so often, an attempt to start a debug session or program the MCU gets stuck with the ST-LINK's LED going to solid green.  Only replugging the ST-LINK's USB connection gets it going again.  Sometimes it happens several times in a row.

Have other people encountered this sort of behavior when using ST-LINK/v2 with a hub?  Note that mainly due to cable lengths I haven't tried plugging it straight into the computer.  

2 replies

AlexWEI
ST Employee
November 13, 2024

hi 

for the stlink, suggest try to plug it directly into the computer to try it. may be for the not so good cable , the signals are reduced for recognize.

Brian H
Brian HAuthor
Senior
November 13, 2024

Yeah, I know that's the most-likely-by-far explanation...the way my workstation is set up means plugging straight into the computer is a challenge.  I guess I was hoping for some other option! :)  Maybe I can get a longer A-to-mini-B cable and try that...

Sco
ST Employee
November 14, 2024

When the "failure" happens, is it possible to recovery by enabling the NRST?