about partiton problem

cancel
Showing results for 
Search instead for 
Did you mean: 

about partiton problem

96 Views
Contributor II

hello,

1. Are there any examples about eeprom?

2. If the NVM eeprom back size is set to 0, and the EEPROM size (EEERAM) is not set to 4k, it is obvious that this is contradictory, what error will be generated in this way?

3. Perform the following two functions in sequence
<1>FLASH_DRV_Init(&Flash_InitConfig0, &flashSSDConfig);
<2>FLASH_DRV_DEFlashPartition(&flashSSDConfig, 0x02u, 0x08, 0x0u, false, true);
Why does the second function return an error status, and the debug window and the register value are different from the register value in the upper right corner, as shown in the figure below, why?

pastedImage_1.png

wish your help!! thanks very much!

0 Kudos
1 Reply

19 Views
NXP TechSupport
NXP TechSupport

Hello,

1. 

You can refer to application note AN11983, Using the S32K1xx EEPROM Functionality

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

The "flash_partitioning_s32k14x" example is available in the S32Design Studio or

Example: S32K144 EEEPROM usage 

EXAMPLE: S32K144 EEEPROM usage - No SDK 

2.

If the EEPROM back up size is set to 0 and EEPROM size is set to 0. There is no error. See the example from the AN11983 below:

pastedImage_2.png

However, the errors handling of program partition command can be seen in the RM rev 12.1 in the section "36.5.11.14 Program Partition command"

pastedImage_1.png

3. Please, check the registers in the "EmbSys Registers" window:

Window -> Show View -> Other..:

pastedImage_5.png

I hope it helps.

Best regards,

Diana

0 Kudos