Skip to main content
Associate II
November 12, 2024
Question

STM32L011F4P6 can't upload code.

I have STM32L011 board that i make. I left NRST and BOOT0 open. And i try to upload code using ST Link V2. But seem like the ST link is not recognize the STM it always show "Target no device found". Can anyone help me identify the problem? Please..Thank you in advance.

This topic has been closed for replies.

11 replies

Tesla DeLorean
Guru
November 12, 2024

Present schematic

Error tends to be indicative of non-functional part, often due to power issues, or the VTarget not being presented to the ST-LINK/V2 (Pin 1 of 20-Pin Header)

Is this an authentic ST-LINK? One on a NUCLEO Board?

What exactly are we working with here, you post lacks a lot of contextual detail?

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Esa1Author
Associate II
November 12, 2024

Esa1_0-1731427601905.png

Esa1_1-1731427640837.png

This is both circuit diagram and ST Link i used. For ST link i try with the board i bought (STM32F401C) is working fine but it not working with STM32L011. Can you help me? Also if you need more information please let me know. Thank you so much

Tesla DeLorean
Guru
November 12, 2024

Yes, so that's a boot-leg ST-LINK, using ST-LINK Utilities, or newer STM32 Cube Programmer?

 

STM32L011D4P6, so SOIC 14 device

https://www.st.com/content/ccc/resource/technical/document/datasheet/42/c0/ab/e5/71/7a/47/0b/DM00206508.pdf/files/DM00206508.pdf/jcr:content/translations/en.DM00206508.pdf

Nothing is jumping out immediately from the schematic, and you can read 3.3V across the supply at the capacitor?

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Esa1Author
Associate II
November 12, 2024

For STM32 Cube Programmer is last version because i just download it. Also yes i can read voltage 3.3V across the supply at the capacitor and also i read direct on STM VDD pin to make sure 3.3V is reach STM.

Esa1Author
Associate II
November 12, 2024

No. It said, it voltage is 3.29V

Andrew Neil
Super User
November 12, 2024

That's fine - we can allow a 10mV error!

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Esa1Author
Associate II
November 12, 2024

Sorry that i can't provide you with testing image because i don't have a board with me now. but tomorrow. I will send you all testing picture. Also i confirm by read direct on NRST pin is 3.3V, for BOOT0 pin i also try to pull them to low. But seem nothing work. I even try to replace the STM32 chip but still the same result. :(

Esa1Author
Associate II
November 13, 2024

Esa1_0-1731469134409.png

This is the image of CubeProgrammer. I try put pin NRST to low while trying to connect. It seem can detect that the chip is in RST state.

Esa1Author
Associate II
November 13, 2024

Esa1_1-1731469228010.png

And when i try again is still the same result. Connect NRST to ST link or not is the same

Esa1Author
Associate II
November 13, 2024

Esa1_2-1731469343896.png

The same result when i try to decrease speed to the lowest and select under RST