This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Flash API Suggestion



I would like to make a suggestion to the designers of the Flash API.

For those API functions that require disabling of interrupts to operate properly, don't expect the user of the API routine to disable interrupts.

Preserve the interrupt state at the beginning of the API call, then disable interrupts within the API call for the critical sections of code.

Restore the interrupt state upon return from the API call.

In this way, a user of the API can start out with interrupts enabled. Inside the API call, only the critical sections of code need to have interrupts disabled.

If the API call is made with interrupts disabled, the the API call would leave interrupts disabled for the entire API call.

 

Andy

 

  • HI Andy,

    I have forwarded your suggestion to Flash API designer to comment.

    Thanks!!!
    Prathap

     

     

  • Hello Andy,

    The current design of the Flash API does not allow it to be interrupt aware.  As we have not done characterization of the API with interrupts, the current safe recommendation is to disable interrupts before performing a Flash operation.  There are currently no plans to test interrupts with the F035 Flash API as this API will be going into bug fixes only after one final release

    The  F021 API will be tested to be interrupt compatible.