cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot connect the ST-Link V2 to my custom PCB "Error: No STM32 target found"

TName.1
Associate II

Hello,

I have been stuck trying to connect my ST-Link V2 to my custom PCB. I am confident that each of the connections made on the schematic are correct and that the solder joints are ok. I have tested everything with a multimeter. I have tried updating firmware, updating STM32CubeProgrammer, erasing board memory, flashing a program via USB that is configured to communicate via SWD, changing mode from normal to under reset, changing reset mode from hardware to software, and tried connecting with BOOT0 pulled high and low. I am using an STM32F446RCT6 with PB2 pulled low. Sorry if I am missing any information that may be useful. Any guidance is appreciated.


_legacyfs_online_stmicro_images_0693W00000bl9NaQAI.pngSchematic is above. It is very rough as this is just a quick and dirty test board for the IMU attached. The pin numbers don't even match the datasheet for the MCU but the position of each pin does correspond to the correct pin. Also, the 1uF cap has been replaced with a 100nF cap on the reset line.

9 REPLIES 9

Not clear what's actually connected. Diagram?

The authentic ST-LINK/V2 needs a 3.3V from the target on pin 1 or 2

Common Ground

SWDIO and SWCLK

Optionally SWO/PB3

Optionally NRST

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Everything is connected as shown here. I have tried connecting the board to both VAPP and to VDD. I have also tried with both SWO and NRST unconnected and connected. Also just confirmed that SWCLK is working and SWDIO is working with an LED and a slow motion video however I am not sure if they are in sync with each other.
_legacyfs_online_stmicro_images_0693W00000bl5QLQAY.png

Does STM32 Cube Programmer report the correct voltage?​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

I believe so. STM32CubeProgrammer reports 3.21-3.23 while the board is powered at 3.300

ONadr.1
Senior III

I'm afraid no one will be able to help you without the schematic.

updated post with schematic

I updated the post with the schematic I am using if that is of any use. I also double checked that all of the pins are soldered correctly and there are no shorts or bridges.

ONadr.1
Senior III

I don't see any error in the schematic. If the connection with the STLink is correct, either the MCU or the STLink is faulty. It would be best to verify the STLink function with some functional MCU (eg Nucleo64 board).

Ok thank you for the help. At least I can narrow down the issue a little more and stop worrying about the schematic.