Dear Sir,
I try to enable the watchdog timer on my 6431 platform, but it doesn't work.
I find a article in the community, and it says watchdog timer is not available on DM648.
http://e2e.ti.com/forums/t/1287.aspx
Does watchdog timer function work in 6431? How can I enable it?
Following are the code I write:
void initDSPWatchDog(void)
{
TIMER2_TGCR = 0x0B; // Set watch dog timer more
TIMER2_TIM12 = 0;// clear count
TIMER2_TIM34 = 0;
TIMER2_PRD12 = 0x600000;// around 20 ms
TIMER2_PRD34 = 0x600000;
CFG_TIMERCTL = 0x01;// WatchDog Timer Event (WDINT from Timer2) causes a device max reset
TIMER2_WDTCR = 0x4000;// Watch dog enable
}
void resetDSPWatchDog(void)
{
TIMER2_WDTCR = 0x0000;// Watch dog disable
TIMER2_TIM12 = 0;// clear count
TIMER2_TIM34 = 0;
TIMER2_WDTCR = 0x4000;// Watch dog enable
}
Thank you for your help in advance.
Best Regards,
Eric Fang