STM32F401RE not detected via SWD – ST-Probe shows probe but Flash size = 0x00
Hello,
I designed a custom PCB using the STM32F401RE (LQFP64), but I cannot connect to the MCU through SWD. I am using an ST-Link probe and the st-probe command-line tool.
When I run the probe command, the ST-Link probe itself is detected, but the target MCU is not properly identified. The tool reports the flash size as 0x00.
MCU: STM32F401RE
Debugger: ST-Link probe
Tool: st-probe
Observed behavior:
ST-Link probe is detected correctly.
The MCU is not detected.
Flash size reported as 0x00.
Power measurements:
VDD = 3.3 V
VDDA = 3.3 V (through ferrite bead BLM18AG601SN1D)
VCAP ≈ 1.2 V (2.2 µF capacitor connected directly, ~8 mm trace, no vias)
NRST = 3.3 V
Total board current ≈ 18 mA (two LEDs also present)
The MCU does not heat up, and current consumption appears normal.
Power architecture:
12 V input → buck converter → 5 V → LDO → 3.3 V (MCU supply)
Analog supply filtering:
VDD → ferrite bead → VDDA
Decoupling capacitors are placed near the MCU.
Debug connections:
SWDIO → PA13
SWCLK → PA14
NRST connected to the debugger
VREF connected to 3.3 V
BOOT0 pulled down with 10 kΩ
Minimal hardware configuration:
For initial bring-up I have connected only the required components for the MCU to boot:
Power supply and decoupling capacitors
Boot configuration resistors
VCAP capacitor
SWD debugging header
No external peripherals are connected to the MCU pins.
There is no external clock connected:
No HSE crystal
No LSE crystal
The MCU should therefore start using the internal HSI oscillator.
Troubleshooting attempted:
Verified all voltages with a multimeter
Checked board current (~18 mA)
Tried lowering SWD frequency
Tried connecting under reset
Attachments:
PCB photos
Schematic photos
Could someone help identify possible hardware issues that might prevent the MCU from being detected over SWD?
Thank you.






