2.16. Watchdog Timers

Some target hardware contains a watchdog timer that causes the system to be reset if the watchdog timer is not poked periodically. If your target hardware contains a watchdog timer then you must either disable it during flash operations or modify your flash algorithm to poke it periodically.

If your watchdog timer can be disabled then add the necessary code to the flashSelect() method. You can optionally add code to the flashDeselect() method to re-enable your watchdog timer after flash operations are complete.

Alternatively, insert code in your flash algorithm to poke the watchdog timer on each loop iteration. The main loops in your flash algorithm are likely to be in the methods that implement erase, read, write and verify operations.

Copyright © 2007. All rights reserved.DAI0190A
Non-Confidential