Now we are using the combination of MPC5744P and MC33907. The companion chip has a watchdog, which should be updated by the processor. The time window has been set as 32ms for example. We have also used the driver code from NXP (function as a hex constant) for FLASH erase, so we cannot put the watchdog update routine into this function, which means, during FLASH erase the watchdog cannot be updated.
A consideration is, the watchdog time window can be enlarged before FLASH erase and can be shortened after it. But the FLASH erase could take longer than 1 second, so the watchdog may not be updated even the largest time window for watchdog is used (1024ms). Is there any other (better) solution or suggestion? Thanks.