WRITE to Flash in BASIC and C
Posted: Tue Apr 28, 2015 11:32 pm
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.
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.