Part Number: TMS320F28069
Tool/software: Code Composer Studio
I wanted to enable watchdog in my application. But the watchdog reset the CPU while executing a normal flow. I service dog in the end of loop but the counter reaches its max value in between. I tried to increase the prescaler (WDCR) but I cant see the same in register lookup while debugging. What is happening wrong?
void Watchdog_config (void)
{
EALLOW;
SysCtrlRegs.WDCR = 0x28; // WRIValue write to enable modification
SysCtrlRegs.WDCR |= 0X07; //Watchdog prescaler
SysCtrlRegs.WDKEY = 0x0055;
SysCtrlRegs.WDKEY = 0x00AA;
EDIS;
}