I've started to play with the SDK of my TD1208 a week ago, and now I'm facing a problem with some functions like RTC_IRQHandler and TIMER1_IRQHandler.
Both have the same problem, I've a simple function like this one below :
- Code: Select all
void RTC_IRQHandler(void)
{
/* Clear interrupt source */
RTC_IntClear(RTC_IFC_COMP0);
}
(The same but for TIMER1 give the same result)
But when I want to build my main.c it always say :
C:\TD\TD_RF_Module_SDK-v6.0.0\Github\TD_RF_Module_SDK\lib\libtdcore\GCC Release\libtdcore.a(td_rtc.o): In function `RTC_IRQHandler':
td_rtc.c:(.text.RTC_IRQHandler+0x0): multiple definition of `RTC_IRQHandler'
src\main.o:main.c:(.text.RTC_IRQHandler+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
It's as if the functions were already defined and I can't play with it.
It's a little bit frustrating
Can anyone explain what is the problem and how to solve it?
Thank you in advance!