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?
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.
BTW; It is not standard and suitable approach to erase last sectors of the flash because there could be affected reset vector.
Thank you for your advice, I'll try to use it
Retrieving data ...