2022-03-28 09:07 AM
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?
2022-03-28 09:47 AM
Schematic/pinout looks correct. Is the part oriented correctly?
Edit: if chip is powered without debugger attached, is NRST high?
2022-03-28 10:28 AM
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.
2022-03-28 10:45 AM
2022-03-30 03:53 AM
I didn't manage to take anything usable.
However, I assembled another board, and got it working.
2022-03-30 07:38 AM
Sounds like it was a hardware issue.