MC56F83783 FTFE_FPROTn is written with 0.How to make program flash program flash unprotected

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MC56F83783 FTFE_FPROTn is written with 0.How to make program flash program flash unprotected

653 Views
547351265
Contributor II

MC56F83783 FTFE_FPROTn register is written with 0( Program flash region is protected).

How to make program flash program flash unprotected?

 

0 Kudos
1 Reply

639 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

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

 

 

CFG84000.png

0 Kudos