cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Connecting STM32L031F6P6 to ST-LINK (Error: No STM32 Target Found)

MedSid
Associate

Hello everyone,

I am trying to program an STM32L031F6P6 microcontroller, which is soldered on an adapter and connected to a breadboard.
I am using an ST-LINK programmer, and I will attach a picture of the exact ST-LINK I am using.

 


unnamed.jpg

When I connect the ST-LINK to my PC, it is correctly detected by the computer and also by the STM32CubeProgrammer software.
However, the programmer does not detect the microcontroller, and I get the error shown in the attached screenshot:
"Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication."

 

3390c517-1d75-4f3c-9c41-389548166c0d.png

 

Here is how I made the wiring:

  • 3.3V and GND from the ST-LINK are connected to VDD and VSS of the STM32L031F6P6.

  • SWCLK from ST-LINK is connected to SWCLK of the microcontroller (PA14 - Pin 20).

  • SWDIO from ST-LINK is connected to SWDIO of the microcontroller (PA13 - Pin 19).

  • RST from ST-LINK is connected to NRST of the microcontroller (Pin 4), with a 10kΩ pull-up resistor to VDD.

  • BOOT0 pin of the microcontroller is connected to VSS (GND).

  • A 100nF decoupling capacitor is placed between VDD and VSS.

Additional notes:

  • I also tried using the ST-LINK V2-1 from a NUCLEO-F446RE development board, and I faced the same issue.

Could you please help me identify the problem or suggest solutions to successfully program my STM32L031F6P6?
Thank you very much in advance for your help!

3 REPLIES 3
TDK
Guru

VDDA must be connected to VDD. Is it? Show a picture of your board and setup.

That's not a genuine programmer. The one from the NUCLEO-F446RE should work, however.

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

@MedSid ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.

This thread will now be locked. However, if you face difficulties while using genuine ST products, we’re here to assist you. Please feel free to start a new thread, and our team, along with community members, will be ready to help you with any issues/questions you encounter.

Regards
/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Peter BENSCH
ST Employee

@MedSid

The thread has been reopened so that the problem with the ST-LINK/2-1 can be solved as mentioned by @TDK.

However, the illegal clones, e.g. in red, black or other coloured tin cans cannot be supported.

Regards
/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.