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,225件の閲覧回数
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 解決策
1,925件の閲覧回数
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 返答(返信)
1,926件の閲覧回数
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

1,925件の閲覧回数
459021854
Contributor III

it works! thanks

0 件の賞賛
返信
1,925件の閲覧回数
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 件の賞賛
返信