2025-07-21 5:44 AM
Greetings. I am a beginner and an electronic student and I am currently getting my hands on STM32H523. I have created a mcu board in Altium Designer just to control LEDs by GPIO, hopefully to understand more about STM32. I have the PCB fabricated, and the connection for ST Link v2 is SWDIO---SWDIO, SWCLK---SWCLK, GND---GND. I have also connected a wire at the VCC and GND to the 3.3v power supply to power up the MCU. For Boot0, I set it to HIGH since I see people saying that to program the MCU, I need to set it to HIGH.
I have soldered everything and connect the board to st link, and I cannot debug. I was hoping if anyone can give me some guide, and here I will attach my schematic so you may spot out any design errors... Thank you very much, understanding the STM32 means a lot to me as I intend to use them in my future advanced projects.
2025-07-21 6:18 AM - edited 2025-07-21 6:19 AM
BOOT0 should be pulled low to execute user code, including while debugging.
Schematic looks okay to me.
Can you connect to the chip with STM32CubeProgrammer? If no, show a screenshot of any error messages you receive.,
2025-07-21 6:42 AM
@BW_TheExplorer wrote:I am a beginner ... hopefully to understand more about STM32.
Rather than leap straight into designing a board, I would strongly suggest that you start with a ready-made & supported board from ST; eg, NUCLEO-H533RE:
https://www.st.com/en/evaluation-tools/nucleo-h533re.html
That will give you a known-good, supported platform on which to gain familiarity with the product and the tools.
Having done that, it will also serve as a good starting point for your own design.
See also application note AN5711, Getting started with STM32H5 MCU hardware development.
2025-07-21 6:57 AM
Thank you for your quick response. I have actually bought a Nucleo h533re and got it work before I try. However, the board has a ST-link built in, as well as the type C power plug. It gave me a good starting point to get my hands on the STMCube and IDE, as well as some basic programming of GPIOs. But I still want to develop my own boards since some of my upcoming projects will require compact design. One of my school project next year is to build a mini-camera display, and I have made up my decision of using STM32 MCUs due to their powerful computation power. My problem is still stuck at the hardware development part, and I feel like I really need some guides. I found most of the online resources talking about development board and I am still trying to filter/ figure out useful information...
2025-07-21 7:04 AM
Hello, Thank you for your reply. I did try to connect it to the programmer (I even have the code ready, they are error-free) . Unfortunately, the connection is a failure. First, it shows No STM32 target . It did recognize my ST-Link. I am trying the combination of Boot0 high, boot0 low, and I have also tried using both 5V and 3.3V . But none of them got me connected. I am new to this so maybe my words are not very clear, if so, i do apologize for that. I am still checking my connections , hopefully to make sure it isn't hardware issues. If you need any other information to help me solve this problem, please do let me know. I will do my best to provide everything you need to identify/diagnose the problem. Once again, thank you so much for your approach!
-BW
2025-07-21 8:42 AM - edited 2025-07-21 8:42 AM
Is the board properly soldered?
Chip orientation correct?
VCAP voltage around 1.2 V?
VCC voltage correctly reported in STM32CubeProgrammer?
No need to mess with BOOT0. It's not an issue as far as connecting to the chip. But you will want it pulled down when you eventually run code.