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 problem

I'm having a problem with Flash28335_API_V210.lib. Occasionally the call to Flash_Erase does not return. The toggle test shows the API is configured for 9.998KHZ, I'm trying to erase sectors A-F (0x3f), interrupts are turned off and watch dog is turned off. I have not tried debugging in to the API yet. Code snippet is below wSectors is 0x3f.

               // disable interupts
               unsigned int local = _disable_interrupts();

               // status registers
               FLASH_ST FlashStatus;
               wError = Flash_Erase(wSectors,&FlashStatus);

               // re-enable interupts
               _restore_interrupts(local);

Any suggestions would be greatly appreciated.