Skip to main content
Visitor II
January 2, 2025
Solved

Unable to Connect to Target STM32F412CEU6

  • January 2, 2025
  • 1 reply
  • 629 views

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

 

 

 

    This topic has been closed for replies.
    Best answer by caneralp

    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  

    1 reply

    Technical Moderator
    January 2, 2025

    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.

    caneralpAuthorAnswer
    Visitor II
    January 2, 2025

    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