I'm working on a project using CY8C5287AXI-LP095 under PSoC Creator 4.1
My application receives a basic set of commands from UART
The communication interface is based on 485/MODBUS protocol.
We are looking for a strategy to include the firmware update over Modbus.
Since 89% of the flash memory is unused and no external Eeprom is available, presumably the whole image of the firmware update could be stored in a dedicated area of flash.
1) The new firmware is received from UART and stored in a dedicated area of flash.
2) When the transfer is completed, we set a flag for the bootloader and the we reset our system.
3) The Bootloader finds a new firmware available, so starts the update process reading from the flash area.
4) After a reboot the firmware has been updated .
Now my questions are:
How can I reserve a dedicated area of flash?
Is it possible to introduce any kind of memory protection, in order to prevent the unintentional firmware corruption?
Regarding the Bootloader, may I write my custom API functions for updating the firmware from flash?
Any sugestion or clarification will be very appreciated.
Solved! Go to Solution.