2022-02-22 08:23 PM
1. Receive binary file from MCu1 to UART and save it to SD card (or EEPROM).
2. Write the binary file stored in the SD card (or EEPROM) to the specific flash memory area of MCU2.
3. Write the binary file stored in SD card (or EEPROM) to the specific flash memory area of MCU3 using UART.
I hope you can understand my question well by referring to the picture.
If you have code or special documents for the above three functions, please let me know.
Have a nice day.
2022-02-22 09:25 PM
Assume few here are interested in doing your work assignments.
Application Note AN3155 covers the UART protocol in the ROM
Example driving BOOT/RESET pins and pushing firmware to a secondary device
https://github.com/arduino-libraries/MKRWAN/tree/master/examples/MKRWANFWUpdate_standalone
You could also implement your own protocol using X or Y-MODEM,ST has some IAP examples using the latter. I'd probably use X-MODEM and FATFS to transfer and stage a firmware image to an SD Card. In methods where I can plug the SD Card into a PC, or write via a USB-MSC, I've used the .DFU file format as a standard delivery method.