Other Parts Discussed in Thread: C2000WARE
Hi
As the project requires a remote upgrade program, the design idea is tentatively as follows:
FLASH is composed of bootload zone and APP zone. The function of the bootload zone is mainly to read the content of external W25Q32 and write it to APP zone; the APP zone is just to act as an APP.
Concrete procedure: MCU receives the target program file (xx.hex) over the network and saves it in external W25Q32 (already done), and then MCU restarts;
MCU runs the bootload program first to determine if an upgrade is required after the reboot;
1: If an upgrade is required, it will read what is saved in external W25Q32 and cover the contents in APP zone, modify the judgment mark and restart;
2: If upgrade is not required, it will skip directly to APP zone to run the APP program.
At present, the bootload program needs guidance (now I am studying SCI_BOOT in the routine, and I don’t know if the direction is correct or not) Could you possibly provide CMD configuration file of APP and bootload?
Thanks.