Hi!
I have truble with initialization the FlexNVM and the FlexRam to mode EEPROM. I readed AN11983, and I understand that necrssary in first time to setup array FlexNVM to E-Flash (I want 64 kb (4kb for me and 60 for "system"). What is will be if I by chance setup FlexNVM repeatedly?
I read others post and now I learned how write and read data from EEEMemmory (RAM<->E-Flash) but after Reset or power off, my data not saved in EEEMemmory.
int32_t EEPROM_Write_float(float data, float* target) // Range target is 0x14000000 to +4kb
{
while ((FTFC->FSTAT & FTFC_FSTAT_CCIF_MASK) == 0){}
*target = data;
return 0;
}
And read (one line)
int32_t b = *(int32_t*)0x14000000; // 0x14000000 is start addres EEEMemmory
How is correct setup code initialization of EEPROM?