Hi,
I am trying to get an Irq from watch dog timeout but unable to do so. Could be please point out my error.
Below is the code snippet.
void watchdogtest()
{
/*Enable watch-dog*/
enable_irq (INT_SWT_0 - MAC57D54H_FIRST_USER_IRQ);
route_interrupt (INT_SWT_0 - MAC57D54H_FIRST_USER_IRQ, 0x03);
#if 1
SWT_0.SR.R = 0x0000c520;
SWT_0.SR.R = 0x0000d928;
SWT_0.CR.B.WEN = 0;
SWT_0.TO.R = 0x500;
SWT_0.CR.B.ITR = 1;
SWT_0.CR.B.FRZ = 0;
SWT_0.CR.B.WEN = 1;
SWT_0.CR.B.SLK = 1;
uPrintf("In a While Loop...\n");
while(1); //
}
Solved! Go to Solution.
Please reply me on below link, i guess this is a duplicate question(by mistake).
Please reply me on below link, i guess this is a duplicate question(by mistake).
Hi,
have you tried it in standalone mode without debugger? Debuggers usually automatically disable the watchdog in debug mode...
Regards,
Lukas
Please reply me on below link, i guess this is a duplicate question(by mistake).
I have asked engineer who is more experienced with this device to answer your question. I hope he will send the response soon.
Lukas
Sorry for late reply.
"Debuggers usually automatically disable the watchdog in debug mode." .. Yes, I have tried without debugger Also.
We have added a UART print statement in non debug mode . we are not getting any print on console.ahan
-Prashant