OTA modification issue

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable


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
 

0 Likes
1 Solution
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hi Damian,

   

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...

   

Thanks & Regards,
Anjana

View solution in original post

0 Likes
1 Reply
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hi Damian,

   

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...

   

Thanks & Regards,
Anjana

0 Likes