I have a board that we just made a change to add a hardware watchdog. I'm using timer 2 to toggle a GPIO to prevent the watchdog from resetting the system. The problem is that when using the Flash API we disable the interrupts so the timer does not run.
from the FLASH281x_API_V120 documentation:
Don’t execute any interrupt service routines (ISRs) that can occur during an erase, program or
depletion recovery API function from the flash or OTP memory blocks. Until the API function completes
and exits the flash and OTP are not available for program execution or data storage.
I thought about toggling the GPIO manually but the erase function takes too long.
My question is can I run a interrupt during an erase or program call if I make sure that the ISR is run from RAM?
Thanks
Ed