Makefile for Arduino sketches. It defines the workflows for compiling code, flashing it to Arduino and even communicating through Serial.
GNU Lesser General Public License v2.1
2.02k
stars
449
forks
source link
Arduino makefile issue dependencies libs with samd board #675
Open
Assowavesss opened 2 years ago
I try everything and i have always the same issues
Sam.mk Configuration:
[COMPUTED] USB_PID = 0x8054
Arduino.mk Configuration:
[COMPUTED] CC_VERSION = 7.2.1 (arm-none-eabi-gcc)
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 -DPROG_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 -DSAMD21G18A -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
void setup() { Serial.begin(9600); Serial.print("Press any key: "); }
void loop() { Serial.println("kjaf;ljda;f;a");
}