Since FLash API F021 does not work when interrupts are enabled and when you erase/program the block where the ISR code resides, I decided to use the model below:
_disable_irq();
flash_erase()
enable_irq();
I also called dwdInit() in main() and call dwdReset|() periodically.
I am not able to understand the impact of disable/enable_irq on the watchdog timer.
When I call enable_irq|(), does the dwd start running automatically? Do I need any dwd related function call to restart the DWD?
Could you please explain the impact of disable/enable_irq on the DWD?
thanks,