EEPROM flex issue with S32K148

cancel
Showing results for 
Search instead for 
Did you mean: 

EEPROM flex issue with S32K148

297 Views
Amir_B
Contributor I

Hello,

I would like to partition the eeprom to store data.

I use this sequence as described in AN11983

FTFC-> FCCOB [3] = 0x80; /* FCCOB0: Selects the PGMPART command */
FTFC-> FCCOB [2] = 0x00; /* FCCOB1: No CSEc operation */
FTFC-> FCCOB [1] = 0x00; /* FCCOB2: No CSEc operation */
FTFC-> FCCOB [0] = 0x00; /* FCCOB3: FlexRAM loaded with valid EEPROM during reset sequence */

FTFC-> FCCOB [7] = 0x02; /* FCCOB4: EEPROM data set size code: EEESIZE = 2 (4 kB) */
FTFC-> FCCOB [6] = 0x03; /* FCCOB5: FlexNVM Partition code: 3 (Data flash 32 kB, EEPROM backup 32
flash_launchCommand();

But i Have always the ACCERR flag set as shown below

Amir_B_0-1604398101409.png

How to fix this?

Thanx in advance.


0 Kudos
1 Reply

276 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

 

The partition code for the S32K148 is different in comparison with other S32K14x, please, refer to the below table in the AN11983:

"Table 5. FlexNVM partition codes for 64 kB FlexNVM devices (S32K148)"

dianabatrlova_0-1604475843047.png

 

dianabatrlova_1-1604475917878.png

 

Also, there is an EEPROM example for the S32K144, but the table above should be considered:

https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/EXAMPLE-S32K144-EEEPROM-usage-No-SDK/t...

 

I hope it helps.

Best regards,

Diana

0 Kudos