We call NXP's IAP code to write to Flash in our NXP products.
Their original code disabled interrupts within the IAP call, and all was wonderful. We just discovered in some code we are developing, that has lots of interrupts running all the time, that IAPs no longer disable interrupts.
So you should disable interrupts before calls to WRITE and enable them after, that is done by INTERRUPT(0) or INTERRUPT(1)
We will fix this on future products and in the C sample code.
WRITE to Flash in BASIC and C
Re: WRITE to Flash in BASIC and C
does this NXP change affect your 8Mb Datalogger product?
Re: WRITE to Flash in BASIC and C
No, the Flash on the Datalogger is on the external SPIFI, there is no onchip FLash.