Skip to main content
Associate II
Nov 3, 2026 5:40 PM UTC
Solved

STM32L011D4 MCU not programming

Hi,

I'm using a custom STM32L011D4P6, and it won't program after two days of trying.

There are a couple of similar issues I've seen on here regarding the boot bit, but I'm still struggling to connect.

I've tried SWD and USART2 through PA9 and PA10. I've had BOOT0 high and low, played around with NRST, and tried connecting through both CubeIDE and CubeProgrammer.

I've omitted the schematics here. It is on a custom PCB, but the board itself is correct, with power where it needs to be and the correct pins connected. BOOT0 is on PB9 (pin 1) and NRST is on pin 4.

The only unusual thing is that I needed the BOOT0 pin, so it's connected to an nFAULT line for a different IC. It has a pull-up, but the resistor has not been populated.

If you do have any suggestions, please let me know.

AScha.3
AScha.3Best answer
Super User
Nov 4, 2026 8:42 PM UTC

So you read this ? and “connect under reset” ?

+

btw

the cheap st-link sticks, are “clones”, not real st-link, they cannot do hw reset . You need a real st-link, that has working reset.

-- or try with your clone : holding nrst low manually and try connect in CubeProgrammer...

If you feel a post has answered your question, please click on " Best Answer ".

5 replies

Associate II
Nov 3, 2026 7:20 PM UTC

Hi,

You will have to provide some more information, e.g. your environment - especially the ST-Link you are using and exactly how it is connected..

 

BR Klaus

 

voxeAuthor
Associate II
Nov 4, 2026 8:04 PM UTC

Thankyou for getting back to me.

 

I tried a few things, a clone ST link which i usually use and one taken from a nucleo board connected to A13 and A14, both are working and i tried them both from the IDE and the programmer. I also tried a usb to uart convertor through pins A9 and A10 with no luck.

The programmer showed that the MCU isn't responding on uart or serial wire and i probed every pin on the board with nothing out of place

AScha.3
AScha.3Best answer
Super User
Nov 4, 2026 8:42 PM UTC

So you read this ? and “connect under reset” ?

+

btw

the cheap st-link sticks, are “clones”, not real st-link, they cannot do hw reset . You need a real st-link, that has working reset.

-- or try with your clone : holding nrst low manually and try connect in CubeProgrammer...

If you feel a post has answered your question, please click on " Best Answer ".
voxeAuthor
Associate II
Nov 6, 2026 5:16 AM UTC

That would have been very helpful to know, i did try rest with hardware and software but only with the clone. Manual toggling was what i was doing but it didnt go anywhere.

Thats working now with the break off and hardware reset, thank you for the help, appreciate it massively. 

Associate II
Nov 5, 2026 12:49 AM UTC

It would be helpful if schematics can be shared. Can the board be programmed successfully before?