2021-07-14 08:26 PM
I want to make A project that can flash firmware to STM32 by another STM32.
(not Act as ST-Link, Ack as standalone Writer like CYCLONE writer)
but I do not know what I should know to make the flash writter with SWD.
If you have any examples or any experience, please share with ME.
Best Regards,
Lee
2021-07-15 01:00 AM
Hi @LYS im also interested in this, i didnt got any answers about a SWD master
https://community.st.com/s/question/0D53W00000tqUmYSAU/how-to-swd-serial-wire-as-a-master
2021-07-15 02:27 AM
Thank you for the reply.
if I get some information, I will let you know.
2021-07-15 03:32 AM
We basically want to take a look at the firmware inside stlink chips (stm32f103c8)
This guy reverse engineered limited functionalities https://eevblog.com/forum/microcontrollers/dumping-and-reverse-engineering-st-link-v22-1-firmware/
2021-07-15 04:31 AM
Interacting with the ARM core via the JTAG/SWD scan chains is non-trivial.
Should perhaps looks to generic debugging implementation rather than STM32 specific for the bit level protocol and core control.
The STM32 specific stuff would be addresses used for peripherals, and code uploaded to run in core and write/interact with the flash controller, QSPI, or whatever.
2021-07-15 04:46 AM
Understand and reuse the code from open source debuggers like OpenOcd, PyOcd or Bl*ckm*g*c Debug probe.
2021-07-15 07:19 AM
thanks @Uwe Bonnes i didnt know about https://1bitsquared.com/products/black-magic-probe
This is what i was looking for!