What configurations needs to be done to store an array of size 76KB in flash memory for testing purpose. I'm using s32K142 and S32K118 boards. Please help me with the same. Currently Hardfault is generated.
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