Gong xd

MCF5223X do not start watchdog

Discussion created by Gong xd on Jun 5, 2008
Latest reply on Jun 16, 2008 by Gong xd
same as  Paynete' s problem :
Working with ColdFire_Lite Tcp Stack.  Having an issue with unresponsive TCP or general lockup.  Thought I would enable watchdog.
Changed mcf5223_wtm_init in mcf5223_sysinit.c to turn on Watchdog.
void mcf5223_wtm_init(void)
 * Enable Software Watchdog Timer - Timing 2^23 * Bus Freq
 MCF_INTC0_ICR8  =  MCF_INTC_ICR_IL(2);     
 MCF_SCM_CWSR = 0x55;
Tried without setting    CWTA,  CWTAVAL,  & CWTIC  also.
Added _watchdog_handler to mcf5223_vectors.s as .extern and to vector48:
 .extern _watchdog_handler
vector48: .long  _watchdog_handler //_irq_handler
Added  watchdog_handler to Int_handlers.c to perform soft reset
void watchdog_handler (void)
 MCF_CIM_RCR |= MCF_CIM_RCR_SOFTRST;  //TEP Software Reset *********************** 
Purposely did not service the CWSR on a periodic basis for test.