Page 1 of 1

RTC_IRQHandler

Posted: Sat Jul 16, 2016 4:24 pm
by TizeN
Hello everyone,

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 :x

Can anyone explain what is the problem and how to solve it?

Thank you in advance! :)

Re: RTC_IRQHandler

Posted: Tue Aug 09, 2016 8:50 am
by mstempin
These handler are already defined by the libtdcore library as they are required for normal system operation. If you want to use either, you must share them using the provided APIs for timers, please check "lib/libtdcore/src/td_rtc.c" and "lib/libtdcore/src/td_scheduler.c".