16.2 Watchdog reset occurs when reenabling the watchdog

When no bootable program is found in an external memory, the watchdog is disabled just before the ROM Code runs SAM-BA Monitor. The ROM code sets the watchdog Timer Mode register (WDT_MR) to the value 0x00008000 and then clears the counter value. If a program loaded and executed using the SAM-BA Monitor Go command reenables the watchdog, a watchdog reset is immediately executed whatever the value of the watchdog counter.

Work around

To avoid any unexpected watchdog reset when reenabling the watchdog, the following sequence has to be performed:
  1. Write 0x00000000 in the WDT_MR.
  2. Wait for three slow clock cycles.
  3. Write the final value in the WDT_MR.

Affected Silicon Revisions

ABC
X