RTC/timer with Freertos,libuarte and softdevice

I am trying to use RTC to get timestamp (to get current time). So, I am using FreeRTOS which uses RTC1 by default, libuarte which uses RTC2 and I am not using softdevice as of now but I want to include that later in my code. So, I cannot use RTC-0. I was trying to use app_timer I know it uses RTC but it's already defined in app_timer_freertos. So, I am not sure whether I can use that. I was trying to use Real Time Counter as mentioned in this link (https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Frtc.html)  but it also uses RTC. So, Can you tell me is there any other way to implement this?

I have already created a ticket where I discussed the problems I faced during the porting to FreeRTOS with libuarte. I am using the same configuration file. So, you can look at this ticket to view the RTC and timers which I am using.

Symbol RTC1_IRQHandler multiply defined (by port_cmsis_systick.o and drv_rtc.o). )

Related