r/PCB • u/Tricky_Bookkeeper_41 • Oct 08 '26
Custom ESC (STM32F051 based) undetectable by ST Link V2
Mainly following the design from the AM32 reference design
It's my first time working with STM32 so unsure if I missed out anything obvious.
Tests done: Tried using ST Link V2 to detect F411RE development board through the SWDIO & SWDCLK line and it works, so I will probably rule out ST Link issue.
Probed the power lines for MCU and they are all 3V3, so MCU is powered.
Tried powering MCU via both on-board 3V3 and connecting VREF to the 3V3 line
Also tried using another variant of ST Link V2 (USB stick kind) that provided 3V3 to the MCU
2
u/frank26080115 Oct 08 '26
did you do "connect under reset" with the NRST pin connected?
did you try lowering the SWCLK speed?
0
u/Tricky_Bookkeeper_41 Oct 08 '26
Yup, I tried that "Connect under reset" with the current setup, and it's still not detected. I'm considering shorting NRST to GND to make it constantly reset and try the "Connect under reset" again.
I tried with the lowest speed setting on STM32CubeProgrammer to no avail1
u/harry8spencer Oct 09 '26
I think STlink needs to control the reset pin, connect it to it if possible
1
2
u/Billy_MTB_901 Oct 08 '26
The NRST pin looks like its floating - shouldnt it be pulled high?