GRBL won't compile/upload

Hi there, I'm trying to install GRBL (I'm prototyping a CNC mill)

I followed step by step this tutorial: https://arduinoboardproject.com/en/how-to-install-grbl-on-arduino-uno-with-the-arduino-ide-software/ and I end with a bunch of errors when compiling (upload eventually abort with errors.)

I followed the folowing steps:

  • Download & extract GRBL from GITHub
  • Open Aduino IDE
  • Add GRBL following: Sketch, Include Library, Add .ZIP Library, then browse to …\grbl-1.1h.20190825\grbl-1.1h.20190825 , select grbl folder and click Open
  • Aduino IDE prompts "Library added to your libraries. Check "Include library" menu

I can now see my library under Contributed Libraries in the "Include Library" menu.

  • Restarded Arduino
  • Clicked on File, Open then browsed to "…\Documents\Arduino\libraries\grbl\examples\grblUpload" select grblUpload.ino and click Open

A new IDE window pops, I click Compile and then I have the following errors:

If I click Upload, the upload starts, RX/TX LED lit for a short while, and after 2 - 3 min I have the "An error occured while uploading the sktech" message. The console returns the following: Upload_NOK_grbl-1.1h.20190825 - Pastebin.com

I tried with GRBL1.1f, e & initial release It always ends with the same problem (to be honest I didn't saved and compared the Arduino console errors prompts for each version, I can do that and upload if necessary)

The Arduino board should work OK, I tested it with succes with the "Blink" example.

Set up:

Arduino IDE: 1.8.12

Tested with:
GRBL:
v1.1h.20190825: Release v1.1h (2019-08-25) Release · gnea/grbl · GitHub
v1.1f.20170801: Release v1.1f (2017-08-01) Release · gnea/grbl · GitHub
v1.1e.20170114: Release v1.1e Release · gnea/grbl · GitHub
Master Release: [v1.1e.20161208: Release Initial v1.1 master release! · gnea/grbl · GitHub](http://v1.1e.20161208: Release Initial v1.1 master release! · gnea/grbl · GitHub)

Official Aduino Board:
BN: Arduino Uno
VID: 0x2341
PID: 0x0001
SN: 6493534323335131F1C2

PC info:
Up to date Windows 10 Pro
Intel i7

Those messages are all warnings and don't prevent the code from compiling or uploading. Did you try the results to see if they worked?

I can live with warnings :wink: but this error message from IDE leads me to think that there is an error during upload. Maybe I'm wrong.

Error log: Upload_ErrorLog_grbl-1.1h.20190825 - Pastebin.com
Line 60 report an error during the upload.

Anyway, to answer to your question, Universal GCode Sender can connect to the Arduino board but return a "no firmware" error message.

I the meantime:
I crossed-check the computer (other Win10 pro PC)
I crossed-check as well with a non-admin version of Arduino IDE

I think we need more details on the upload. Go into Preferences and turn on "Show verbose output during upload". Then show the part of the log after:

Sketch uses 29762 bytes (92%) of program storage space. Maximum is 32256 bytes.
Global variables use 1633 bytes (79%) of dynamic memory, leaving 415 bytes for local variables. Maximum is 2048 bytes.

This "verbose" stuff is a nice feature (sorry, I'm a 3 hours newbie to Arduino)

Console output: Verbose_Output_Upload_NOK_grbl-1.1h.20190825 - Pastebin.com

The Programmer selected is AVRISP MkII

I uninstall the IDE, try an older version 1.6.x with the same problems.
I reinstall 1.8.12 but this time, using the "Windows store".

I do not have warnings during the compiling any more.

I still have the upload problem

As far as i can see within those 'links' (please just post the error codes within </> code-tags here, you will get more support) there are just 3 redefinition 'warnings' (probably re-defined to the same thing again anyhow) but no compile errors. During upload something doesn't work properly. Since you are using an Uno, do you have anything connected to pin 0 & 1 during upload ?

avrdude: writing flash (29762 bytes):

Writing | ################################################avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding

It looks like the upload process is just crashing toward the end.
Maybe it's time to burn a fresh bootloader.

Deva_Rishi:
As far as i can see within those 'links' (please just post the error codes within </> code-tags here, you will get more support) there are just 3 redefinition 'warnings' (probably re-defined to the same thing again anyhow) but no compile errors. During upload something doesn't work properly. Since you are using an Uno, do you have anything connected to pin 0 & 1 during upload ?

  • Sorry for the "links" this is just regular Pastebin. Quite convenient to not overload forum messages with code. Since I'm new to this forum + I didn't saw interdiction in the Forum's rules I did as usual when I post. I will adjust for my next posts.

  • nothing connected to pin 0 & 1. Nothing (but the USB) connected actually

johnwasser:
Maybe it's time to burn a fresh bootloader.

Hum, I quiclky checked about bootloader.
It seems that is more IC related than sketch related.

Can be bootloader OK for some sketch (the Blink sketch works with no problem) and be NOK for GRBL ?

Can be bootloader OK for some sketch (the Blink sketch works with no problem) and be NOK for GRBL ?

dunno, burn it again and see what that does.