Using SWD pins to flash code
Hi,
I am using STM32H503 controller and wanted to understand if SWDIO pin can be used to flash the code.
Hi,
I am using STM32H503 controller and wanted to understand if SWDIO pin can be used to flash the code.
Not on its own.
The SWD interface consists of two pins:
You need both plus, of course, GND.
https://developer.arm.com/documentation/101636/0100/Debug-and-Trace/JTAG-SWD-Interface
https://learn.sparkfun.com/tutorials/arm-programming/jtag-and-swd
https://kb.segger.com/Target_Interface_SWD
Although not always strictly necessary, you should also include NRST in your debugger/programmer connection - it can get you out of some "bricked" states.
In addition, most debug/programming probes (eg, ST-Link) also want a connection to the target's VDD line.
See the documentation for your debug/programming probe.
See Application note AN5711, Getting started with STM32H5 MCU hardware development:
https://www.st.com/resource/en/application_note/an5711-getting-started-with-stm32h5-mcu-hardware-development-stmicroelectronics.pdf#page=27
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.