I'm using an LPC54S018 microcontroller with a single 16 MB SPIFI flash. The application code is too large to fit into RAM and so I am using the XIP_IMAGE flag during compile. I need to store variables in the flash for access across power cycles. I have been following the steps listed in this forum post:
but I can't modify the "test" variable once the code is running, because it is read-only. Is there a way to make the test variable read/write, and able to be saved across power cycles?