Re: FIRMWARE UPDATE FROM EXTERNAL FLASH
I did that with Harmony 1.09.
There is no bootloader that fits the task, so I started with the serial one.
I had to implement a stripped down version of I2C to read from my EEPROM (using **no** interrupts).
I made my own layout of the binary image in the EEPROM that included location in the PIC, size and a CRC.
I set a flag that signals the bootloader to update the firmware, reboot and then the bootloader starts flashing the new firmware.
For preparing the image:
I used hex2bin, as the hex file is way too large to fit into my EEPROM. Also had to write a helper tool that generated the additional info (offset, size, CRC) and wrote a single binary image.
To add pain, the image is encrypted and the bootloader first verifies that he received a valid image.
After all, that wasn't a simple task. :-)