Tool/software:
I am developing Mobile Application in android that will enable FOTA from application to CC2340R5 module. For that I am following all the steps defined on the website BLE-Stack OAD Profile — SimpleLink Low Power F3 SDK BLE5-Stack User's Guide 9.11.00 documentation,
After sending the image header the response is coming as OAD_Success("00").
After the response I am requesting for the Block Size. The response is coming as F0 (240 bytes).
Now if I am trying to split the image as a 240byes of chunks and sending by adding the header of 4 bytes, after the 1st packet I am getting error response as [12 03 00 00 00 00] (OAD_BUFFER_OFL)
if I am splitting the chunks as 236 bytes of chunks, it is accepting and transmitting 793 packets out of 797 packets. on 794th packet the response is coming as [12 03 00 00 00 00] (OAD_BUFFER_OFL)
I am also attaching the screenshot for your reference.
so, my question is why it is coming like that? are there any extra bytes at the last of the image file, that we have to handle separately?