2018-02-05 01: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-firmware2018-02-05 02: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)
2018-02-05 04: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,
2018-02-05 06: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.
2018-02-05 06: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.
2018-02-05 07:17 AM
You can also implement your own protocol (the one between the STM32 and ESP8266)
2018-02-05 05:21 PM
Well, if you insist on using SWD then, surely, you are constrained to use the standard SWD protocols?
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.