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

Hi,
I am trying to merge Libuarte with the FreeRTOS environment. I am trying to use RTC-2 for libuarte and RTC-1/0 for Freertos. I am not sure what other things I should enable in sdk_config to get rid of this error. I disabled app_timer in the sdk_config. Tried few methods which I found in the forum but nothing worked.  Also, I tried using RTC2 for freertos by modifying the portmacro_cmsis.h file.

error: .\_build\nrf52840_xxaa.axf: Error: L6200E: Symbol RTC1_IRQHandler multiply defined (by port_cmsis_systick.o and drv_rtc.o).

I enabled #define FREERTOS_USE_RTC      1 /**< Use real time clock for the system */

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


I have attached my sdk_config file.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
* Copyright (c) 2017 - 2021, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form, except as embedded into a Nordic
* Semiconductor ASA integrated circuit in a product or a software update for
* such product, must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other
* materials provided with the distribution.
*
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
* contributors may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX