flash content erase in bootloader region at run time #53434
-
I'm facing issue when do flash erase before writing into bootloader initial location. After erase the location, when do read back that location it's returning previous content, the content is not erased from location. The above trial made on bootloader regioin [0x30000000 - 0x300000FF]. The primary and secondary slot location able to erase and swap content. Facing problem only on erasing part of bootloader region. API used for erase flash content at run time, Is this correct API to erase the region?
IMXRT1160EVK Board using for this project and default FlexSPI NOR flash. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @Sathishkumar-rk, I would not use |
Beta Was this translation helpful? Give feedback.
-
Thanks for the update, I can able to utilize the sys_reboot in my code. |
Beta Was this translation helpful? Give feedback.
Hi @Sathishkumar-rk, I would not use
boot_erase_region
in an application, since it appears to be part of the mcuboot private API. I would useflash_area_erase
for this purpose. Either way, the erase size being used (256 bytes), is smaller than the minimum erase size supported by the is25wp128 (4Kbytes)