2026-05-10 9:33 AM - last edited on 2026-05-11 6:37 AM by Andrew Neil
CubeProgrammer 2.22.0 under MacOS 26.4.1 is not able to connect to my NUCLEO-G431, with the log window showing:
ST-LINK error (DEV_CONNECT_ERR)
Strange thing is this only happens when I have a direct cable connection between the USB-C port on the Mac and the ST-LINK V3 USB on the board - it works as expected if I connect via a USB-C hub.
VS Code is also not able to connect to the board to run a debug session without the hub, so I suspect this is an ST-LINK USB driver issue on the Mac.
Solved! Go to Solution.
2026-05-11 6:36 AM
Hello there @CTapp.1 ,
This behavior appears to match the known issue reported in this FAQ: Possible communication failure between STLINK-V3 and some recent computers. The FAQ might help explain the root cause of this behavior and how to mitigate it, including one of the workarounds which you have already found.
Kind regards,
Kouthair
2026-05-10 4:03 PM
> it works as expected if I connect via a USB-C hub.
Is the hub powered?
2026-05-10 7:58 PM
2026-05-11 12:21 AM
Whilst it does support PD, it does not need to be connected to external power for things to work (one wire to Mac, on to the board).
2026-05-11 12:43 AM - edited 2026-05-11 1:10 AM
These devices work well with many Windows, Linux and Intel Mac hosts. The drivers are very thin - no dedicated kernel modules. So it looks unlikely that ST could "fix" anything in their drivers. Using a hub is a good workaround.
Of course, people that are motivated and have a type-C analyzer can debug and find the real cause of the connection failures.
2026-05-11 12:54 AM
I'm using the latest MacBook Pro M5, so it will soon be "one of the many" ;)
If there is a potential issue here that can't be fixed, it would be useful if that could be documented somewhere - it took me a couple of hours to find the workaround, and the diagnostic messages that were given didn't give any clues.
CubeProgrammer also appeared to connect to the probe at times (though in a non-functional way - just the serial number and target voltage shown), and even allowed the "firmware update" for the ST-LINK to be activated - though that failed with something like "bad firmware checksum". Sounds like USB packet loss, but that's just a guess.
2026-05-11 6:36 AM
Hello there @CTapp.1 ,
This behavior appears to match the known issue reported in this FAQ: Possible communication failure between STLINK-V3 and some recent computers. The FAQ might help explain the root cause of this behavior and how to mitigate it, including one of the workarounds which you have already found.
Kind regards,
Kouthair
2026-05-11 6:41 AM - edited 2026-05-11 6:41 AM
@CTapp.1 wrote:it works as expected if I connect via a USB-C hub.
Checking with/without a hub is, indeed, one of the recommended steps in dealing with ST-Link comms issues:
2026-05-11 10:16 AM
Type-C connectors on these thin laptops are too overloaded: they carry USB and Thunderbolt video and smart power functions, maybe also something Apple proprietary. Hubs help to untangle this complexity. Without a good analyzer it's hard to tell more. Better treat this as Somebody Else's problem.