I am implementing a bootloader for IMX.RT1064. I'm using ROM API to erase and program the new firmware. I'm trying to erase the section after the bootloader and it is not working. When I tried erasing the sector that doesn't has the program, the erase API worked. Whether the sectors with the program is protected?
Our goal is to implement a bootloader that can read the firmware from external SPI flash and program to the internal flash.