cancel
Showing results for 
Search instead for 
Did you mean: 

How do I fix "No STM32 target found"?

HaYa6174
Associate

I encountered this error when I was trying to flash my custom board with fresh stm32F070C6T6. I used st link v2 for debugging. I updated the firmware of st link v2 right before debugging.

Screenshot 2025-01-13 at 19.03.11.png

 

NRST floating, BOOT0 connected to 3V3 -> failed (in any mode)

NRST floating, BOOT0 connected to GND -> failed (in any mode)

NRST connected to GND, BOOT0 connected to 3V3 -> failed (in any mode)

NRST connected to GND, BOOT0 connected to GND -> failed (in any mode)

 

I also tried both on Windows and Mac(m3), and was not successful.

I also tried Cube IDE, Cube Programmer, and st link utility, but all did not work.

I also tried to use DFU, but it also failed. (no dfu detected)

 

I measured the voltage to be 3.16V and ensured the wiring was ok.

 

Now, I have no idea what I should do to fix this issue. Can anyone point out where it went wrong?
Thanks.

27 REPLIES 27

@HaYa6174 wrote:

 thought that I should use pin19 instead of pin1, but when I swapped pin1 with pin19, my power LED did not light up. 


VAPP is an input to the ST-Link - it does not provide power to the target!

It is the input which the ST-Link reads in order to give this:

AndrewNeil_0-1736778176080.png

 

OH, Thank you so much. I did not know that...

Mike_ST_0-1736779207137.pngMike_ST_1-1736779265702.png

Please check the ST-Link connection is as above. Connect J13 to some power source first, as mentionned, the ST-Link doesn't provide power.

So, now, my computer is showing 3V so the sensing is working right now.
But, still, I failed to flash my chip... 

Screenshot 2025-01-13 at 23.48.10.png

I tried all the modes, but it did not work...

Show current wiring, your picture before looked to mirror required connectivity.

The diagram is for the pin header. The face of the connect is reversed/mirrored. Pin one on the cable is Red at both ends.

The ST-LINK needs pin 1 to be the VTarget and this is used and measured when communicating with the part. Need to see it correctly reported in Cube Programmer. 

The part also needs to be electrically viable. Check part orientation. If it's not viable no methods will work.

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

YES, you were absolutely right, I mirrored it, just like @Mike_ST showed me on the picture, and it worked!!!!

I was such a noob.

 

Thanks a lot, guys!!!


@HaYa6174 wrote:

So, now, my computer is showing 3V so the sensing is working right now.
But, still, I failed to flash my chip... 


So what did you change?

If you had to move the VAPP wire, then the other wires will also need to be moved.

Rather than an extra cable to add confusion and more potential points of failure, I prefer to wire to a plug going straight to the ST-Link:

AndrewNeil_0-1736781471840.png

@Mike_ST @SofLit It would have been helpful if the ST-link had identified pin 1 on the casing.

Or, at least, if the User Manual pointed it out.

That's why I have put a yellow dot  on mine (above)!


@Andrew Neil wrote:

 

So what did you change?

So, since I was using an extra cable, the whole pinout was reversed, so I mirrored my wiring, and it worked.

 


@Andrew Neil wrote:

Rather than an extra cable to add confusion and more potential points of failure, I prefer to wire to a plug going straight to the ST-Link


I should have simply done that...