Hi,
I wrote a secondary bootloader that will upgrade the FW via BLE communication (FOTA).
I'm trying to update the serial number in the last sector which is located address 0x18000.
I checked and see that I got the correct buffer of data (the serial number) exact 6 bytes. I clear all the 24th sector, and write the buffer to the 0x18000 address, however when I checked the memory I see that the serial number was written in the address 0x18030 and have no idea why.
I'm using the same function that I use for the FOTA and they work.
Please someone can explain me why, the serial was written in the same sector but with an offset, and how to make it to be written to the correct address which is 0x18000.
Thanks in advance.