Hi everyone
I'm trying to set up the watchdog timer on a DM6437. I've read SPRU989 and this post, but without any luck. Here is my setup code:
CFG_TIMERCTL = 0x00000001; /* WDINT to force reset */
TIMER2_WDTCR = 0x00002000; /* WDEN = 1 */
TIMER2_TGCR = 0x0000000B; /* TIM12RS = 0x1, TIM34RS = 0x1, TIMMODE = 0x2 */
TIMER2_PRD12 = 0xFFFFFFFF; /* Maximum timeout */
TIMER2_PRD34 = 0xFFFFFFFF; /* Maximum timeout */
TIMER2_WDTCR = 0xA5C64000; /* -> Pre-active state */
TIMER2_WDTCR = 0xDA7E4000; /* -> Active state */
temp = TIMER2_TGCR;
I notice that, despite setting TIMER2_TGCR up as 0x0B, it reads as 0x03. When I write 0xFFFF to WDKEY after this setup nothing happens, indicating that the watchdog is not active. What am I doing wrong?
Any help would be sincerely appreciated.