Skip to main content
Visitor II
May 30, 2023
Question

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

  • May 30, 2023
  • 3 replies
  • 3362 views

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.

    This topic has been closed for replies.

    3 replies

    Graduate II
    May 30, 2023

    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

    TName.1Author
    Visitor II
    May 30, 2023

    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

    Graduate
    May 30, 2023

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

    TName.1Author
    Visitor II
    May 30, 2023

    updated post with schematic

    Graduate
    May 31, 2023

    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).

    TName.1Author
    Visitor II
    June 1, 2023

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