Skip to main content
Visitor II
September 20, 2023
Solved

stlink v2 not connecting to stm32f405

  • September 20, 2023
  • 4 replies
  • 4451 views

Hi everyone,

I recently build a custom PCB with a stm32f405, but every time I try to connect to it with a stlink v2 it gives an error.

 

Target no device found

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

 

I already managed to program a stm32 blue pill with the stlink, so I am starting to think the problem lies in my PCB.

Thanks in advance.

    This topic has been closed for replies.
    Best answer by TDK

    They should be ~1.2V. They're both way below that?

    Verify proper part orientation. With the "STM32" text reading left to right, pin 1 is at the bottom left.

    Verify good solder joints.

    4 replies

    Super User
    September 20, 2023

    boot0 at gnd !

    st-link -> CubeProgrammer -> connect : system software reset

    should connect then!

    wv1106Author
    Visitor II
    September 20, 2023

    Still doesn't seem to work.

    Super User
    September 20, 2023

    Your schematic symbol is missing pin 63 (VSS). If this is left unconnected on the board, it would explain the error.

    TDK_0-1695215949785.png

     

    wv1106Author
    Visitor II
    September 20, 2023

    It indeed doesn't show in the schematic for some reason but it is connected.

    wv1106_0-1695216472624.png

     

    Super User
    September 20, 2023

    > It indeed doesn't show in the schematic for some reason but it is connected.

    Weird.

     

    Measure VDD and VCAP to verify correct voltages.

    If you have a counterfeit programmer like this, it could also be that the software doesn't like it.

    TDK_0-1695216706072.jpeg

     

    wv1106Author
    Visitor II
    September 20, 2023

    The VCAP voltages are way below what they should be. The VDD pins seem fine.

    TDKAnswer
    Super User
    September 20, 2023

    They should be ~1.2V. They're both way below that?

    Verify proper part orientation. With the "STM32" text reading left to right, pin 1 is at the bottom left.

    Verify good solder joints.

    wv1106Author
    Visitor II
    September 20, 2023

    Well this is embarrassing. My stm32 was indeed in a wrong orientation.

    Thank you very much for your help.

    Super User
    September 20, 2023

    You aren't the first and you won't be the last. It's confusing. Luckily, usually a mistake you only make once.