I'm using watchdog to create watchdog interrupt after 1 sec. delay but watchdog interrupt is not firing .
Im doing following steps:
WATCHDOG1_LOCK_R = 0x1ACCE551; //unlock watchdog
WATCHDOG1_LOAD_R = 4000000; //load value for 250ms delay
while(WATCHDOG1_CTL_R & 0x80000000); //wait for WRC bit to set
WATCHDOG1_CTL_R = 0x01;
on debug i found that while checking WRC bit it is getting hang in while loop.
why it is happening.? please help.
Thanks,
Dheeraj