2023-09-28 12:38 AM
I am developing my own hardware debugger (SWD based, as a hobby project) for an STM32F0 based board. I have access to the official ARM documentation about the hardware implementation of the SWD debug functionality. This however only mentions the various regiters etc. and does not mention any algorithms as I am guessing a lot of implementation specific points need to be considered.
Is there any official documentation from ST about this? For e.g. how do I halt a MCU? How do I flash the MCU? How do I set breakpoints?
2023-09-28 01:48 AM
Hello @ACBlue
Check the AN4989 STM32 microcontroller debug toolbox - Application note
This should help!
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-09-28 01:59 AM
You Flash the MCU by putting code and data into RAM and executing it.
The Flash functions in the same way as documented in the RM and via the code examples.
2023-09-28 06:10 AM
Perhaps look up some STM32CubeIDE tutorials on youtube to help get started. Plenty to choose from.