2026-05-27 5:49 AM - last edited on 2026-05-27 6:51 AM by Andrew Neil
2026-05-27 6:05 AM
Hello,
In the debug console text, can you check that the STLINK Firmware is not outdated and needs to be upgraded.
Or check if you see any error message.
Rgds,
Laurent
2026-05-27 6:49 AM - edited 2026-05-27 7:15 AM
Welcome to the forum
Please see How to write your question to maximize your chances to find a solution for best results.
In particular:
Note that both a clone STM32 and a clone ST-Link could cause this type of thing - see:
Blue pill (STM32F1) programs OK via Arduino IDE but not Keil. Chip ID:0x2BA01477
How to recognize a genuine ST-LINK/V2 versus a cloned one
2026-05-29 6:44 AM
I had a similar problem, solved it with :
2026-05-29 7:08 AM
@Austin_Jia wrote:
Could you translate the rest of that message (the bit after "(error138):") to English, please?
2026-06-08 8:16 AM - edited 2026-06-08 8:17 AM
Yes, not sure about the non-english portion of the error but I just had a very similar problem and changing the port fixed it. This not too useful error message is exactly what you will get if the stlink gdb server fails to open the port it wants, which by default is 61234 and 61235. which just happen to be in a range windows will assign at random for a variety of things.
2026-06-08 8:53 AM
@Nate42 wrote:
It seems that "tried to join a drive to a directory on a joined drive" is a generic thing that GDB says when pretty much anything goes wrong.
I see it when the connection fails because my target is not powered up, and when I've forgotten to connect the ST-Link.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.