Hi,
Currently I don't use the watchdog; How can I enable watchdog to cause reset?
I've tried to insert the code below in my program but it doesn't works, nothing happens.
//Init.c
//
// Allow to change the state of the Watchdog disable (WDDIS)
//
EALLOW;
WdRegs.SCSR.all = 0x0001;
EDIS;
// Main.c
//
// Enable the watchdog and write 1,0 1 in WDCHK
//
EALLOW;
WdRegs.WDCR.all = 0x0028;
EDIS;
//
// Reset the core ?!
//
EALLOW;
WdRegs.WDCR.bit.WDCHK = 0; // Example, I write another value
EDIS;
What is wrong?
Regards,



