dcf77 icon indicating copy to clipboard operation
dcf77 copied to clipboard

Undefined Reference to Internal::Generic_1_kHz_Generator::setup() when compiling for Arduino Zero (Atmel ATSAMD21G18)

Open Anderl94 opened this issue 1 year ago • 2 comments

When attempting to compile a project for the Arduino Zero with a DCF77 module, I encountered the following error:

.pio/build/nanoatmega328new/libdcf77_xtal.a(dcf77.cpp.o): In function `DCF77_Clock::set_input_provider(unsigned char (*)())':
dcf77.cpp:(.text._ZN11DCF77_Clock18set_input_providerEPFhvE+0x2): undefined reference to `Internal::Generic_1_kHz_Generator::setup(unsigned char (*)())'

Anderl94 avatar Oct 02 '24 10:10 Anderl94

In the 1 kHz Generator (line https://github.com/udoklein/dcf77/blob/c9b5c54a6adbd17f4ddb9231c422dafdd5af326a/dcf77.cpp#L1664 and below) it fails to properly account for the zero. Obviously this is because my code was developed before the zero entered the market. Feel free to add the missing statements and test it. If it works I can merge it into the code base.

udoklein avatar Oct 04 '24 11:10 udoklein