IMAGE LINK: https://ibb.co/yfFvwQP

I am using Arch Linux as my main os. I have just started embedded dev and am setting up my env.

I am having an error connecting to my St Link V2 debugger as shown in the snapshot I included. I used Stm32CubeMx to generate the code and Atollic as my IDE. I can build the project fine, but when trying to connect and debug I get a message that no device target is found which leads me to think I am missing some drivers/libs. I am unsure how to proceed as this is my first time setting these things up..

The st link USB has a red light that then goes to blue/purple; all the wires are hooked up properly - the board has a solid red light and flashing green light the CPU is the STM32F103C8T6


STMicroelectronics ST-LINK GDB server. Version 5.1.0 Copyright (c) 2018, STMicroelectronics. All rights reserved.

Starting server with the following options: Persistent Mode : Disabled Logging Level : 1 Listen Port Number : 61234 Status Refresh Delay : 15s Verbose Mode : Disabled SWD Debug : Enabled

Target no device found

Error in initializing ST-LINK device. Reason: No device found on target.

  • \$\begingroup\$ When I use the St-Link gui which can be found in the AUR ( arch linux repo ) the light on the usb debugger will go from red to blue and flash a few times in between the same thing occurs if I attempt to flash the device using the st link CLI ... it's odd because I don't think this would happen without the proper drivers? here is the application GUI I am referring to 1 aur/qstlink2-git 1:1.2.4.r244.24a687a-1 (+9 0.00%) (Installed: 1:1.2.4.r252.cd27f4b-1) A ST-Link V2 (Debugger/Programmer) client graphical user interface \$\endgroup\$
    – Invic18
    Jun 26, 2019 at 0:30
  • \$\begingroup\$ I didn't realize there was an official solution for this on linux, vs. OpenOCD or texane/stlink. Anyway, first things to check are that it is visible in the output of lsusb and that you have a suitable udev rule granting access to non-root users. While I don't know exactly what ST or Atollic are doing, on Linux this type of thing doesn't generally use a "driver" so much as a userspace program which interacts with it. You could also see if the messages are any different with the target connected vs not connected to the stlink. \$\endgroup\$ Jun 26, 2019 at 3:14
  • \$\begingroup\$ so running lsusbI can see the device connected : Bus 004 Device Bus 002 Device 006: ID 0483:3748 STMicroelectronics ST-LINK/V2 \$\endgroup\$
    – Invic18
    Jun 26, 2019 at 3:26
  • \$\begingroup\$ unplugging the st link and running this in atollic there does indeed to be a different error : Persistent Mode : Disabled Logging Level : 1 Listen Port Number : 61234 Status Refresh Delay : 15s Verbose Mode : Disabled SWD Debug : Enabled ST-Link enumeration failed Error in initializing ST-LINK device. Reason: ST-LINK DLL error. \$\endgroup\$
    – Invic18
    Jun 26, 2019 at 3:28
  • \$\begingroup\$ I was also continuing to play around and got a more detailed error message : ibb.co/dM07GhY \$\endgroup\$
    – Invic18
    Jun 26, 2019 at 4:12

1 Answer 1


FOUND IT! this is the most insidious thing ever but the pin out was WRONG on the cover! I will include the link here from the amazon review I bought the product from, but in case it gets removed or something.. take the cover off and actually look at the pin out!! the cover was not correct the swc had to be swapped with the swio.


  • \$\begingroup\$ These are a handy but rather dodgy "ownerless" product that comes in multiple versions with indeed at least two common pinouts. Further pretty much all of them have do not have the firmware driving what is brought to the connector as NRST, meaning that regardless of settings you are operating without a reset and so unable to recover from situations where you need that to wake up or to connect under reset. Best to make sure the reset on your target is manually accessible. Also beware they can randomly stop working; best to have a spare or an alternative on hand. \$\endgroup\$ Jun 28, 2019 at 17:12
  • \$\begingroup\$ can you provide me with a better product that I may purchase ? \$\endgroup\$
    – Invic18
    Jun 28, 2019 at 18:41
  • \$\begingroup\$ Though it has a less convenient form factor you could buy an actual stlink from ST micro (get it from a real distributor with a chain of custody, not an ecommerce site). Or you could use the one built into a discovery or nucleo board. Or you could just get a few spares from of this one. Or you could get a variety of aftermarket adapters, including legitimately open source ones. But if you buy an illegitimate knock off of a name brand product (vs a legit open source design or a genuine name brand one), you do don't really know what you are getting. \$\endgroup\$ Jun 28, 2019 at 19:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.