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

Using FreeRTOS, RTC and Softdevice?

Just a general resource question. The Softdevice uses RTC0, FreeRTOS (by coded default) uses RTC1. So in order for the SDK ble_conn_params.c to run properly I have to link app_timer_freertos.c to the Makefile.

This leaves RTC2 available for general nrf_drv_rtc usage. Is this an acceptable setup? I seem to be having issues with the RTC module operating properly. When the Softdevice runs all hell breaks loose when I enable RTC2. Is this a bug in SDK12.3?

Parents
  • I tried replacing this file. Everything still works fine but Eclipse is still complaining about RTC2. So far I haven't had any issues today. In regards to the thread you mentioned, the root cause was something change the Thread priority causing Cortex Thread faults. Not sure how it happened but since I've re-installed SDK12.3.0 I have only seen this issue a couple times.

Reply
  • I tried replacing this file. Everything still works fine but Eclipse is still complaining about RTC2. So far I haven't had any issues today. In regards to the thread you mentioned, the root cause was something change the Thread priority causing Cortex Thread faults. Not sure how it happened but since I've re-installed SDK12.3.0 I have only seen this issue a couple times.

Children
No Data
Related