Initialization EEPROM on S32K144

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

Initialization EEPROM on S32K144

881 Views
timur_kuanshkal
Contributor I

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?

0 Kudos
2 Replies

871 Views
timur_kuanshkal
Contributor I

And what is  flash_launchCommand() in AN11983?

0 Kudos

847 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

 

Hello

Thank you for your interest in NXP Semiconductor products and the opportunity to serve you. My name is Omar and I will gladly answer your questions.

Here is a flowchart of how to initialize the EEPROM:

nxf54944_0-1600891616073.png

 

 

The example "flash_partitioning_s32k144 " in the SDK can be helpful as a reference.

Flash_launchCommand() is used to execute the flash commands, this function waits until the command finishes

 

Let me know if this is helpful, if you have more questions do not hesitate to ask me.

Best regards,

Omar

0 Kudos