cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with the nRST pin in a STM32L021K4

LFIAC.1
Associate II

I already read this post with no success: https://community.st.com/s/question/0D50X00009Xka0fSAB/problem-with-the-nrst-pin-in-a-stm32f100cbt6

I tried to design a simple board with a STM32L021K4 and to program it with a STLINK-v3 MINI. I got the following error message:

Error in initializing ST-LINK device.

Reason: Target held under reset.

(You can see the full logs attached, as well as the schematics)

I measured the nRST pin, and it's about 0V. I measured VDD and VDDA, and they are at 3.3V. BOOT0 is connected to GND.

I added a 100nF capacitor from nRST pin to the ground and I tried to short the inductor of the VDDA filter.

Did I miss something obvious? Did I burn something?

Do you have any idea before I waste another PCB?

5 REPLIES 5
TDK
Guru

Schematic/pinout looks correct. Is the part oriented correctly?

Edit: if chip is powered without debugger attached, is NRST high?

If you feel a post has answered your question, please click "Accept as Solution".
LFIAC.1
Associate II

Thanks for your answer. I double-checked the orientation of the components before posting (I'll triple-check tomorrow just in case).

NRST is low whether the stlink is connected or not.

Post a high resolution picture of the board if you can.
If you feel a post has answered your question, please click "Accept as Solution".

I didn't manage to take anything usable.

However, I assembled another board, and got it working.

Sounds like it was a hardware issue.

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