According the size of array you have specified I suppose this question is related to program flash.
Here you may find simple example code for flash programming:
https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K144-Flash-RW-simple/ta-p/1110000