[SOLVED] Error flashing GRBL to Arduino Uno R2

I have two Arduinos, one is a genuine Arduino Uno R2. The Other is an Elegoo Uno R3. I'm unable to flash Grbl on the genuino Arduino, but I can flash it on the knock-off. I thought it might be the port/board/programmer/cable, but I can successfully flash the Blink sketch to the genuine Uno without issue.

When I try to flash Grbl on the Genuine Arduino, I see the following output:

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.
Low memory available, stability problems may occur.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM4 -b115200 -D -Uflash:w:C:\Users\Dan\AppData\Local\Temp\arduino_build_438107/grblUpload.ino.hex:i 

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM4
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : Arduino
         Description     : Arduino
         Hardware Version: 3
         Firmware Version: 3.3
         Vtarget         : 0.3 V
         Varef           : 0.3 V
         Oscillator      : 28.800 kHz
         SCK period      : 3.3 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "C:\Users\Dan\AppData\Local\Temp\arduino_build_438107/grblUpload.ino.hex"
avrdude: writing flash (29762 bytes):

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

I just double checked the board and although it's a genuine Arduino Uno, it's an R2 and not an R3, I'm guessing that's why I'm able to flash the smaller programs and not GRBL itself.

I've updated the title and initial post to reflect the R2 board.

Isnt Uno R2 vs Uno R3 just SMD vs DIP package?
Same '328P die inside.

"avrdude: stk500_recv(): programmer is not responding"
Different USB/Serial chip? Or Bootloader not installed?

It looks like R2 has an ATMEGA8U2 chip and the R3 has ATMEGA16U2 onboard.

I CAN flash blink and other sketches to the R2, so I would think that everything else is hooked up correctly.

Interestingly, it looks like it should work on Arduino Uno R2

This post (Upgrade from 0.9 to 1.1, now not homing · Issue #126 · gnea/grbl · GitHub) seems to indicate that someone else has it working, but I can't seem to figure out why it stops flashing. Is it possible that some of the flash is bad?

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

Finally managed to solve it!

Using the instructions here (Installing an Arduino Bootloader - SparkFun Learn), I reflashed the bootloader. After doing that I was able to flash grbl

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.