AnsweredAssumed Answered

Watchdog irq is not working for me on MAC57D5MB

Question asked by prashant sathe on Jul 22, 2016
Latest reply on Jul 27, 2016 by prashant sathe

Hi,

 

I am trying to get an Irq from watch dog timeout but unable to do so. Could be please point out my error.

 

Below is the code snippet.

 

void watchdogtest()

{

  /*Enable watch-dog*/

    enable_irq (INT_SWT_0 - MAC57D54H_FIRST_USER_IRQ);

    route_interrupt (INT_SWT_0 - MAC57D54H_FIRST_USER_IRQ, 0x03);

#if 1

  SWT_0.SR.R = 0x0000c520;

  SWT_0.SR.R = 0x0000d928;

  SWT_0.CR.B.WEN = 0;

  SWT_0.TO.R = 0x500;

  SWT_0.CR.B.ITR = 1;

  SWT_0.CR.B.FRZ = 0;

 

 

  SWT_0.CR.B.WEN = 1;

  SWT_0.CR.B.SLK = 1;

 

  uPrintf("In a While Loop...\n");

  while(1); //

}

Outcomes