Page 1 of 1

WRITE to Flash in BASIC and C

Posted: Tue Apr 28, 2015 11:32 pm
by basicchip
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.

Re: WRITE to Flash in BASIC and C

Posted: Thu Apr 30, 2015 2:41 pm
by olzeke51
does this NXP change affect your 8Mb Datalogger product?

Re: WRITE to Flash in BASIC and C

Posted: Thu Apr 30, 2015 2:50 pm
by basicchip
No, the Flash on the Datalogger is on the external SPIFI, there is no onchip FLash.