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

Error on building a Arduino MKR Wifi 1010 project #669

Open
horchi opened this issue Aug 26, 2021 · 0 comments
Open

Error on building a Arduino MKR Wifi 1010 project #669

horchi opened this issue Aug 26, 2021 · 0 comments

Comments

@horchi
Copy link

horchi commented Aug 26, 2021

I try to build a MKR Wifi 1010 project with this settings:

BOARD_TAG     = mkrwifi1010
ARDUINO_DIR   = /home/wendel/arduino-1.8.15
MONITOR_PORT  = /dev/ttyUSB0
AVRDUDE_ARD_BAUDRATE = 57600

include /home/wendel/Arduino-Makefile/Sam.mk

did I miss something?

The result is:

-------------------------
Sam.mk Configuration:
- [AUTODETECTED]       CURRENT_OS = LINUX 
- [USER]               ARDUINO_DIR = /home/wendel/arduino-1.8.15 
- [AUTODETECTED]       PYTHON_CMD = /usr/bin/python3 
- [AUTODETECTED]       ARDUINO_PACKAGE_DIR = /home/wendel/.arduino15/packages (from DEFAULT)
- [AUTODETECTED]       CORE_VER = 1.8.11 (from ARDUINO_PACKAGE_DIR)
- [AUTODETECTED]       CMSIS_VER = 4.5.0 (from ARDUINO_PACKAGE_DIR)
- [AUTODETECTED]       CMSIS_ATMEL_VER = 1.2.0 (from ARDUINO_PACKAGE_DIR)
- [AUTODETECTED]       CMSIS_DIR = /home/wendel/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS (from ARDUINO_PACKAGE_DIR)
- [AUTODETECTED]       CMSIS_ATMEL_DIR = /home/wendel/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS (from ARDUINO_PACKAGE_DIR)
- [COMPUTED]           ARDUINO_PLATFORM_LIB_PATH = /home/wendel/.arduino15/packages/arduino/hardware/samd/1.8.11/libraries (from ARDUINO_PACKAGE_DIR)
- [COMPUTED]           ARM_TOOLS_DIR = /home/wendel/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4 (from ARDUINO_PACKAGE_DIR)
- [COMPUTED]           UPLOAD_TOOL = bossac 
- [COMPUTED]           BOOTLOADER_UPLOAD_TOOL = openocd 
- [AUTODETECTED]       OPENOCD = /home/wendel/.arduino15/packages/arduino/tools/openocd/0.10.0-arduino7/bin/openocd -s /home/wendel/.arduino15/packages/arduino/tools/openocd/0.10.0-arduino7/share/openocd/scripts/ (from ARDUINO_PACKAGE_DIR)
- [AUTODETECTED]       BOSSA = /home/wendel/.arduino15/packages/arduino/tools/bossac/1.7.0-arduino3/bossac (from ARDUINO_PACKAGE_DIR)
- [COMPUTED]           USB_PRODUCT = "Arduino MKR WiFi 1010" 
- [COMPUTED]           USB_MANUFACTURER = "Arduino LLC" 
- [COMPUTED]           USB_VID = 0x2341 
- [COMPUTED]           USB_PID = 0x8054 
-------------------------
Arduino.mk Configuration:
- [USER]               ARDMK_DIR = /home/wendel/Arduino-Makefile 
- [AUTODETECTED]       ARDUINO_VERSION = 1815 
- [USER]               ARCHITECTURE = samd 
- [USER]               ARDMK_VENDOR = arduino 
- [AUTODETECTED]       ARDUINO_PREFERENCES_PATH = /home/wendel/.arduino15/preferences.txt 
- [AUTODETECTED]       ARDUINO_SKETCHBOOK = /home/wendel/Arduino (from arduino preferences file)
- [USER]               ALTERNATE_CORE_PATH = /home/wendel/.arduino15/packages/arduino/hardware/samd/1.8.11 
- [COMPUTED]           ARDUINO_VAR_PATH = /home/wendel/.arduino15/packages/arduino/hardware/samd/1.8.11/variants (from ALTERNATE_CORE_PATH)
- [USER]               AVR_TOOLS_DIR = /home/wendel/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4 
- [COMPUTED]           ARDUINO_LIB_PATH = /home/wendel/arduino-1.8.15/libraries (from ARDUINO_DIR)
- [USER]               ARDUINO_PLATFORM_LIB_PATH = /home/wendel/.arduino15/packages/arduino/hardware/samd/1.8.11/libraries 
- [DEFAULT]            USER_LIB_PATH = /home/wendel/Arduino/libraries (in user sketchbook)
- [DEFAULT]            PRE_BUILD_HOOK = pre-build-hook.sh 
- [USER]               BOARD_TAG = mkrwifi1010 
- [COMPUTED]           CORE = arduino (from build.core)
- [USER]               VARIANT = mkrwifi1010 
- [COMPUTED]           BOARD = SAMD_MKRWIFI1010 (from build.board)
- [COMPUTED]           OBJDIR = build-mkrwifi1010 (from BOARD_TAG)
- [USER]               ARDUINO_CORE_PATH = /home/wendel/.arduino15/packages/arduino/hardware/samd/1.8.11/cores/arduino 
- [COMPUTED]           RESET_CMD = /usr/bin/python3 /usr/bin/ard-reset-arduino --zero  (from PYTHON_CMD, ARD_RESET_OPTS and MONITOR_PORT)
- [DETECTED]           MONITOR_BAUDRATE = 115200  (in sketch)
- [DEFAULT]            OPTIMIZATION_LEVEL = s 
- [USER]               MCU_FLAG_NAME = mcpu 
- [USER]               CFLAGS_STD = -std=gnu11 
- [DEFAULT]            CXXFLAGS_STD = -std=gnu++11 
- [COMPUTED]           DEVICE_PATH = /dev/ttyUSB0 (from MONITOR_PORT)
- [DEFAULT]            FORCE_MONITOR_PORT =  
- [AUTODETECTED]       Size utility: ARM
-
-                      ARDUINO_LIBS =
- [USER]                 ADS1115_WE
- [USER]                 ArduinoJson
- [USER]                 MQTT
- [USER]                 NTPClient
- [USER]                 Sodaq_wdt
- [USER]                 WiFiNINA
- [SYSTEM]               WiFi
- [PLATFORM]             Wire
- [USER]               BOOTLOADER_PARENT = /home/wendel/.arduino15/packages/arduino/hardware/samd/1.8.11/bootloaders 
- [COMPUTED]           ARDMK_VERSION = 1.6 
- [COMPUTED]           CC_VERSION = 7.2.1 (arm-none-eabi-gcc)
-------------------------
In file included from /home/wendel/arduino-1.8.15/libraries/WiFi/src/WiFiUdp.h:23:0,
                 from /home/wendel/Arduino/libraries/WiFiNINA/src/utility/wifi_drv.h:27,
                 from /home/wendel/Arduino/libraries/WiFiNINA/src/WiFiStorage.h:23,
                 from /home/wendel/Arduino/libraries/WiFiNINA/src/WiFi.h:38,
                 from /home/wendel/Arduino/libraries/WiFiNINA/src/WiFiNINA.h:23,
                 from mqtttest.ino:16:
/home/wendel/.arduino15/packages/arduino/hardware/samd/1.8.11/cores/arduino/Udp.h: In member function 'uint8_t* UDP::rawIPAddress(arduino::IPAddress&)':
/home/wendel/.arduino15/packages/arduino/hardware/samd/1.8.11/cores/arduino/Udp.h:86:68: error: 'uint8_t* arduino::IPAddress::raw_address()' is private within this context
   uint8_t* rawIPAddress(IPAddress& addr) { return addr.raw_address(); };
                                                                    ^
In file included from /home/wendel/.arduino15/packages/arduino/hardware/samd/1.8.11/cores/arduino/api/ArduinoAPI.h:30:0,
                 from /home/wendel/.arduino15/packages/arduino/hardware/samd/1.8.11/cores/arduino/Arduino.h:23,
                 from <command-line>:0:
/home/wendel/.arduino15/packages/arduino/hardware/samd/1.8.11/cores/arduino/api/IPAddress.h:46:14: note: declared private here
     uint8_t* raw_address() { return _address.bytes; };
              ^~~~~~~~~~~
In file included from /home/wendel/Arduino/libraries/WiFiNINA/src/utility/wifi_drv.h:27:0,
                 from /home/wendel/Arduino/libraries/WiFiNINA/src/WiFiStorage.h:23,
                 from /home/wendel/Arduino/libraries/WiFiNINA/src/WiFi.h:38,
                 from /home/wendel/Arduino/libraries/WiFiNINA/src/WiFiNINA.h:23,
                 from mqtttest.ino:16:
/home/wendel/arduino-1.8.15/libraries/WiFi/src/WiFiUdp.h: At global scope:
/home/wendel/arduino-1.8.15/libraries/WiFi/src/WiFiUdp.h:27:24: error: reference to 'UDP' is ambiguous
 class WiFiUDP : public UDP {
 ...
 ... 

I can build it using the Arduino IDE

@horchi horchi changed the title Eoorr on building a Arduino MKR Wifi 1010 project Error on building a Arduino MKR Wifi 1010 project Aug 27, 2021
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