How to flash firmware to STM32 by STM32 with SWD?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-14 8: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-15 1: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-15 2:27 AM
Thank you for the reply.
if I get some information, I will let you know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-15 3: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/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-15 4: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.
​
T​he 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.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-15 4:46 AM
Understand and reuse the code from open source debuggers like OpenOcd, PyOcd or Bl*ckm*g*c Debug probe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-15 7:19 AM
thanks @Uwe Bonnes​ i didnt know about https://1bitsquared.com/products/black-magic-probe
This is what i was looking for!
