Hi @Alicetian
Included in the RTDs comes a flash example for S32K3xx (Flash_Example_S32K3xx). The application functionality is:
Mcu_Init, Mcu_InitClock, Mcu_SetMode
Initialize the clock sources and the clock tree and configure the clock gating of the peripherals.
Fls_Init
Initialize the Fls driver.
Fls_Erase, Fls_MainFunction, Fls_GetStatus
Erase entire the flash sectors configured. Fls_Erase is used to set job erase, Fls_MainFunction to start executing erase job and Fls_GetStatus checks the status of erase execution.
Fls_Write, Fls_MainFunction, Fls_GetStatus
Write data to flash.
Fls_Read, Fls_MainFunction, Fls_GetStatus
Read data from flash memory.
Fls_Compare, Fls_MainFunction, Fls_GetStatus
Compare data from flash memory with source data.
B.R.
VaneB