Can the S32K146 reset back to FlashRAM and FlashNVM after using Flash as EEPROM?

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

Can the S32K146 reset back to FlashRAM and FlashNVM after using Flash as EEPROM?

Jump to solution
2,502 Views
ShaoTianzhi
Contributor II

Hello :

   When testing the S32K partition function, using the Project for Example to Debug, S32K partition successfully, but the EEPROM is not the size I want, can I restore the EEPROM to Flash?

0 Kudos
Reply
1 Solution
2,494 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@ShaoTianzhi

yes ,you can restore the EEPROM to Flash again, but there are some riks.

AN11983 Using the S32K1xx EEPROM Functionality

Senlent_0-1687161335730.png

 

View solution in original post

5 Replies
2,457 Views
ShaoTianzhi
Contributor II

Hello:

    While enabling CSEc,I need to partition all 4KB FlexRAM into EEPROM,and partition 64KB FlexNVM into EEPROM backup.But while enabling Bootloader, I need to partition a portion of FlexNVM into the Bootloader.

    So what should I do if I want to Enabling both CSEc and Bootloader?  Can I partition 32KB FlexNVM into EEPROM backup,and 32KB for Bootloader?

0 Kudos
Reply
2,444 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@ShaoTianzhi

Can I partition 32KB FlexNVM into EEPROM backup,and 32KB for Bootloader?

Yes, but I recommend you partition the 2KB FlexRAM as EEPROM for expected endurance.

 

please note, create a new topic or case for your new question next time.

0 Kudos
Reply
2,436 Views
ShaoTianzhi
Contributor II

I tried to partition the 2KB FlexRAM as EEPROM,but the function FLASH_DRV_DEFlashPartition return STATUS_ERROR. How can I partition 2KB FlexRAM as EEPROM? Will this have an impact on CSEc?

0 Kudos
Reply
2,423 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@ShaoTianzhi

Does you device is already  partitioned or not?  you can Read SIM_FCFG1[DEPART]

if yes, please try use mass-erase to restore partition settings first, then partition the flexram and flexvnm.  

 

for example , if you want partition the 2KB FlexRAM as EEPROM and you enable CSEc at same time, only 2KB-512B space can be used as EEPROM, because CSEc will use up to 512B for key storage.

 

0 Kudos
Reply
2,495 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@ShaoTianzhi

yes ,you can restore the EEPROM to Flash again, but there are some riks.

AN11983 Using the S32K1xx EEPROM Functionality

Senlent_0-1687161335730.png