This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

watchdog won't reset

Hello,

I want to do a reset using a watchdog but it's not resetting. I do not have any other watchdog code in my project.
I am using SAM7x256.
I am using this code:

AT91C_BASE_WDTC->WDTC_WDMR = 0x3FF | (0x3FF << 16) | AT91C_WDTC_WDRSTEN | AT91C_WDTC_WDDBGHLT | AT91C_WDTC_WDIDLEHLT;
for (;;);   // infinite loop

Anyone has any ideas why it doesn't work?

Thanks

0