i'm trying to implement OTA on our custom PCB.
We are using the S25FL116K non-volatile flash over the SPI.
I've modified the example project "external memory bootloader and bootloadable" by re-implementing the following functions:
but i can't understand the purpose of the EMI_setPointer() function.
It appears that it is writing the dataAddr variable to a location where this data already resides.
Also the maximum page write for the flash is 256, but in the WriteData function, two bytes are appended to the start of the array which would push this above the maximum.
Some help would be appreciated on how this should be changed.
If you are using SPI external memory, I suggest you to refer our example project on External memory OTA using Serial Nor flash SPI.
You can find the project here: https://github.com/cypresssemiconductorco/PSoC-4-BLE/tree/master/100_Projects_in_100_Days/Project051_NOR_Flash_Bootloader
Thanks & Regards,