Hi,
SW examples directly for the AN11983 is not available.
However, the flash_partitioning_s32k118 example can be found in the S32DS: File -> New -> S32DS Project from Example
dianabatrlova_0-1611152895898.png
Another available example codes are made for the S32K144:
1. See the attachment.
2. https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/Example-S32K144-EEEPROM-usage/ta-p/110...
3. https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/EXAMPLE-S32K144-EEEPROM-usage-No-SDK/t...
To better understand flash commands I strongly recommend you reading the Reference Manual rev 12.1
The flash commands are usually launched from the RAM because some operations on the flash module cannot be executed simultaneously.
The equivalent of that function (flash_launchCommand();) can be found in the mentioned example "flash_partitioning_s32k118" function "FLASH_DRV_CommandSequence"
Or simply:
/* Clear CCIF to launch command */
FTFx_FSTAT |= FTFx_FSTAT_CCIF_MASK;
/* Wait for previous command to complete */
while ((FTFC->FSTAT & FTFC_FSTAT_CCIF_MASK) == 0);
I hope it helps,
Best regards.
Diana