@
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.
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
已解决! 转到解答。
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:
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
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:
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
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.