2024-09-27 08:04 PM
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:
My settings:
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:
I attempted also connecting it to CubeProgrammer but am unable to establish communication with the board from the STLink. I kept getting:
Per settings:
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
Solved! Go to Solution.
2024-09-27 09:14 PM
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
2024-09-27 08:30 PM
> 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.
2024-09-27 08:35 PM
Hi, yes. Apologies, that was the wrong error message! I have confirmed the reading is 3V, here are the updated error messages:
Here is the one with hardware adjusted to 3.3V:
Still no luck. I will check the VCAP and get back
2024-09-27 08:42 PM - edited 2024-09-27 08:44 PM
Your screenshot says this:
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.
2024-09-27 08:42 PM
Tested but still no luck on CubeProgrammer either! Could this be anything else?
Thanks,
Justin
2024-09-27 08:51 PM
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.
2024-09-27 08:54 PM
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!
2024-09-27 09:14 PM
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