S32K144 API QUESTIONS

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

S32K144 API QUESTIONS

683 Views
zq1
Contributor III

there some questions after i read the S32K-RM and s32kAPI document, hope someone give some advices,thank you ,hope your repy.

1>in the picture ,only the flexnvm could used for eeprom,but when i read the api document ,i feel so confused: the ee2prom is divided from flexnvm or flexram?

 

zq1_0-1688711562670.png

zq1_1-1688711810169.png

zq1_2-1688711931199.pngzq1_3-1688712094721.png

2>in the s32k-rm,if i want to use both eeprom and data flash ,how should i give value to the registers :

FCCOB4[3:0]      FCCOB5[3:0] ,the EEPROM Data Set Size is equal to EEPROM-backup Size (KB) ?????

zq1_4-1688713501936.png

3>in other's examples , i want to know :in this example:

the flexnvm(64k) is totally used for eeprom????

the  space EEPROM size = 4 Kbytes is from where????

/*
* Configure FlexRAM as EEPROM and FlexNVM as EEPROM backup region,
* DEFlashPartition will be failed if the IFR region isn't blank.
* Refer to the device document for valid EEPROM Data Size Code
* and FlexNVM Partition Code. For example on S32K148:
* - EEEDataSizeCode = 0x02u: EEPROM size = 4 Kbytes
* - DEPartitionCode = 0x04u: EEPROM backup size = 64 Kbytes
* */
flashResult = FLASH_DRV_DEFlashPartition(&flashSSDConfig, 0x02u, 0x04u, 0x0u, false, true);

0 Kudos
Reply
4 Replies

666 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@zq1

all you question can be found an answer in this application note.

https://mp.weixin.qq.com/s?__biz=MzI0MDk0ODcxMw==&mid=2247486584&idx=1&sn=3b8651b928edd19c642b17838a... 

Senlent_1-1688956305362.png

AN11983 is also a good guide to understand how EEPROMs work.

0 Kudos
Reply

650 Views
zq1
Contributor III

tthank you ,i have read this article in the morning ,it helps me a lot ,

but i still have  questions ,if i uesd the flexram as eeprom, when i have written to the 4k FLEXRAM,will it lose data after power off ????  

then ,all will can do to operate flexnvm  eeprom backup is only to operate flexram ????

when i want to get data ,from eeprom,the address must be flexram address?

hope your reply!!!!!!!

0 Kudos
Reply

640 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@zq1

You can find the answers to these questions in the article I gave you.

First of all, the data of FlexRAM will be lost when the power is off, but after power-on, you can set to automatically load the data of E-Flash to FlexRAM, you only need to operate FlexRAM, please do not operate the FlexNVM area that has been partitioned as backup.

0 Kudos
Reply

636 Views
zq1
Contributor III

thank you ,i have test the flexram after used for eeprom

0 Kudos
Reply