I have a 51422 board design and I just got Ant-FS working with our firmware so I can now download data from an external SPI flash to a desktop application.
I want to be able to update my code on the chip via an ANT download. I think it should be possible but I see more than a few hours to try this so I thought I would ask first (especially because not working would mostly likely be my fault anyway).
I want to have my code at startup read the external flash for a particular pattern at a particular address. If it finds the pattern, it copies data from external flash to internal code flash, erases external flash, and then resets itself.
My idea is that I could use ANT-FS to do an OTA update without a fancy bootloader. I can just use ANT-FS to erase the external flash and upload the trigger and the hex file to external flash and then trigger a reset.
Anyone see a reason that would not work? Can I simply copy the hex file generated by the compiler to internal flash starting at address 0?
David