Hello Mario:
Thanks a lot for the info and sorry for the late reply/
Yes, I think am using wake event; and wake timer 1 is used.(As I remember, JN5169 has exactly 2 wake timer2; timer 0 is used for IEEE802.15.4 stack, and timer 1 is used by JenOS)
For the interrupt handler, it is implemented by JenOS, which would call the used defined PWRM_CALLBACK(Wakeup) function.
And an update, it looks like to be some initialization procedure in the PWRM_CALLBACK(wakeup) that caused the issue.
Here is the details:
The following code snip would have the issue:
PWRM_CALLBACK(Wakeup)
{
...
DBG_vInit();
UART_vInit();
...
PWRM_eScheduleActivity(&sWake_fast, 20000, vWakeDataRequest);
OS_vRestart();
...
}
While the following looks to be solved the issue(at least it is not reproduced for several weeks, compare to several days previously )
PWRM_CALLBACK(Wakeup)
{
...
DBG_vInit();
UART_vInit();
...
OS_vRestart();
PWRM_eScheduleActivity(&sWake_fast, 20000, vWakeDataRequest);
...
}
So in summary, if calling PWRM_eScheduleActive() before OS_vRestart() in PWRM wake up callback, there would be some issue.
Does it make sense? .e.g: some interval implementation....