Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

How to use libuarte+app_timer on FreeRTOS

Currently in FreeRTOS environment app_timer cannot be used for libuarte timeout.
Alternatively, it is possible to use RTC or TIMER.

I want to use UARTE0/UARTE1.
Then,  libuarte use RTC x 1, TIMER x 3.
SoftDevice use RTC x 1, TIMER x 1
FreeRTOS use RTC x 1
for a total of RTC x 3/ TIMER x 4 is required.
Only TIMER x 1 remains.

If libuarte can use app_timer for timeout, the rest is TIMER x 3.

How to use app_timer for libuarte timeout in FreeRTOS environment?

Parents Reply Children
  • No.
    I need to use the nRF5 SDK.
    The nRF connect SDK is very difficult to use.

    I did the following:
    #define NRF_LIBUARTE_ASYNC_WITH_APP_TIMER 1
    NRF_LIBUARTE_ASYNC_DEFINE(UarteInstance, 0, 4, NRF_LIBUARTE_PERIPHERAL_NOT_USED, NRF_LIBUARTE_PERIPHERAL_NOT_USED, 255, 3);

    result:
    2 errors.
    undefined reference to `app_timer_cnt_get'
    undefined reference to `app_timer_cnt_diff_compute'

    what should i do?

Related