Hi
Customer could add below code to detect if the chip was already partitioned or not in FlexNVM initialization code:
if ((SIM_FCFG1 & SIM_FCFG1_DEPART(0xF)) != 0x00000F00)
More detailed info, please check below link:
https://community.nxp.com/message/546287?commentID=546287#comment-546287
After the FlexNVM was partitioned, the chip need be reset to make sure finish the FlexNVM partition.
Customer also could using P&E Debugger tool or Segger J-Link tool to program FlexNVM partition at data flash IFR.
More detailed info, please check below link:
https://community.nxp.com/message/474165?commentID=474165#comment-474165
When the chip was partitioned, customer need to check FTFE_FCNFG[EEERDY] bit before EEPROM operation.
The FlexRAM operation does not need to disable the interrupt. The FlexNVM has internal firmware to make sure the write EEPROM data be checked. Customer doesn't need manually check the EEPROM byte.
Wish it helps.
Have a great day,
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------