cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 - Flash/Debug algorithms - Application Notes

ACBlue
Associate

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?

3 REPLIES 3
FBL
ST Employee

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.

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
TDK
Guru

Perhaps look up some STM32CubeIDE tutorials on youtube to help get started. Plenty to choose from.

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