5,710
edits
Changes
GRBL
,→To compile GRBL and upload to the Arduino
***(note: DEVPATH should match the name of your currently connected arduino. you can find this from arduino software under Port selection)
**<code>export GRBLHEX=grbl.hex</code>
*Add the avr compiler's to your PATH. type this into the terminal: **<code>export PATH="$PATH:$AVRPATH/bin"</code>*Change to the grbl directory: **<code>cd ~/Downloads/grbl-master</code>**change NOTE: replace <code>~/Downloads</code> to match with the full path where you downloadedGRBL.
*Compile GRBL. In the grbl-master director, type: <code>make</code>. GRBL should compile.
*Upload GRBL to the arduino. From the grbl-master directory, run: **<code>$AVRPATH/bin/avrdude -C$AVRPATH/etc/avrdude.conf -pm328p -carduino -P$DEVPATH -D -Uflash:w:$GRBLHEX</code>
adapted from here: https://github.com/grbl/grbl/wiki/Flashing-Grbl-to-an-Arduino