cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to Connect to Target STM32F412CEU6

caneralp
Associate

Hi. I have a simple custom board with STM32F412CEU6. I can't connect to the MCU using the ST-LINK through SWD.
 Here is the circuit. 

caneralp_0-1735815573795.png

I have tried different settings, still getting the error. 

caneralp_1-1735815601287.png

I verified all the voltages and settings. They all seem ok. 

I also measured the signals on SWD. 

caneralp_2-1735815665258.png

The only thing is the voltage level on SWD for the 0-V level looks suspicious. 

Can anyone help me to find the issue? 

Regards,
Caner 
Alp Electronix

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Thanks for the suggestions. 

 

1- There is a 4.7uF cap.

 

 

I just found the issue. I connected the VDD of the debugger pin to the same voltage of the board, now I can connect to the target. 

 

Regards,

Caner  

View solution in original post

2 REPLIES 2
SofLit
ST Employee

Hello @caneralp and welcome to the community,

What is the value of the capacitor connected to VCAP pin?

According to the AN4488 "Getting started with STM32F4xxxx MCU hardware development":

SofLit_0-1735816599214.png

1- You need a 4.7uF capacitor on VCAP1 pin.

2- And a 4.7uF as decoupling capacitor connected to VDD not 2.2uF.

PS:

1- No need for NRST pullup resistor, as there is one internal in the chip.

2- Please use STM32CubeProgrammer to connect to the MCU instead of STLINK utility as it's a deprecated tool.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Thanks for the suggestions. 

 

1- There is a 4.7uF cap.

 

 

I just found the issue. I connected the VDD of the debugger pin to the same voltage of the board, now I can connect to the target. 

 

Regards,

Caner