cancel
Showing results for 
Search instead for 
Did you mean: 

Error: No STM32 target found!

markpow
Senior

I think it is the most popular topic among STM32 programmers who use ST-LINK V2 programming devices.

I have two devices: one is the Lora E5 MIni, and the second is the Lora E5Dev board. Both respond to the AT commands, so I expect they are healthy.

A few days ago, I could access these devices and see their memory. Today, I can't, and I don't know why.

I connected the programmer to the dev board as needed, and I can't connect to this device.

markpow_0-1736183301075.png

markpow_1-1736183978402.png

 

I tried to change settings as the other programmers suggested to achieve connection to such devices but without any success. Programming STM32 controllers using ST-LINK V2 is a kind of magic. It's a horror for me. I can't program my devices.

I upgraded firmware versions several times without any changes.

From the ST-LINK, it looks as expected, I think:

markpow_2-1736184231456.png

As I wrote above, changes of modes and reset modes gave no change.

So, what is wrong? ST-LINK answers on connection, but why it doesn't see devices connected to it?

30 REPLIES 30
TDK
Guru

It may be worth purchasing a genuine programmer if you want tools you can trust to work. Could be a bad connection on the programmer.

Should be able to connect if you don't modify SWDIO/SWCLK pin functions and the chip is running. Otherwise, starting the chip into bootloader mode will let you connect.

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

Could it be that somebody else played with these boards? Coworkers or kids? A lightning or power spike, maybe?

If possible, get a new set of hardware. 


@Pavel A. wrote:

Could it be that somebody else played with these boards? Coworkers or kids? A lightning or power spike, maybe?

If possible, get a new set of hardware. 


No, no one of them. It's winter in my country now, so lighting isn't expected. 

Yes, I ordered a brand-new programmer from a trusted reseller.

We get thunder-snow in the winter where I am.

Also gets to be very low humity as water falls out of the air, and indoor furnace heat drys the air. Watch for ESD / static discharge issues.

I seem to recall WaveShare doing PCBA for ST, so conceivable they have an agreement/license for ST-LINK/V2

Generally speaking the error comes from a lack of viability in the Target, circuits not powered, and thus non-responsive, or the part has physically locked out debugging. Behaviour with BOOT0=HIGH might be instructive. Connectivity of NRST required for "Connect Under Reset" to be possible.

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

@Tesla DeLorean wrote:

Watch for ESD / static discharge issues.

Yes, I think the same now. It could be a static discharge issue. I programmed the last device about two weeks ago, and probably after that, I had this case. Before this case, it worked perfectly. If I recall correctly, there was a warning on the box to avoid static discharge. But is difficult to work still connected to the ground.

 


@Tesla DeLorean wrote:

Behaviour with BOOT0=HIGH might be instructive. Connectivity of NRST required for "Connect Under Reset" to be possible.


VaweShare ST-LINK mini doesn't have an NRST pin. What is the BOOT0=HIGH in this programmer's context?

 

 

 


@TDK wrote:

Should be able to connect if you don't modify SWDIO/SWCLK pin functions 


Let me know how to modify the SWDIO/SWCLK pin functions. To be honest, I don't know how.

>>What is the BOOT0=HIGH in this programmer's context?

It's a general STM32 hardware thing, a boot pin, or button, causing the MCU to run a system loader out of ROM vs user code in FLASH, the former being more of a safe-harbour, the latter reconfiguring pins or interfering.

 

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

To be honest, it's driving me crazy.

I bought the new brand ST-LINK V2. I upgraded it successfully:

markpow_0-1736543894750.png

The driver to it is actual:

markpow_1-1736544309583.png

 

I use the ST32CubeProgrammer:

markpow_2-1736545406650.png

I've got pinouts for this programmer from the official link:

markpow_3-1736545790141.png

According to the above document, the order of the pins looks like this:

markpow_4-1736546009878.png

 

So I connected wires to the Lora E5 Mini:

markpow_5-1736546821473.png

And to ST-LINK V2 (from the point of view the ribbon):

markpow_6-1736546879791.png

I have got the the result:

markpow_7-1736546939801.png

So nothing changed:

markpow_8-1736546990095.png

 

Next, I connected wires from the point of the pins on the board:

markpow_9-1736547083679.png

 

Connections to the Lora were the same as above (the target voltage is 0V in this case).

So I'm still at the same *** point. 

So if there's no change, maybe the problem is at another point?

Is it possible that the problem is on the STM32CudeIde configuration or something else?

Three weeks ago, it simply worked, and after something happened, I can't program devices now.

Who can help me and point me out where I'm wrong?

 



Both those connectors to the ST-LINK look backward.

Look at the diagram again

stlink_pinone.jpg

Pin ONE is the RED DOT, and RED LINE on the cable

stlink_with_cable.jpg

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

Look at the last picture of my last post. I made the connections assuming that the first pin is in the right upper corner. The second is in the row below. Ans so on.

So exactly the way as you point out. Am I wrong?