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 am quite confident that this is also related to the problem mentioned in this thread. The problem is that sdk 13 and sdk12.3 introduced a corner case in the freertos internal timers that could cause problems in features of RTOS dependent on RTOS timing.

    We should try to solve the compile errors you are getting when you are trying to patch the file mentioned in this thread.

    Ideally, it should not have given any warning, which compiler are you using? Please post your errors when you try to use the patched file?

Reply
  • I am quite confident that this is also related to the problem mentioned in this thread. The problem is that sdk 13 and sdk12.3 introduced a corner case in the freertos internal timers that could cause problems in features of RTOS dependent on RTOS timing.

    We should try to solve the compile errors you are getting when you are trying to patch the file mentioned in this thread.

    Ideally, it should not have given any warning, which compiler are you using? Please post your errors when you try to use the patched file?

Children
No Data
Related