cancel
Showing results for 
Search instead for 
Did you mean: 

stlink v2 not connecting to stm32f405

wv1106
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

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

View solution in original post

9 REPLIES 9
AScha.3
Chief III

boot0 at gnd !

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

should connect then!

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

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

Still doesn't seem to work.

wv1106
Associate II

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

wv1106_0-1695216472624.png

 

TDK
Guru

> 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".
wv1106
Associate II

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

TDK
Guru

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".
wv1106
Associate II

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

Thank you very much for your help.

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