Hi,
When a watch dog timeout occurs, I want to save some data to the flash memory prior to reset (namely the RTC count value). Therefore I enabled the wdt interrupt. The manual says that I have two 32.768 kHz clock cycles to do my tasks in the ISR before the watch dog reset is issued. The problem is that I have to erase a page before writing my data to the flash and this takes maximum 22.3ms according to the spec.
So my question is whether this two cycles keep counting during erase when I set CONFIG.HALT = 0. I think they shouldn't as CPU is halted during erase and the wdt is paused while cpu is halted.
Thanks for your help