Hi, 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: EMI_Start() EMI_writeData() EMI_ReadData() 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. kind regards, Damian