I want to develop a bootloader ,I want to update the entry address of the app, but when I erase the address of this page, the MCU will be locked, can this page be erased safely?
Hi,
It is absolutely normal behavior. The addresses described in data sheet at Table 15-3. Flash Configuration Field shows that 3_FF0C contains flash configuration field. The field is copied to FSEC register during reset. So if you erase this address to FF then you set security of the MCU. You should immediately rewrite the flash field do unsecured state before reset. Note that there is a bootloader you can use AN4258 for your purposes.
http://www.nxp.com/assets/documents/data/en/application-notes/AN4258.pdf
SW files
http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4258SW.zip
BTW; It is not standard and suitable approach to erase last sectors of the flash because there could be affected reset vector.
Best regards,
Ladislav
Thank you for your advice, I'll try to use it