Hi,
I am using the IFsh PEx component to write to flash on a MK24FN1M0VLL12. It has worked fine for storing configuration data and reprogramming parts of the flash, but it's not able to write to the last flash sector (Address 0xFF000 - 0xFFFFF). I have tried various routines: IFsh1_SetLongFlash and IFsh1_SetBlockFlash. They do not return any error, and no flash protection is enabled. I am able to manually modify the memory with GDB and J-flash, so I'm certain that it's not protected.
What could be causing this?
Looks like it was my mistake actually. Some bad code caused me to believe that the flash was not being written, and after examining the flash contents with Eclipse's memory viewer I saw that it was indeed not being written. Turns out that the memory viewers in Eclipse don't work well on flash memory and tend not to update. Using an external viewer I'm able to see the changes.