This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Unusual App Timer Problem

Hi there,

I've got something usual happening with the App Timers in my application, hopeing for some advice on how to track this one down.

There is one part in my code where an external event (handler) powers up and external IC, then starts a single shot app timer, after 200ms the app timer times out and I configure the external IC. This normally works fine, but every now and then the app timer somehow gets into a state where the timer event handler is run immediately after starting the timer (instead of 200ms later)

This 'fault' condition occurs for some time, then it all goes back to working properly.

I have printed out the timer ticks and first interval values from the app_timer.c file and it does not look like the problem is related to the value of the timer ticks, and the interval value is always consistent. I will add some of the debug outputs tomorro when I get to work.

It surely must be something in my application otherwise many people would see this ?

Any ideas appreciated!

Parents Reply Children
Related