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

nRF51 RTX timer run too fast

nRF51 RTX 4.74.0-3 SoftDevice S210 V4.0.1-3

Created a timer for 5 seconds interval. It turned to be 4.4 seconds. with or without softdevice enabled.

Anybody else has the same issue?

Parents
  • I checked the external crystal. it is running at 32.768K. Changed the timer to 1Sec, got 740ms on the scope.

    I started to peel things off. of course, when I only have the timer left in the software, 1 sec is dead on.

    But when I start to add things back, such as enabling the softdevice, adding more timers, the 1 Sec timer speeds up more and more.

    I tried using TIMER2 to make a simple interrupt based timer at 125us, no problem, dead on. Just for cross checking and to see how deep is the problem.

    Something is funny going on here. Anybody had the same issue?

    Nordic Engineer please chime in. Thanks

Reply
  • I checked the external crystal. it is running at 32.768K. Changed the timer to 1Sec, got 740ms on the scope.

    I started to peel things off. of course, when I only have the timer left in the software, 1 sec is dead on.

    But when I start to add things back, such as enabling the softdevice, adding more timers, the 1 Sec timer speeds up more and more.

    I tried using TIMER2 to make a simple interrupt based timer at 125us, no problem, dead on. Just for cross checking and to see how deep is the problem.

    Something is funny going on here. Anybody had the same issue?

    Nordic Engineer please chime in. Thanks

Children
No Data
Related