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

Error while intergrating FreeRTOS to Libuarte

Hi,

I'm working around to integrate FreeRTOS to Libuarte example, but i'm getting an error while building the project says:

C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 4.52b/gcc/arm-none-eabi/bin/ld: Output/Casky_uart Release/Obj/port_cmsis_systick.o: in function `RTC1_IRQHandler':
1> D:\Nordic\external\freertos\portable\CMSIS\nrf52/port_cmsis_systick.c:115: multiple definition of `RTC1_IRQHandler'; Output/Casky_uart Release/Obj/drv_rtc.o:D:\Nordic\components\libraries\timer/drv_rtc.c:349: first defined here

For the Libuarte instance i'm using RTC instance 2

NRF_LIBUARTE_ASYNC_DEFINE(libuarte, 0, 0, 2, NRF_LIBUARTE_PERIPHERAL_NOT_USED, 255, 3);

Anyone can help ?

Thanks in advance.

  • Hi,

    The error seems to come from the app_timer library and not from libUARTE. You can try to disable app_timer in your sdk_config.h file:

    // <e> APP_TIMER_ENABLED - app_timer - Application timer functionality
    //==========================================================
    #ifndef APP_TIMER_ENABLED
    #define APP_TIMER_ENABLED 0
    #endif

    You may then have to disable app_timer support in libUARTE:

    // <q> NRF_LIBUARTE_ASYNC_WITH_APP_TIMER  - nrf_libuarte_async - libUARTE_async library
     
    
    #ifndef NRF_LIBUARTE_ASYNC_WITH_APP_TIMER
    #define NRF_LIBUARTE_ASYNC_WITH_APP_TIMER 0
    #endif

    Best regards,
    Jørgen

Related