cancel
Showing results for 
Search instead for 
Did you mean: 

Custom STM32F413 Will Not Connect With STLinkv2

Jatkins2431
Associate II

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

 

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

7 REPLIES 7
TDK
Guru

> 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.

If you feel a post has answered your question, please click "Accept as Solution".

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 

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.

If you feel a post has answered your question, please click "Accept as Solution".

Jatkins2431_4-1727494953791.png

Tested but still no luck on CubeProgrammer either! Could this be anything else?

 

Thanks,

Justin

May have found the issue, even though the text is printed on the IC, it does not have aligned orientation! (https://electronics.stackexchange.com/questions/123703/which-of-these-marks-signifies-pin-1-on-the-stm32f-lqfp64) I will flip it and see if this works. Thanks for mentioning part orientation.

Yes, I only mention because when I took that screenshot I mustve forgot to plug in VCC. I have tried again with proper 3V to no prevail. I have some extra media below!

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