r/PCB • • Oct 08 '26

Custom ESC (STM32F051 based) undetectable by ST Link V2

Post image

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.

  1. 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.
  2. Probed the power lines for MCU and they are all 3V3, so MCU is powered.
  3. Tried powering MCU via both on-board 3V3 and connecting VREF to the 3V3 line
  4. Also tried using another variant of ST Link V2 (USB stick kind) that provided 3V3 to the MCU
3 Upvotes

9 comments sorted by

2

u/Billy_MTB_901 Oct 08 '26

The NRST pin looks like its floating - shouldnt it be pulled high?

1

u/Tricky_Bookkeeper_41 Oct 08 '26

The NRST pin is connected to a 100nF capacitor to GND. Does it need to be pulled high for ST link to detect it?

2

u/Billy_MTB_901 Oct 08 '26

nvm it has an internal pull-up

2

u/Billy_MTB_901 Oct 08 '26

if nothing else it would be worth trying an external pull-up, otherwise the datasheet mentions you can troubleshoot by pulling NRST low for a bit

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 avail

1

u/harry8spencer Oct 09 '26

I think STlink needs to control the reset pin, connect it to it if possible

1

u/Agt_Cooper Oct 08 '26

Have you tried removing the esd diodes on SWDIO and SWCLK ?