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 makefile issue dependencies libs with samd board #675

Open
Assowavesss opened this issue Feb 21, 2022 · 0 comments
Open

Arduino makefile issue dependencies libs with samd board #675

Assowavesss opened this issue Feb 21, 2022 · 0 comments

Comments

@Assowavesss
Copy link

I try everything and i have always the same issues

Sam.mk Configuration:

  • [AUTODETECTED] CURRENT_OS = LINUX
  • [USER] ARDUINO_DIR = /usr/share/arduino/hardware/arduino
  • [AUTODETECTED] PYTHON_CMD = /usr/bin/python3
  • [AUTODETECTED] ARDUINO_PACKAGE_DIR = /home/boy/.arduino15/packages (from DEFAULT)
  • [AUTODETECTED] CORE_VER = 1.8.12 (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/boy/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS (from ARDUINO_PACKAGE_DIR)
  • [AUTODETECTED] CMSIS_ATMEL_DIR = /home/boy/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS (from ARDUINO_PACKAGE_DIR)
  • [COMPUTED] ARM_TOOLS_DIR = /home/boy/.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/boy/.arduino15/packages/arduino/tools/openocd/0.10.0-arduino7/bin/openocd -s /home/boy/.arduino15/packages/arduino/tools/openocd/0.10.0-arduino7/share/openocd/scripts/ (from ARDUINO_PACKAGE_DIR)
  • [AUTODETECTED] BOSSA = /home/boy/.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/boy/Documents/arduino_project/test/Arduino-Makefile
  • [DEFAULT] ARDUINO_VERSION = 100
  • [USER] ARCHITECTURE = samd
  • [USER] ARDMK_VENDOR = arduino
  • [AUTODETECTED] ARDUINO_PREFERENCES_PATH = /home/boy/.arduino/preferences.txt
  • [AUTODETECTED] ARDUINO_SKETCHBOOK = /home/boy/sketchbook (from arduino preferences file)
  • [USER] ALTERNATE_CORE_PATH = /home/boy/.arduino15/packages/arduino/hardware/samd/1.8.12
  • [COMPUTED] ARDUINO_VAR_PATH = /home/boy/.arduino15/packages/arduino/hardware/samd/1.8.12/variants (from ALTERNATE_CORE_PATH)
  • [USER] AVR_TOOLS_DIR = /home/boy/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4
  • [COMPUTED] ARDUINO_LIB_PATH = /usr/share/arduino/hardware/arduino/libraries (from ARDUINO_DIR)
  • [USER] ARDUINO_PLATFORM_LIB_PATH = /usr/share/arduino/hardware/arduino/ArduinoCore-samd/libraries
  • [USER] USER_LIB_PATH = /home/boy/Documents/arduino_project/test/lib
  • [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/boy/.arduino15/packages/arduino/hardware/samd/1.8.12/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 = 9600 (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/ttyACM0 (from MONITOR_PORT)
  • [DEFAULT] FORCE_MONITOR_PORT =
  • [AUTODETECTED] Size utility: ARM
  •                  ARDUINO_LIBS =
    
  • [USER] WiFiNINA
  • [USER] BOOTLOADER_PARENT = /home/boy/.arduino15/packages/arduino/hardware/samd/1.8.12/bootloaders
  • [COMPUTED] ARDMK_VERSION = 1.6
  • [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 -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");

}

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