How to write eeprom in s32k116?

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

How to write eeprom in s32k116?

2,554 Views
shyamalasundar
Contributor II

looking for driver support to write data (in bytes) into eeprom of S32K116 microcontroller.

I got emulation and configuration of eeprom in s32k116.

But need the driver part of writing bytes of data into eeprom.

s32k116 eeprom; writeeeprom flashpartitioning flexnvm‌ 

Labels (1)
0 Kudos
Reply
3 Replies

2,059 Views
shyamalasundar
Contributor II

I can able to view the written data from 00 to FF in the eeprom memory locations.

And now i need to read what has been written already in those locations.

A sample code to read data from eeprom of s32k116 will be of more useful.

And further i can't view any backup of data into flexNVM.

If it is happening kindly tell how to view and understand that also.

0 Kudos
Reply

2,059 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,
The SDK example shows how to verify written data in EEPROM.

pastedImage_1.png
So just modify that code to:

uint32_t data = *((uint32_t *) address)

The EEE backup is not mapped, it is visible only to the EEPROM state machine.

Regards,
Daniel

2,059 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello,
If you need a driver, you can use the SDK.
The flash_partitioning_s32k116 example uses FLASH_DRV_EEEWrite() function.

Regards,
Daniel

0 Kudos
Reply