Command line compile and flash

Hello

is there a guide for command line (I specifically need Linux) :

  1. build ino to hex file (some environment parameters and installation are required)

  2. flash to Arduino101 board

1 Like

Hi deadpoolcode,
no guide, simply start the IDE in verbose mode (both compile and upload) and you'll see all the CLI tools involved with the correct commandlines.
For example, in my configuration, the important steps are

/ssd/Arduino-master/build/linux/work/arduino-builder -compile -logger=machine -hardware /ssd/Arduino-master/build/linux/work/hardware -hardware /home/martino/.arduino15/packages -hardware /home/martino/eslov-sk/hardware -tools /ssd/Arduino-master/build/linux/work/tools-builder -tools /ssd/Arduino-master/build/linux/work/hardware/tools/avr -tools /home/martino/.arduino15/packages -built-in-libraries /ssd/Arduino-master/build/linux/work/libraries -libraries /home/martino/eslov-sk/libraries -fqbn=Intel:arc32:arduino_101 -vid-pid=0X2341_0X804E -ide-version=10614 -build-path /tmp/arduino_build_777175 -warnings=all -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduino101load.path=/home/martino/.arduino15/packages/Intel/tools/arduino101load/1.6.9+1.28 -prefs=runtime.tools.arc-elf32.path=/home/martino/.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1 -prefs=runtime.tools.openocd.path=/home/martino/.arduino15/packages/Intel/tools/openocd/0.9.0+0.1 -prefs=runtime.tools.flashpack.path=/home/martino/.arduino15/packages/Intel/tools/flashpack/1.0.0 -verbose /tmp/arduino_modified_sketch_197429/sketch_dec07a.ino

/home/martino/.arduino15/packages/Intel/tools/arduino101load/1.6.9+1.28/arduino101load/arduino101load /home/martino/.arduino15/packages/Intel/tools/arduino101load/1.6.9+1.28/x86/bin /tmp/arduino_build_777175/sketch_dec07a.ino.bin /dev/ttyACM0 verbose ATP1BLE000-1541C5635 141312

Between the commands you should "touch" the serial port with 1200bps selected (google it for tutorials/python code)

1 Like