JN5189 Zigbee Wake timer interrupt crash

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

JN5189 Zigbee Wake timer interrupt crash

949 Views
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.

Tags (2)
0 Kudos
Reply
2 Replies

941 Views
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 Kudos
Reply

897 Views
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 Kudos
Reply