AnsweredAssumed Answered

BF537 - watchdog resets system but dont set WDRO bit

Question asked by PGaganoff on May 25, 2011
Latest reply on May 25, 2011 by gvasanth

Hi!

I need to know if last reboot was caused by watchdog.

Im resetting system using this code:

 

void DoReset()

{

  ADI_TMR_WDOG_CMD_VALUE_PAIR wdog_table[] = {

{ ADI_TMR_WDOG_CMD_SET_COUNT,        (void *) 200000 },  //about 1ms=50000

{ ADI_TMR_WDOG_CMD_EVENT_SELECT,     (void *) 0 },    //reset

{ ADI_TMR_WDOG_CMD_ENABLE_TIMER,     (void *) 1 },

   ADI_TMR_WDOG_CMD_END

   };

  adi_tmr_Open( ADI_TMR_WDOG_TIMER );

  adi_tmr_WatchdogControl(ADI_TMR_WDOG_CMD_TABLE, wdog_table);

  VDK_Sleep(1000000);

}

 

So after reset I am evaluating WDRO bit (15) in WDOG_CTL as said in Hardware Manual.

 

Enabled watchdog causes reset as it intended, but after reset on booting I see WDOG_CTL = 0x0AD0,

WDRO is NOT set.

 

What am I doing wrong?

Thanks in advance,

Paul

Outcomes