JN5169 Error using interrupt function of timer 0

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

JN5169 Error using interrupt function of timer 0

1,948 次查看
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

标记 (1)
3 回复数

1,898 次查看
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,898 次查看
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,898 次查看
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi Han, 

It's good to hear the issue was solved!

Best regards,

Sebastian

0 项奖励
回复