Cannot use TimerInterrupt_Generic Library in the same time than Servo Library #11
Replies: 3 comments
-
Thanks for pointing out the issue, or so-called bug of both libraries (because the weird way SAMD / AVR / megaAVR core use and define Timer Interrupt Handler). But it's better I'll fix my relating libraries, and keep the Servo library intact. This however has nothing to do with #3. I'll modify and publish SAMD_TimerInterrupt first, then merge it into this TimerInterrupt_Generic library later. Will inform you to try when any of them is ready. |
Beta Was this translation helpful? Give feedback.
-
The SAMD_TimerInterrupt v1.10.0 has just been published. Your contribution is noted in Contributions and Thanks. Please test and report any error or bug, Regards, Releases v1.10.0
|
Beta Was this translation helpful? Give feedback.
-
The TimerInterrupt_Generic v1.12.0 has just been published. Your contribution is noted in Contributions and Thanks. Please test and report any error or bug, Regards, Major Releases v1.12.0
|
Beta Was this translation helpful? Give feedback.
-
This is because TCx_Handler is implemeted on both side even if we don't use the same timer.
It give this error message:
libraries\Servo\samd\Servo.cpp.o: In function
TC4_Handler': C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\libraries\Servo\src\samd/Servo.cpp:51: multiple definition of
TC4_Handler'\Documents\Arduino\libraries\TimerInterrupt_Generic\src/SAMDTimerInterrupt_Generic.h:559: first defined here
collect2.exe: error: ld returned 1 exit status
It could be good to declare only Interrupt Handler use by the application. Could be manage using #3
Regards,
Seb
Beta Was this translation helpful? Give feedback.
All reactions