WRITE to Flash in BASIC and C

Questions about the BASICtools and MakeItC
Post Reply
basicchip
Posts: 1090
Joined: Fri Oct 19, 2012 2:39 am
Location: Weeki Watchee, FL
Contact:

WRITE to Flash in BASIC and C

Post 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.



olzeke51
Posts: 414
Joined: Sat May 17, 2014 4:22 pm
Location: South Carolina

Re: WRITE to Flash in BASIC and C

Post by olzeke51 »

does this NXP change affect your 8Mb Datalogger product?

basicchip
Posts: 1090
Joined: Fri Oct 19, 2012 2:39 am
Location: Weeki Watchee, FL
Contact:

Re: WRITE to Flash in BASIC and C

Post by basicchip »

No, the Flash on the Datalogger is on the external SPIFI, there is no onchip FLash.

Post Reply