5,710
edits
Changes
GRBL
,→To flash GRBL to Arduino from Terminal
== To flash GRBL to Arduino from Terminal ==
*Download GRBL : https://github.com/grbl/grbl/archive/master.zip*unzip grbl-master*In the Terminal, set the following environment variabls: **<code>export AVRPATH=/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr</code>**<code>export DEVPATH=/dev/tty.usbmodem1411</code>**<code>export GRBLHEX=grbl.hex</code>*Change to the grbl directory: <code>cd ~/PATH_TO_DOWNLOAD/grbl-master</code>*Compile GRBL**From grbl 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
== GRBL pinout ==