Project

General

Profile

Support #778

Updated by Daniel Curtis almost 9 years ago

This is a guide on how I compiled and flashed GRBL on an Arduino UNO using Arch Linux. 

 h2. Prepare the Environment 

 * Make sure the system is up to date: 
 <pre> 
 sudo pacman -Syu 
 </pre> 

 * Install a few dependencies: 
 <pre> 
 sudo pacman -S base-devel git avr-gcc 
 </pre> 

 * Install the arduino package from the AUR: 
 <pre> 
 yaourt -S arduino 
 </pre> 

 h2. Compile GRBL 

 * Download the latest GRBL source code from GitHub: 
 <pre> 
 git clone https://github.com/grbl/grbl 
 cd grbl 
 </pre> 

 * Compile GRBL: 
 <pre> 
 make clean 
 make grbl.hex 
 </pre> 

 h2. Flash GRBL 

 * Flash the hex file using avrdude: 
 <pre> 
 avrdude -C/etc/avrdude.conf -C\etc\avrdude.conf -pm328p -carduino -P/dev/ttyACM0 -P\dev\ttyACM0 -D -Uflash:w:grbl.hex 
 </pre> 

 h2. Resource 

 * https://github.com/grbl/grbl 
 * https://github.com/grbl/grbl/wiki/Compiling-Grbl 
 * https://github.com/grbl/grbl/wiki/Flashing-Grbl-to-an-Arduino

Back