2025-09-06 4:27 PM - last edited on 2025-09-09 2:38 AM by Andrew Neil
Hi,
I have a custom developed stm32 project with stm32f411ret6 mcu, i have done my full board and got the pcb printed. I have a 4 pin header on my pcb with vcc,gnd, swdio, swclk for uploading the bootloader for the first time. I have done this several time earlier successfully with stlink/v2 programmer, but now it shows the error(image 3 at bottom):
Next I bought a stm32f446 nucleo board and tried with the onboard stlink by removing both the jumpers to program this mcu on the custom pcb, still stlink does not connect. On my pcb header 3.3v power is also coming successfully I have checked it too. Also, my boot pin and nrst is connected on custom pcb like this:
under both stlink connection methods i am getting this error, trying to solve these for many days and getting the same connection issue as follows, please help me,
2025-09-06 6:11 PM
Verify VCAP voltage is around 1.2 V.
Ensure ALL VDD/VDDA pins are connected to 3.3V.
Ensure ALL VSS/VSSA pins are connected directly to ground.
Recheck SWD pin wiring.
2025-09-09 2:38 AM
How to solve connection errors when connecting and programming the STM32 target board.
How to solve debugger connection issues
Note that this is not a genuine ST-Link - it is a clone:
Note that the wiring of these can vary - so are you sure that your wiring exactly matches the actual clone that you have?
@ashvinelo wrote:I have a 4 pin header on my pcb with vcc,gnd, swdio, swclk for uploading
Have you tried adding a Reset connection?
Connecting under hardware reset can get you out of some of these "cannot connect" situations...
@ashvinelo wrote:I have done this several time earlier successfully
So what code did you program?
Does your code reconfigure the SWD pins, or put the CPU to sleep, etc ?