Skip to main content
KMill
Senior
July 27, 2026
Question

STLink porgrammer up and down like a sabbath lift

  • July 27, 2026
  • 1 reply
  • 9 views

I’m using VSC with the STM32 extensions.

When running debug sessions at leat 50% of the time I get this error message:


Error in initializing ST-LINK device.
Reason: USB communication error. Please reconnect the ST-LINK USB cable and try again.
cube has exited with code 3

 

I have a good quality USB lead and I’m running on macOS on a Mac Mini M2

1 reply

Cartu38 OpenDev
Graduate II
July 27, 2026

@KMill 

100% failure would probably help more 😅.

Half-kidding, but let's give us a chance to help you! Could you at least share more about the device (board) you're connecting to?

Also, could you please copy and paste the debug console trace when it fails?

(Tip: Two extra directives can be added to your launch.json file to get more details if needed.)