We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Sam.mk Configuration:
Arduino.mk Configuration:
ARDUINO_LIBS =
mkdir -p build-mkrwifi1010 /home/boy/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -x c++ -include Arduino.h -MMD -c -D__PROG_TYPES_COMPAT__ -I/home/boy/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/ -I/home/boy/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS/Device/ATMEL -DMD -DUSBCON '-DUSB_PRODUCT="Arduino MKR WiFi 1010"' '-DUSB_MANUFACTURER="Arduino LLC"' -DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ -DUSE_BQ24195L_PMIC -DUSB_VID=0x2341 -DUSB_PID=0x8054 -mthumb -nostdlib --param max-inline-insns-single=500 -fno-exceptions -Wl,-Map=build-mkrwifi1010/test.map -mcpu=cortex-m0plus -DF_CPU=48000000L -DARDUINO=100 -DARDUINO_SAMD_MKRWIFI1010 -DARDUINO_ARCH_SAMD "-DARDUINO_BOARD="SAMD_MKRWIFI1010"" "-DARDUINO_VARIANT="mkrwifi1010"" -I/home/boy/.arduino15/packages/arduino/hardware/samd/1.8.12/cores/arduino -I/home/boy/.arduino15/packages/arduino/hardware/samd/1.8.12/cores/arduino/api -I/home/boy/.arduino15/packages/arduino/hardware/samd/1.8.12/variants/mkrwifi1010 -I/home/boy/Documents/arduino_project/test/lib/WiFiNINA/src -Wall -ffunction-sections -fdata-sections -Os -fno-rtti -fno-threadsafe-statics -std=gnu++11 -fpermissive -fno-exceptions -std=gnu++11 -fdiagnostics-color=always test.ino -o build-mkrwifi1010/test.ino.o In file included from /home/boy/Documents/arduino_project/test/lib/WiFiNINA/src/WiFiUdp.h:24:0, from /home/boy/Documents/arduino_project/test/lib/WiFiNINA/src/utility/wifi_drv.h:27, from /home/boy/Documents/arduino_project/test/lib/WiFiNINA/src/WiFiStorage.h:23, from /home/boy/Documents/arduino_project/test/lib/WiFiNINA/src/WiFi.h:38, from /home/boy/Documents/arduino_project/test/lib/WiFiNINA/src/WiFiNINA.h:23, from test.ino:2: /home/boy/.arduino15/packages/arduino/hardware/samd/1.8.12/cores/arduino/Udp.h:41:7: error: redefinition of 'class arduino::UDP' class UDP : public Stream { ^~~ In file included from /home/boy/.arduino15/packages/arduino/hardware/samd/1.8.12/cores/arduino/api/ArduinoAPI.h:37:0, from /home/boy/.arduino15/packages/arduino/hardware/samd/1.8.12/cores/arduino/Arduino.h:23, from :0: /home/boy/.arduino15/packages/arduino/hardware/samd/1.8.12/cores/arduino/api/Udp.h:42:7: note: previous definition of 'class arduino::UDP' class UDP : public Stream {
with my makefile :
ARDUINO_PLATFORM_LIB_PATH = /usr/share/arduino/hardware/arduino/ArduinoCore-samd/libraries ARDUINO_DIR = /usr/share/arduino/hardware/arduino
ARDUINO_PORT =/dev/ttyACM0 BOARD_TAG = mkrwifi1010
USER_LIB_PATH := $(realpath ./lib)
ARDUINO_LIBS = WiFiNINA
include ./Arduino-Makefile/Sam.mk
and my code test.ino :
#include <WiFiNINA.h>
void setup() { Serial.begin(9600); Serial.print("Press any key: "); }
void loop() { Serial.println("kjaf;ljda;f;a");
}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I try everything and i have always the same issues
Sam.mk Configuration:
Arduino.mk Configuration:
mkdir -p build-mkrwifi1010
/home/boy/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -x c++ -include Arduino.h -MMD -c -D__PROG_TYPES_COMPAT__ -I/home/boy/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/ -I/home/boy/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS/Device/ATMEL -DMD -DUSBCON '-DUSB_PRODUCT="Arduino MKR WiFi 1010"' '-DUSB_MANUFACTURER="Arduino LLC"' -DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ -DUSE_BQ24195L_PMIC -DUSB_VID=0x2341 -DUSB_PID=0x8054 -mthumb -nostdlib --param max-inline-insns-single=500 -fno-exceptions -Wl,-Map=build-mkrwifi1010/test.map -mcpu=cortex-m0plus -DF_CPU=48000000L -DARDUINO=100 -DARDUINO_SAMD_MKRWIFI1010 -DARDUINO_ARCH_SAMD "-DARDUINO_BOARD="SAMD_MKRWIFI1010"" "-DARDUINO_VARIANT="mkrwifi1010"" -I/home/boy/.arduino15/packages/arduino/hardware/samd/1.8.12/cores/arduino -I/home/boy/.arduino15/packages/arduino/hardware/samd/1.8.12/cores/arduino/api -I/home/boy/.arduino15/packages/arduino/hardware/samd/1.8.12/variants/mkrwifi1010 -I/home/boy/Documents/arduino_project/test/lib/WiFiNINA/src -Wall -ffunction-sections -fdata-sections -Os -fno-rtti -fno-threadsafe-statics -std=gnu++11 -fpermissive -fno-exceptions -std=gnu++11 -fdiagnostics-color=always test.ino -o build-mkrwifi1010/test.ino.o
In file included from /home/boy/Documents/arduino_project/test/lib/WiFiNINA/src/WiFiUdp.h:24:0,
from /home/boy/Documents/arduino_project/test/lib/WiFiNINA/src/utility/wifi_drv.h:27,
from /home/boy/Documents/arduino_project/test/lib/WiFiNINA/src/WiFiStorage.h:23,
from /home/boy/Documents/arduino_project/test/lib/WiFiNINA/src/WiFi.h:38,
from /home/boy/Documents/arduino_project/test/lib/WiFiNINA/src/WiFiNINA.h:23,
from test.ino:2:
/home/boy/.arduino15/packages/arduino/hardware/samd/1.8.12/cores/arduino/Udp.h:41:7: error: redefinition of 'class arduino::UDP'
class UDP : public Stream {
^~~
In file included from /home/boy/.arduino15/packages/arduino/hardware/samd/1.8.12/cores/arduino/api/ArduinoAPI.h:37:0,
from /home/boy/.arduino15/packages/arduino/hardware/samd/1.8.12/cores/arduino/Arduino.h:23,
from :0:
/home/boy/.arduino15/packages/arduino/hardware/samd/1.8.12/cores/arduino/api/Udp.h:42:7: note: previous definition of 'class arduino::UDP'
class UDP : public Stream {
with my makefile :
ARDUINO_PLATFORM_LIB_PATH = /usr/share/arduino/hardware/arduino/ArduinoCore-samd/libraries
ARDUINO_DIR = /usr/share/arduino/hardware/arduino
ARDUINO_PORT =/dev/ttyACM0
BOARD_TAG = mkrwifi1010
USER_LIB_PATH := $(realpath ./lib)
ARDUINO_LIBS = WiFiNINA
include ./Arduino-Makefile/Sam.mk
and my code test.ino :
#include <WiFiNINA.h>
void setup() {
Serial.begin(9600);
Serial.print("Press any key: ");
}
void loop() {
Serial.println("kjaf;ljda;f;a");
}
The text was updated successfully, but these errors were encountered: