Skip to main content
Explorer
September 28, 2024
Solved

Custom STM32F413 Will Not Connect With STLinkv2

  • September 28, 2024
  • 1 reply
  • 2526 views

Hello! I am developing a custom stm32f413rgt6 board to interface with a thermal camera. I am having some difficulty getting my first upload going on STM32CubeIDE and would really appreciate some help. I believe my hardware schematic is sound, and the issue is something with settings. Nonetheless, I will attach everything. Here is my error from CubeIDE:

Jatkins2431_0-1727492024827.png

My settings: 

Jatkins2431_1-1727492211536.png

Jatkins2431_5-1727492641737.png

Im using an STLinkv2 from Digikey and have connected the VCC, SWDIO, SWCLK, and GND. Since the system is getting 3V, I also tried modifying the hardware to boost it up to 3.3V which succeeded hardware-wise but did not resolve my problem.

I have SYS configured on CubeIDE as well:

Jatkins2431_2-1727492391002.png

I attempted also connecting it to CubeProgrammer but am unable to establish communication with the board from the STLink. I kept getting: 

Jatkins2431_3-1727492445629.png

Per settings:

Jatkins2431_4-1727492506569.png

I also tried uploading with RST pin pulled low per the setting above to no luck on both programmer attempts. I'd very much appreciate any and all assistance!

 

Thank you,

Justin

 

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

    Hi TDK, I am now able to connect with CubeProgrammer! Turns out the STM32 part orientation was in fact wrong (https://electronics.stackexchange.com/questions/123703/which-of-these-marks-signifies-pin-1-on-the-stm32f-lqfp64). Thank you for bringing that to my attention as a possibility.

    The custom STM32 is now able to be uploaded via STLink, thank you for your time!

     

    Best,

    Justin

    1 reply

    Super User
    September 28, 2024

    > Target voltage: 1.62V

    Schematic says it should be 3V, so that's the problem.

    Is the board powered? Programmers generally don't provide power. Check voltage on the 5V rail and after the 3V regulator. Something is probably pulling it down.

    Schematic looks okay, so perhaps an assembly issue. Check part orientation. Check VCAP voltage (should be 1.2V). Check for solder bridges or cold solder joints.

    Explorer
    September 28, 2024

    Hi, yes. Apologies, that was the wrong error message! I have confirmed the reading is 3V, here are the updated error messages:

    Jatkins2431_0-1727494388393.png

    Here is the one with hardware adjusted to 3.3V:

    Jatkins2431_1-1727494494971.png

    Still no luck. I will check the VCAP and get back 

    Super User
    September 28, 2024

    Your screenshot says this:

    TDK_0-1727494926906.png

    Why do you think it's wrong? Given that you are having connection issues, and that would explain the problem, I would be inclined to believe it.

    The programmer will work with 3V. There is no need to modify it to 3.3V.