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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
2,516 次查看
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 项奖励
回复
1 解答
2,508 次查看
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

 

在原帖中查看解决方案

5 回复数
2,471 次查看
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 项奖励
回复
2,458 次查看
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 项奖励
回复
2,450 次查看
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 项奖励
回复
2,437 次查看
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 项奖励
回复
2,509 次查看
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