Watchdog irq is not working for me on MAC57D5MB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Watchdog irq is not working for me on MAC57D5MB

Jump to solution
1,168 Views
prashantsathe
Contributor III

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); //

}

Labels (1)
0 Kudos
1 Solution
897 Views
prashantsathe
Contributor III

Please reply me on below link, i guess this is a duplicate question(by mistake).

Watchdog IRQ issue in Mac57d5MB  

View solution in original post

0 Kudos
5 Replies
897 Views
prashantsathe
Contributor III

Please reply me on below link, i guess this is a duplicate question(by mistake).

Watchdog IRQ issue in Mac57d5MB 

0 Kudos
897 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

have you tried it in standalone mode without debugger? Debuggers usually automatically disable the watchdog in debug mode...

Regards,

Lukas

0 Kudos
898 Views
prashantsathe
Contributor III

Please reply me on below link, i guess this is a duplicate question(by mistake).

Watchdog IRQ issue in Mac57d5MB  

0 Kudos
897 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

I have asked engineer who is more experienced with this device to answer your question. I hope he will send the response soon.

Lukas

0 Kudos
897 Views
prashantsathe
Contributor III

Sorry for late reply.

"Debuggers usually automatically disable the watchdog in debug mode." .. Yes, I have tried without debugger Also.

We have added a UART print statement in non debug mode . we are not getting any print on console.ahan

-Prashant

0 Kudos