JN5189 Zigbee Wake timer interrupt crash

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

JN5189 Zigbee Wake timer interrupt crash

1,070件の閲覧回数
yanggx98
Contributor I

Hi, I am using the EndDevice template of JN-AN-1243. The ANS version is v2007 and the SDK is 2.6.12. I tryed the a wtimer0 in my code. The chip will crash on a timeout interrupt triggered while the chip is sleeping.and will not if the chip is active. I'm bothered.Can anyone help me? thanks.

Int the attachment,I marked the location of the timer start time and crash.

タグ(2)
0 件の賞賛
返信
2 返答(返信)

1,062件の閲覧回数
yanggx98
Contributor I
static void vStartWakeTimer(uint32 u32WakeTicks)
{
   WTIMER_Init();
   WTIMER_EnableInterrupts(WTIMER_TIMER0_ID);
   WTIMER_StartTimer(WTIMER_TIMER0_ID, u32WakeTicks);
}
void WAKE_UP_TIMER0_IRQHandler(void)
{
    /* Stop the timer */
    WTIMER_StopTimer(WTIMER_TIMER0_ID);
    /* Clear status flags */
    WTIMER_ClearStatusFlags(WTIMER_TIMER0_ID);
    APP_tsEvent event;
    event.eType = APP_E_EVENT_WAKE_TIMER;
    ZQ_bQueueSend(&APP_msgAppEvents, &event); 
}
0 件の賞賛
返信

1,018件の閲覧回数
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

Hope you are doing well. When working with wireless technology, it is recommended to work with the Connectivity Framework software.

 

I would recommend checking the different framework services, such as the Timer's Manager and the Low-power Library.

 

More information about these services, can found on the "Connectivity Framework Reference Manual.pdf" (Path: SDK\docs\wireless\Common)

 

Regards,

Ricardo

0 件の賞賛
返信