Skip to main content
Associate
Sep 20, 2023 1:12 PM UTC
Solved

stlink v2 not connecting to stm32f405

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.
TDK
TDKBest answer
Sep 20, 2023 3:25 PM UTC

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.

"If you feel a post has answered your question, please click ""Accept as Solution""."

9 replies

AScha.3
Super User
Sep 20, 2023 1:17 PM UTC

boot0 at gnd !

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

should connect then!

If you feel a post has answered your question, please click on " Best Answer ".
wv1106Author
Associate
Sep 20, 2023 1:26 PM UTC

Still doesn't seem to work.

TDK
Sep 20, 2023 1:18 PM UTC

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

 

"If you feel a post has answered your question, please click ""Accept as Solution""."
wv1106Author
Associate
Sep 20, 2023 1:28 PM UTC

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

wv1106_0-1695216472624.png

 

TDK
Sep 20, 2023 1:33 PM UTC

> 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

 

"If you feel a post has answered your question, please click ""Accept as Solution""."
wv1106Author
Associate
Sep 20, 2023 3:04 PM UTC

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

TDK
TDKBest answer
Sep 20, 2023 3:25 PM UTC

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.

"If you feel a post has answered your question, please click ""Accept as Solution""."
wv1106Author
Associate
Sep 20, 2023 4:12 PM UTC

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

Thank you very much for your help.

TDK
Sep 20, 2023 6:00 PM UTC

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

"If you feel a post has answered your question, please click ""Accept as Solution""."