I'm trying to add a function to save a few configuration words to the end of a K22FN512 flash without success.
The API initialization goes all right, but when a real access to erase, verify or write the flash is done, it returns the access error status code (kStatus_FLASH_AccessError).
I could not find any newer example for MCUXpresso with FreeRTOS. It seems that the last time this topic was brought up was in 2014 and was for CodeWarrior or IAR...
I'm attaching the simple function code I wrote. Any suggestion will be much appreciated.