JChristensen / MCP79412RTC

Arduino library for the Microchip MCP79411/12 Real-Time Clock/Calendar
GNU General Public License v3.0
23 stars 16 forks source link

Compatiblity with Arduino Zero (Atmel SAMD21 Architecture) #1

Closed qbiq closed 8 years ago

qbiq commented 8 years ago

I am trying to compile some of the example sketches for my arduino Zero board. It seems that the library only works for the Atmel AVR Architecture.

I am getting the following error in all of them:

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\quino\AppData\Local\Arduino15\packages" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -tools "C:\Users\quino\AppData\Local\Arduino15\packages" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\quino\Documents\Arduino\libraries" -fqbn=arduino:samd:arduino_zero_native -vid-pid=0X2341_0X804D -ide-version=10607 -build-path "C:\Users\quino\AppData\Local\Temp\build60ab436ca71763c8739986085a26aa72.tmp" -warnings=default -prefs=build.warn_data_percentage=75 -verbose "C:\Users\quino\AppData\Local\Temp\arduino_60ab436ca71763c8739986085a26aa72\rtcSet3.pde"
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\quino\AppData\Local\Arduino15\packages" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -tools "C:\Users\quino\AppData\Local\Arduino15\packages" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\quino\Documents\Arduino\libraries" -fqbn=arduino:samd:arduino_zero_native -vid-pid=0X2341_0X804D -ide-version=10607 -build-path "C:\Users\quino\AppData\Local\Temp\build60ab436ca71763c8739986085a26aa72.tmp" -warnings=default -prefs=build.warn_data_percentage=75 -verbose "C:\Users\quino\AppData\Local\Temp\arduino_60ab436ca71763c8739986085a26aa72\rtcSet3.pde"
Opciones de compilación cambiadas, reconstruyendo todo
Atención: platform.txt del núcleo 'Arduino SAMD (32-bits ARM Cortex-M0+) Boards' contiene recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}" desfasada, automáticamente convertida a recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Considera el actualizar este núcleo.
"C:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++"  -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Zero"'     "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/CMSIS/Include/" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/Device/ATMEL/"  "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\variants\arduino_zero" "C:\Users\quino\AppData\Local\Temp\build60ab436ca71763c8739986085a26aa72.tmp\sketch\rtcSet3.pde.cpp" -o "nul"
"C:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++"  -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Zero"'     "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/CMSIS/Include/" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/Device/ATMEL/"  "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\variants\arduino_zero" "-IC:\Users\quino\Documents\Arduino\libraries\MCP79412RTC-master" "C:\Users\quino\AppData\Local\Temp\build60ab436ca71763c8739986085a26aa72.tmp\sketch\rtcSet3.pde.cpp" -o "nul"
"C:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++"  -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Zero"'     "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/CMSIS/Include/" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/Device/ATMEL/"  "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\variants\arduino_zero" "-IC:\Users\quino\Documents\Arduino\libraries\MCP79412RTC-master" "-IC:\Users\quino\Documents\Arduino\libraries\Time-master" "C:\Users\quino\AppData\Local\Temp\build60ab436ca71763c8739986085a26aa72.tmp\sketch\rtcSet3.pde.cpp" -o "nul"
"C:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++"  -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Zero"'     "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/CMSIS/Include/" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/Device/ATMEL/"  "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\variants\arduino_zero" "-IC:\Users\quino\Documents\Arduino\libraries\MCP79412RTC-master" "-IC:\Users\quino\Documents\Arduino\libraries\Time-master" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire" "C:\Users\quino\AppData\Local\Temp\build60ab436ca71763c8739986085a26aa72.tmp\sketch\rtcSet3.pde.cpp" -o "nul"
"C:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++"  -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Zero"'     "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/CMSIS/Include/" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/Device/ATMEL/"  "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\variants\arduino_zero" "-IC:\Users\quino\Documents\Arduino\libraries\MCP79412RTC-master" "-IC:\Users\quino\Documents\Arduino\libraries\Time-master" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire" "C:\Users\quino\Documents\Arduino\libraries\MCP79412RTC-master\MCP79412RTC.cpp" -o "nul"
"C:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++"  -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Zero"'     "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/CMSIS/Include/" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/Device/ATMEL/"  "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\variants\arduino_zero" "-IC:\Users\quino\Documents\Arduino\libraries\Time-master" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire" "-IC:\Users\quino\Documents\Arduino\libraries\MCP79412RTC-master" "C:\Users\quino\Documents\Arduino\libraries\Time-master\DateStrings.cpp" -o "nul"
"C:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++"  -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Zero"'     "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/CMSIS/Include/" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/Device/ATMEL/"  "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\variants\arduino_zero" "-IC:\Users\quino\Documents\Arduino\libraries\MCP79412RTC-master" "-IC:\Users\quino\Documents\Arduino\libraries\Time-master" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire" "C:\Users\quino\Documents\Arduino\libraries\Time-master\Time.cpp" -o "nul"
"C:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++"  -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Zero"'     "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/CMSIS/Include/" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/Device/ATMEL/"  "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\variants\arduino_zero" "-IC:\Users\quino\Documents\Arduino\libraries\MCP79412RTC-master" "-IC:\Users\quino\Documents\Arduino\libraries\Time-master" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire" "C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire\Wire.cpp" -o "nul"
"C:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++"  -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Zero"'     "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/CMSIS/Include/" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/Device/ATMEL/"  "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\variants\arduino_zero" "-IC:\Users\quino\Documents\Arduino\libraries\MCP79412RTC-master" "-IC:\Users\quino\Documents\Arduino\libraries\Time-master" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire" "C:\Users\quino\AppData\Local\Temp\build60ab436ca71763c8739986085a26aa72.tmp\sketch\rtcSet3.pde.cpp" -o "nul"
"C:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++"  -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Zero"'     "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/CMSIS/Include/" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/Device/ATMEL/"  "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\variants\arduino_zero" "-IC:\Users\quino\Documents\Arduino\libraries\MCP79412RTC-master" "-IC:\Users\quino\Documents\Arduino\libraries\Time-master" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire" "C:\Users\quino\AppData\Local\Temp\build60ab436ca71763c8739986085a26aa72.tmp\sketch\rtcSet3.pde.cpp" -o "C:\Users\quino\AppData\Local\Temp\build60ab436ca71763c8739986085a26aa72.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino5/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\quino\AppData\Local\Temp\build60ab436ca71763c8739986085a26aa72.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os  -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Zero"' "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/CMSIS/Include/" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/Device/ATMEL/" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\variants\arduino_zero" "-IC:\Users\quino\Documents\Arduino\libraries\MCP79412RTC-master" "-IC:\Users\quino\Documents\Arduino\libraries\Time-master" "-IC:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire" "C:\Users\quino\AppData\Local\Temp\build60ab436ca71763c8739986085a26aa72.tmp\sketch\rtcSet3.pde.cpp" -o "C:\Users\quino\AppData\Local\Temp\build60ab436ca71763c8739986085a26aa72.tmp\sketch\rtcSet3.pde.cpp.o"
In file included from C:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/Device/ATMEL/samd21/include/samd21.h:55:0,

                 from C:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/Device/ATMEL/samd.h:91,

                 from C:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/Device/ATMEL/sam.h:581,

                 from C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino/Arduino.h:47,

                 from C:\Users\quino\AppData\Local\Temp\build60ab436ca71763c8739986085a26aa72.tmp\sketch\rtcSet3.pde.cpp:1:

C:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/Device/ATMEL/samd21/include/samd21g18a.h:486:38: error: expected ')' before '*' token

 #define RTC               ((Rtc      *)0x40001400U) /**< \brief (RTC) APB Base Address */

                                      ^

C:\Users\quino\Documents\Arduino\libraries\MCP79412RTC-master/MCP79412RTC.h:130:20: note: in expansion of macro 'RTC'

 extern MCP79412RTC RTC;

                    ^

C:\Users\quino\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/Device/ATMEL/samd21/include/samd21g18a.h:486:38: error: expected ')' before '*' token

 #define RTC               ((Rtc      *)0x40001400U) /**< \brief (RTC) APB Base Address */

                                      ^

C:\Users\quino\Documents\Arduino\libraries\MCP79412RTC-master/MCP79412RTC.h:130:20: note: in expansion of macro 'RTC'

 extern MCP79412RTC RTC;

                    ^

C:\Users\quino\AppData\Local\Temp\arduino_60ab436ca71763c8739986085a26aa72\rtcSet3.pde: In function 'void setup()':

rtcSet3:27: error: request for member 'set' in '1073746944u', which is of pointer type 'Rtc*' (maybe you meant to use '->' ?)

     RTC.set(now());            //set the RTC from the system time

         ^

C:\Users\quino\AppData\Local\Temp\arduino_60ab436ca71763c8739986085a26aa72\rtcSet3.pde: In function 'time_t compileTime()':

C:\Users\quino\AppData\Local\Temp\arduino_60ab436ca71763c8739986085a26aa72\rtcSet3.pde:41:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

     char *compDate = __DATE__, *compTime = __TIME__, *months = "JanFebMarAprMayJunJulAugSepOctNovDec";

 ^

C:\Users\quino\AppData\Local\Temp\arduino_60ab436ca71763c8739986085a26aa72\rtcSet3.pde:41:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\quino\AppData\Local\Temp\arduino_60ab436ca71763c8739986085a26aa72\rtcSet3.pde:41:64: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

     char *compDate = __DATE__, *compTime = __TIME__, *months = "JanFebMarAprMayJunJulAugSepOctNovDec";

                                                                ^

Utilizando biblioteca MCP79412RTC-master en carpeta: C:\Users\quino\Documents\Arduino\libraries\MCP79412RTC-master (legacy)
Usando librería Time-master con versión 1.5 en la carpeta: C:\Users\quino\Documents\Arduino\libraries\Time-master 
Usando librería Wire con versión 1.0 en la carpeta: C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire 
exit status 1
request for member 'set' in '1073746944u', which is of pointer type 'Rtc*' (maybe you meant to use '->' ?)
JChristensen commented 8 years ago

Correct, library only supports AVR microcontrollers.

qbiq commented 8 years ago

OK, I will try to make some changes and try to support the SAM Architecture, If I have success I would send a PR if you agree.

Actually the first compilation errors are related to the time.h library.