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.
2025-04-25 10:44 PM - edited 2025-04-27 11:54 PM
@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
2025-04-27 11:48 PM
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