2025-04-25 2:19 PM
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.
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."
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!
2025-04-25 6:06 PM - edited 2025-04-25 6:06 PM
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.