Part Number: TM4C129XNCZAD
I am unable to enable the watchdog timer in CCS 10.2.1
with the code using in CCS 6 with same hardware.
INITIALISATION CODE FOR WATCHDOG
WatchdogUnlock(WATCHDOG0_BASE);
IntPrioritySet(INT_WATCHDOG, 0);
WatchdogIntRegister(WATCHDOG0_BASE, &WatchdogIntHandler);
//
// Set the period of the watchdog timer.
//
WatchdogReloadSet(WATCHDOG0_BASE, SysCtlClockGet());
//
// Enable reset generation from the watchdog timer.
//
WatchdogResetEnable(WATCHDOG0_BASE);
//
// Enable the watchdog timer.
//
WatchdogEnable(WATCHDOG0_BASE);
the controller start restartinG
void
WatchdogIntHandler(void)
{
// if(cycle>=10){
// return;
// }
decimal_to_ascii(cycle,2);
// UARTCharPut(UART0_BASE,a_ASCII[0]);
// UARTCharPut(UART0_BASE,a_ASCII[1]);
// UARTCharPut(UART0_BASE,(cycle+0x30));
WatchdogIntClear(WATCHDOG0_BASE);
// cycle++;
}