How to configure half of FlexNVM as D-flash?half of FlexNVM as EEPROM backup region?

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

How to configure half of FlexNVM as D-flash?half of FlexNVM as EEPROM backup region?

跳至解决方案
2,370 次查看
459021854
Contributor III

@

Hi guys,

I have a question, ask for your help.

In the project example of ‘flash_partitioning_s32k142’ all of FlexNVM(64k) is set as EEPROM backup region, all of FlexRAM(4K) is set as EEPROM.

pastedImage_2.png

Could I separate half of FlexNVM as D-flash to store program, and half of FlexNVM as EEPROM backup region?  also FlexRAM  do not need to be configured as much as 4K to be EEPROM, only need a few bytes needed, Configure rest  of FlexRAM as ram?

If convenient could you give me some reference code. 

Thanks.

S32 SDK@all experts

1 解答
2,070 次查看
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

I would like to suggest checking AN11983 - Using the S32K1xx EEPROM Functionality

https://www.nxp.com/docs/en/application-note/AN11983.pdf 

Yes, it is possible to split FlexNVM. 

The options how to split the FlexNVM block between D-Flash and emulated EEPROM backup memory (E-Flash), see below:  

pastedImage_2.png

This setting represents "DEPartitionCode" parameter in the "FLASH_DRV_DEFlashPartition()" function

About your second question related to FlexRAM. The FlexRAM cannot be split, we can use only the whole FlexRAM as an SRAM or EEPROM.

I hope it helps.

Best regards,

Diana

在原帖中查看解决方案

3 回复数
2,071 次查看
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

I would like to suggest checking AN11983 - Using the S32K1xx EEPROM Functionality

https://www.nxp.com/docs/en/application-note/AN11983.pdf 

Yes, it is possible to split FlexNVM. 

The options how to split the FlexNVM block between D-Flash and emulated EEPROM backup memory (E-Flash), see below:  

pastedImage_2.png

This setting represents "DEPartitionCode" parameter in the "FLASH_DRV_DEFlashPartition()" function

About your second question related to FlexRAM. The FlexRAM cannot be split, we can use only the whole FlexRAM as an SRAM or EEPROM.

I hope it helps.

Best regards,

Diana

2,070 次查看
459021854
Contributor III

it works! thanks

0 项奖励
回复
2,070 次查看
dinarogers1989
Contributor I

When the partition code is not set to full data flash, the data set size can be set to any of several non-zero values dqfansurvey.

0 项奖励
回复