MC56F83783 FTFE_FPROTn register is written with 0( Program flash region is protected).
How to make program flash program flash unprotected?
Hi, ShiPing,
Regarding your question, as you know that the MC56F84xxx has Flash Configuration Field in the flash, after Reset, the data in Flash Configuration Field are copied to the flash registers automatically. For detailed information, pls refer to section 20.3.1 Flash Configuration Field Description in MC56F847xxRM.pdf.
The CodeWarrior for mcu has created a file called FLASH_CFG_84.h, the array static const uint8_t _flash_config_field[] is initialized, so the array is written to the CFG of flash. You just need to initialize the array to set the protect as 0, it is okay.
Hope it can help you
BR
XiangJun Rong