JN5169 Error using interrupt function of timer 0

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

JN5169 Error using interrupt function of timer 0

1,963件の閲覧回数
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,913件の閲覧回数
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,913件の閲覧回数
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,913件の閲覧回数
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi Han, 

It's good to hear the issue was solved!

Best regards,

Sebastian

0 件の賞賛
返信