Questions and discussions about the software that runs on the TD RF module itself.
TizeN
 
Posts: 1
Joined: Sat Jul 16, 2016 3:47 pm

RTC_IRQHandler

by TizeN Sat Jul 16, 2016 4:24 pm

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! :)
User avatar
mstempin
 
Posts: 168
Joined: Thu May 07, 2015 9:24 am

Re: RTC_IRQHandler

by mstempin Tue Aug 09, 2016 8:50 am

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".
Return to Firmware

Who is online

Users browsing this forum: No registered users and 29 guests