JN5169 Error using interrupt function of timer 0

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

JN5169 Error using interrupt function of timer 0

1,050 Views
854648943
Contributor III

Hi,

I want to use E_AHI_TIMER_0 to generate an interrupt。

But I ran into some problems, and I found that I only triggered an interrupt, but the program repeated my registered

interrupt function until the watchdog reset.

The SDK is SW-4170

 Device is JN-AN-1217 Base device Router

 Excuse me, where did I configure it incorrectly?

Here are some of my configurations

1.Initialize timer 0

pastedImage_2.png

2.Registration Interrupt function

   pastedImage_3.png

3.Config irq_JN516x.s

pastedImage_5.png

4.log

   pastedImage_6.png

Tags (1)
3 Replies

1,000 Views
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi Tianheng, I hope you're doing well!

 

The issue could be related to an uncleared interrupt flag causing the interrupt to be constantly repeated, thus, causing a watchdog reset.

 

Could you please check to see if you added the following API to clear the interrupt flag?:

(void) u8AHI_TimerFired(E_AHI_TIMER_0);

 

Please let me know if you still have issues.

 

Best regards,

Sebastian

1,000 Views
854648943
Contributor III

Hi,Delrio

Thank you for your reply.

With your help,I've solved the problem. Thank you very much.

Best regards,

Han

1,000 Views
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi Han, 

It's good to hear the issue was solved!

Best regards,

Sebastian

0 Kudos