Code: Select allWARNING: Category '' in library EEPROM is not valid. Setting to 'Uncategorized'
Warning: platform.txt from core 'DFRobot Boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.
Sketch uses 15,036 bytes (26%) of program storage space. Maximum is 56,320 bytes.
An error occurred while uploading the sketch
Forcing reset using 1200bps open/close on port /dev/ttyACM2
PORTS {/dev/ttyACM2, /dev/ttyS1, } / {/dev/ttyS1, } => {}
PORTS {/dev/ttyS1, } / {/dev/ttyS1, } => {}
PORTS {/dev/ttyS1, } / {/dev/ttyACM1, /dev/ttyS1, } => {/dev/ttyACM1, }
Found upload port: /dev/ttyACM1
/home/xxxxxx/arduino-1.6.13/hardware/tools/avr/bin/avrdude -C/home/xxxxxx/arduino-1.6.13/hardware/tools/avr/etc/avrdude.conf -v -pATmega2560 -cwiring -P/dev/ttyACM1 -b115200 -D -Uflash:w:/tmp/arduino_build_4071/DistanceSensor-DFRobot.ino.hex:i
avrdude: Version 6.3, compiled on Sep 12 2016 at 15:21:49
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "/home/xxxxxx/arduino-1.6.13/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/home/xxxxxx/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/ttyACM1
Using Programmer : wiring
Overriding Baud Rate : 115200
ioctl("TIOCMSET"): Broken pipe
ioctl("TIOCMSET"): Broken pipe
avrdude: stk500v2_ReceiveMessage(): timeout
It looks like the changing USB port is to be expected at least...