Hello Michael,
I would like to suggest you seeing AN11983 Using the S32K1xx EEPROM Functionality
https://www.nxp.com/docs/en/application-note/AN11983.pdf
I believe that you will find there the most of the answers.
See some information from an application description of the "flash_partitioning_s32k146":
The purpose of this demo application is to show you the usage of the FLASH driver with the S32 SDK API.
The examples does the following operations:
- Partitions the flash
- Configures FlexNVM region as EEPROM
- Erases flash
- Programs flash
- Write data to EEPROM.
I would like to be able to access this partition in a user application and to be able to write to it
1) How do I go about this?
Please, refer to the section “3.6 S32K1xx reading and writing the EEE” in the AN11983.
2) How do I later erase and remove the partition to restore the FTFC to its default setting?
Mass erase operation on Flash removes partitioning.
I hope it helps.
Best regards,
Diana