Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arduino Zero (ARM M0+ architecture) compilation error #3

Open
qbiq opened this issue Feb 2, 2016 · 0 comments
Open

Arduino Zero (ARM M0+ architecture) compilation error #3

qbiq opened this issue Feb 2, 2016 · 0 comments

Comments

@qbiq
Copy link

qbiq commented Feb 2, 2016

Hi, I am trying to compile the example code (RTC.pde) in an Arduino Zero (Atmel ARM M0+ architecture).

I know your library is intended for ARM architecture, but keep in mind that the Wire.h library (and Arduino Core library) are available, therefore making this library compatible with the new Arduino ARM architecture should be feasible, I assume, but unfortunately beyond my capabilities now.

The only change in the code to have the communication going through the native USB port would be:

#define Serial SerialUSB

This is the compilation error log I get:

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 -ide-version=10607 -build-path "C:\Users\quino\AppData\Local\Temp\buildbeba8873455ae0637924e86f7164019b.tmp" -warnings=default -prefs=build.warn_data_percentage=75 -verbose "C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\examples\RTC\RTC.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 -ide-version=10607 -build-path "C:\Users\quino\AppData\Local\Temp\buildbeba8873455ae0637924e86f7164019b.tmp" -warnings=default -prefs=build.warn_data_percentage=75 -verbose "C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\examples\RTC\RTC.pde"
Warning: platform.txt from core 'Arduino SAMD (32-bits ARM Cortex-M0+) Boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.
"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\buildbeba8873455ae0637924e86f7164019b.tmp\sketch\RTC.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\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire" "C:\Users\quino\AppData\Local\Temp\buildbeba8873455ae0637924e86f7164019b.tmp\sketch\RTC.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\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire" "-IC:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master" "C:\Users\quino\AppData\Local\Temp\buildbeba8873455ae0637924e86f7164019b.tmp\sketch\RTC.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\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire" "-IC:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master" "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\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire" "-IC:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master" "C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.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\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire" "-IC:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master" "C:\Users\quino\AppData\Local\Temp\buildbeba8873455ae0637924e86f7164019b.tmp\sketch\RTC.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\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire" "-IC:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master" "C:\Users\quino\AppData\Local\Temp\buildbeba8873455ae0637924e86f7164019b.tmp\sketch\RTC.pde.cpp" -o "C:\Users\quino\AppData\Local\Temp\buildbeba8873455ae0637924e86f7164019b.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\buildbeba8873455ae0637924e86f7164019b.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\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire" "-IC:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master" "C:\Users\quino\AppData\Local\Temp\buildbeba8873455ae0637924e86f7164019b.tmp\sketch\RTC.pde.cpp" -o "C:\Users\quino\AppData\Local\Temp\buildbeba8873455ae0637924e86f7164019b.tmp\sketch\RTC.pde.cpp.o"
"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\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire" "-IC:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master" "C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire\Wire.cpp" -o "C:\Users\quino\AppData\Local\Temp\buildbeba8873455ae0637924e86f7164019b.tmp\libraries\Wire\Wire.cpp.o"
"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\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire" "-IC:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master" "C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp" -o "C:\Users\quino\AppData\Local\Temp\buildbeba8873455ae0637924e86f7164019b.tmp\libraries\mcp7941x_arduino-master\MCP7941x.cpp.o"
C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp: In member function 'void MCP7941x::setDateTime(byte, byte, byte, byte, byte, byte, byte)':

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:13:35: error: call of overloaded 'write(int)' is ambiguous

   #define WireSend(x) Wire.write(x)

                                   ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:107:3: note: in expansion of macro 'WireSend'

   WireSend(RTC_LOCATION);

   ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:13:35: note: candidates are:

   #define WireSend(x) Wire.write(x)

                                   ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:107:3: note: in expansion of macro 'WireSend'

   WireSend(RTC_LOCATION);

   ^

In file included from C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:21:0:

C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire/Wire.h:50:12: note: virtual size_t TwoWire::write(uint8_t)

     size_t write(uint8_t data);

            ^

In file included from C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino/Stream.h:26:0,

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

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

                 from C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:12:

C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino/Print.h:48:12: note: size_t Print::write(const char*)

     size_t write(const char *str) {

            ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:13:35: error: call of overloaded 'write(int)' is ambiguous

   #define WireSend(x) Wire.write(x)

                                   ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:121:3: note: in expansion of macro 'WireSend'

   WireSend(RTC_LOCATION);

   ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:13:35: note: candidates are:

   #define WireSend(x) Wire.write(x)

                                   ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:121:3: note: in expansion of macro 'WireSend'

   WireSend(RTC_LOCATION);

   ^

In file included from C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:21:0:

C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire/Wire.h:50:12: note: virtual size_t TwoWire::write(uint8_t)

     size_t write(uint8_t data);

            ^

In file included from C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino/Stream.h:26:0,

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

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

                 from C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:12:

C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino/Print.h:48:12: note: size_t Print::write(const char*)

     size_t write(const char *str) {

            ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp: In member function 'void MCP7941x::getDateTime(byte*, byte*, byte*, byte*, byte*, byte*, byte*)':

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:13:35: error: call of overloaded 'write(int)' is ambiguous

   #define WireSend(x) Wire.write(x)

                                   ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:138:3: note: in expansion of macro 'WireSend'

   WireSend(RTC_LOCATION);

   ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:13:35: note: candidates are:

   #define WireSend(x) Wire.write(x)

                                   ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:138:3: note: in expansion of macro 'WireSend'

   WireSend(RTC_LOCATION);

   ^

In file included from C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:21:0:

C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire/Wire.h:50:12: note: virtual size_t TwoWire::write(uint8_t)

     size_t write(uint8_t data);

            ^

In file included from C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino/Stream.h:26:0,

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

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

                 from C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:12:

C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino/Print.h:48:12: note: size_t Print::write(const char*)

     size_t write(const char *str) {

            ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp: In member function 'void MCP7941x::enableClock()':

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:13:35: error: call of overloaded 'write(int)' is ambiguous

   #define WireSend(x) Wire.write(x)

                                   ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:160:3: note: in expansion of macro 'WireSend'

   WireSend(RTC_LOCATION);

   ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:13:35: note: candidates are:

   #define WireSend(x) Wire.write(x)

                                   ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:160:3: note: in expansion of macro 'WireSend'

   WireSend(RTC_LOCATION);

   ^

In file included from C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:21:0:

C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire/Wire.h:50:12: note: virtual size_t TwoWire::write(uint8_t)

     size_t write(uint8_t data);

            ^

In file included from C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino/Stream.h:26:0,

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

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

                 from C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:12:

C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino/Print.h:48:12: note: size_t Print::write(const char*)

     size_t write(const char *str) {

            ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:13:35: error: call of overloaded 'write(int)' is ambiguous

   #define WireSend(x) Wire.write(x)

                                   ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:169:3: note: in expansion of macro 'WireSend'

   WireSend(RTC_LOCATION);

   ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:13:35: note: candidates are:

   #define WireSend(x) Wire.write(x)

                                   ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:169:3: note: in expansion of macro 'WireSend'

   WireSend(RTC_LOCATION);

   ^

In file included from C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:21:0:

C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire/Wire.h:50:12: note: virtual size_t TwoWire::write(uint8_t)

     size_t write(uint8_t data);

            ^

In file included from C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino/Stream.h:26:0,

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

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

                 from C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:12:

C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino/Print.h:48:12: note: size_t Print::write(const char*)

     size_t write(const char *str) {

            ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp: In member function 'void MCP7941x::disableClock()':

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:13:35: error: call of overloaded 'write(int)' is ambiguous

   #define WireSend(x) Wire.write(x)

                                   ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:181:3: note: in expansion of macro 'WireSend'

   WireSend(RTC_LOCATION);

   ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:13:35: note: candidates are:

   #define WireSend(x) Wire.write(x)

                                   ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:181:3: note: in expansion of macro 'WireSend'

   WireSend(RTC_LOCATION);

   ^

In file included from C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:21:0:

C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire/Wire.h:50:12: note: virtual size_t TwoWire::write(uint8_t)

     size_t write(uint8_t data);

            ^

In file included from C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino/Stream.h:26:0,

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

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

                 from C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:12:

C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino/Print.h:48:12: note: size_t Print::write(const char*)

     size_t write(const char *str) {

            ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:13:35: error: call of overloaded 'write(int)' is ambiguous

   #define WireSend(x) Wire.write(x)

                                   ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:190:3: note: in expansion of macro 'WireSend'

   WireSend(RTC_LOCATION);

   ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:13:35: note: candidates are:

   #define WireSend(x) Wire.write(x)

                                   ^

C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:190:3: note: in expansion of macro 'WireSend'

   WireSend(RTC_LOCATION);

   ^

In file included from C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:21:0:

C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire/Wire.h:50:12: note: virtual size_t TwoWire::write(uint8_t)

     size_t write(uint8_t data);

            ^

In file included from C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino/Stream.h:26:0,

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

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

                 from C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master\MCP7941x.cpp:12:

C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino/Print.h:48:12: note: size_t Print::write(const char*)

     size_t write(const char *str) {

            ^

Using library Wire at version 1.0 in folder: C:\Users\quino\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\Wire 
Using library mcp7941x_arduino-master in folder: C:\Users\quino\Documents\Arduino\libraries\mcp7941x_arduino-master (legacy)
exit status 1
Error compiling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant