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.

Usage of ROM APIs

Other Parts Discussed in Thread: TM4C129ENCZAD

Hi,

I am using TM4C129ENCZAD microcontroller. CCS 5.4 is the IDE. When I tried calling ROM_FlashErase API, microcontroller lost control while executing ROM_FlashErase. Then I disabled interrupts before calling ROM_FlashErase. Then ROM_FlashErase API executed well and erase operation also successful.

Is it required to disable interrupts before calling all ROM APIs as like ROM_FlashErase?

Please clarify my doubt as I am using plenty of ROM APIs.

Thanks & Regards,

Thangavel.P

  • Hello Thangavel

    Yes, it is advised to disable all interrupts when doing a Flash Operation, as the code may branch into Flash on an interrupt when the Flash Erase operation is ongoing. What sector were you trying to erase and was there an interrupt set?

    Regards

    Amit