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

Inaccurate time with FreeRTOS + S112

Good morning,

I'm starting to develop an application for the nRF52805 using ble_app_hrs_freertos as a base.

The modification I did are:

  • Ported from nRF52832 to nRF52805
  • Configured the project to use the LFRC with calibration every 8 seconds
  • Changed configTICK_RATE_HZ from 1024 to 1000, that is 1kHz (sincerely I don't understand why it wasn't set to that value)
  • Added a task that toggles a PIN every 1 second

I measured the time the the PIN toggles with a logic analyzer and the measured time is 1.0072539 (averaged over 20 periods) which means
an error of 0.7% and an accuracy of about 7000ppm.

From nRF52805 specification the LFRC accuracy after calibration is 500ppm. I think I am missing something. Can you possibly give me
some hint?

Best regards,

Andrea

Parents Reply Children
No Data
Related