Update firmware stm32f103 via SWD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-05 1:48 AM
Hi! How to update firmware stm32f103 via SWD interface from ESP8266? I need program manual, application/technical note, or description of SWD interface. Maybe someone did this?
#esp8266 #swd #stm32f103 #update-firmware- Labels:
-
DEBUG
-
STM32F1 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-05 2:41 AM
I googled 'cortex swd implementation' and see several implementations. Not sure how complex the protocol is.
Maybe using DFU would be easier (set right boot pins on STM32, reset STM32 and enter bootloader, then program the STM32 through the DFU using UART)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-05 4:58 AM
Any particular reason for doing this via SWD rather than a bootloader?
I guess another good google term would be, 'CMSIS-DAP' ...
EG,
https://www.adafruit.com/product/2764
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-05 6:15 AM
Using JTAG/SWD programming is a non-trival task, especially if you have no prior experience with programing via the scan chains and writing loaders.
Consider using the System Loader's USART method, this is well documented and significantly easier to implement on an embedded micro-controller.
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
‎2018-02-05 6:16 AM
1. Figure out how the programming protocol is. And
2. Implement it on your host.
Luckiky, swd is well understood so it should be easy, relatively speaking.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-05 7:17 AM
You can also implement your own protocol (the one between the STM32 and ESP8266)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-05 5:21 PM
Well, if you insist on using SWD then, surely, you are constrained to use the standard SWD protocols?
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-05 10:44 PM
I proposed at the beginning of this thread to use DFU. This time i suggested to implement serial based protocol to move code from the PC to STM32, then program flash by own build in protocol i.e. write own bootloader if the built-in is not aceptable.
SWD is too complicated for me.
