Loading Grbl on Arduino Mega2560

(You must add the paths the the executable's like make.exe and avrdude.exe to windows environment variables. Right click my computer on the start menu and click Properties. Go to the Advanced tab and on the bottom there will be a button that says environment variables. Under system variables there will be a Variable with the name "Path". Click edit and add the paths to the executable's eg,

C:\arduino-00xx\hardware\tools\avr\bin;

C:\arduino-00xx\hardware\tools\avr\avr\bin;

C:\arduino-00xx\hardware\tools\avr\utils\bin

Do not erase your previous paths just add the new ones. Once this is done you can compile the source.)

Note: To recompile Grbl, make changes as necessary in the .c files and then repeat the “make clean” and “make grbl.hex” commands as seen in Step 5 above.