title: Arduino Leonardo - "avrdude: butterfly_recv(): programmer is not responding"
body: <p>I am having issues uploading new code to an Arduino Leonardo board. This happens after uploading previous buggy code (e.g., array out of range indexing error). Once I fixed the buggy code, I can upload it to another hardware unit, but not the same unit that previously had the buggy code.</p>
  <p>I am using <a href="http://wiki.microduinoinc.com/Microduino-Module_CoreUSB" rel="noreferrer">Microduino</a> and I have tried resetting the hardware (by connecting GND to RST pin), yet I still cannot upload the new code on it. How can I fix this?</p>
  <p>See the verbose output log below:</p>
  <pre><code>avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
           Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
           Copyright (c) 2007-2014 Joerg Wunsch
  
           System wide configuration file is &quot;C:\Program Files (x86)\Arduino IDE for Microduino\hardware\tools\avr/etc/avrdude.conf&quot;
  
           Using Port                    : COM5
           Using Programmer              : avr109
           Overriding Baud Rate          : 57600
           AVR Part                      : ATmega32U4
           Chip Erase delay              : 9000 us
           PAGEL                         : PD7
           BS2                           : PA0
           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  9000  9000 0x00 0x00
             flash         65     6   128    0 yes     32768  128    256  4500  4500 0x00 0x00
             lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
             hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
             efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
             lock           0     0     0    0 no          1    0      0  9000  9000 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 : butterfly
           Description     : Atmel AppNote AVR109 Boot Loader
  
  Connecting to programmer: .
  avrdude: butterfly_recv(): programmer is not responding
  avrdude: ser_send(): write error: sorry no info avail
  avrdude: butterfly_recv(): programmer is not responding
  </code></pre>