sudar / Arduino-Makefile

Makefile for Arduino sketches. It defines the workflows for compiling code, flashing it to Arduino and even communicating through Serial.
http://hardwarefun.com/tutorials/compiling-arduino-sketches-using-makefile
GNU Lesser General Public License v2.1
2.01k stars 448 forks source link

Error using SAMD: "ard-reset-arduino: error: unrecognized arguments: --zero" #651

Closed cdupont closed 3 years ago

cdupont commented 3 years ago

I have the following error when trying to upload for Arduino MKR NB 1500:

mkdir -p build-mkrnb1500
make reset
make[1]: Entering directory '/home/cdupont/Documents/nico/anemo/compilation'
/usr/bin/python3 /usr/bin/ard-reset-arduino --zero /dev/ttyACM1
usage: ard-reset-arduino [-h] [--caterina] [--verbose] [--period PERIOD] port
ard-reset-arduino: error: unrecognized arguments: --zero

Here is my Makefile:

ARCHITECTURE     = samd
ARDUINO_DIR      = /home/cdupont/Documents/workspace/arduino-1.8.10/
BOARD_TAG        = mkrnb1500

USER_LIB_PATH    = /home/cdupont/Documents/Waziup/WaziDev/libraries
MONITOR_PORT     = /dev/ttyACM1
ARDUINO_LIBS     = PString-Arduino-lib MKRNB ArduinoHttpClient
MONITOR_BAUDRATE = 38400 

include /home/cdupont/Documents/workspace/Arduino-Makefile/Sam.mk

I have the latest version of this repo. Thanks a lot!

cdupont commented 3 years ago

I probably have an old version of ard-reset-arduino installed on my computer. I replaced it with the one found in this repository, it works fine.