Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contiki timer #404

Open
apurva1992 opened this issue Nov 4, 2019 · 0 comments
Open

contiki timer #404

apurva1992 opened this issue Nov 4, 2019 · 0 comments

Comments

@apurva1992
Copy link

Hi,

I am using contiki-6lbr on my CC1310 custom board. In my application code, I periodically(every 5 second) perform an action. Code is something like below:

PROCESS_THREAD(udp_client_process, ev, data)
{
PROCESS_BEGIN();
etimer_set(&et_periodic, 5 * CLOCK_SECOND);
// Initialization code

while(1)
{

    PROCESS_YIELD();

    if(ev == PROCESS_EVENT_TIMER && data == &et_periodic)
    {
        //Perform some action
        //PRINTF statements
    }
}

}

Code is running perfectly fine for initial few days. After few days of non-stop working, code behaves weirdly and doesn't enter if condition of et_periodic timer. The code is still working as few other threads are still printing the logs. It seems that Contiki timer service thread is hanging after few days. However, I am not able to figure out the root cause. Any leads would be highly appreciated.

Thank you!
Apurva

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant