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?
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)
Any particular reason for doing this via SWD rather than a bootloader?
I guess another good google term would be, "CMSIS-DAP" ...
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.
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.
You can also implement your own protocol (the one between the STM32 and ESP8266)
Well, if you insist on using SWD then, surely, you are constrained to use the standard SWD protocols?
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.
Retrieving data ...