flashing arduino firmware (avrdude) fails due to Serial.print() statements


i have arduino sketch loaded prints string "blink" everytime led blinks.  when attempt flash new firmware arduino using 1.5.7 ide on usb, error contains of print statement replies avrdude.  possible sort of reset not happening correctly on arduino chip? 

avrdude: version 6.0.1, compiled on apr  3 2014 @ 22:00:33
         copyright (c) 2000-2005 brian dean, http://www.bdmicro.com/
         copyright (c) 2007-2009 joerg wunsch

         system wide configuration file "/applications/arduino.app/contents/resources/java/hardware/tools/avr/etc/avrdude.conf"
         user configuration file "/users/topaz/.avrduderc"
         user configuration file not exist or not regular file, skipping

         using port                    : /dev/tty.usbmodem1d21
         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
                                  block poll               page                       polled
           memory type mode delay size  indx paged  size   size #pages minw  maxw   readback
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0x00 0x00
                                  block poll               page                       polled
           memory type mode delay size  indx paged  size   size #pages minw  maxw   readback
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  block poll               page                       polled
           memory type mode delay size  indx paged  size   size #pages minw  maxw   readback
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  block poll               page                       polled
           memory type mode delay size  indx paged  size   size #pages minw  maxw   readback
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  block poll               page                       polled
           memory type mode delay size  indx paged  size   size #pages minw  maxw   readback
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  block poll               page                       polled
           memory type mode delay size  indx paged  size   size #pages minw  maxw   readback
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                  block poll               page                       polled
           memory type mode delay size  indx paged  size   size #pages minw  maxw   readback
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         programmer type : butterfly
         description     : atmel appnote avr109 boot loader

connecting programmer: .avrdude: send: . [1b]
avrdude: send: s [53]
avrdude: recv: b [62]

avrdude: recv: l [6c] [69] n [6e] k [6b] . [0d] . [0a]
avrdude: send: v [56]
avrdude: recv: b [62] l [6c]
avrdude: send: v [76]
avrdude: recv: [69]
avrdude: recv: n [6e]
avrdude: send: p [70]
avrdude: recv: k [6b]
found programmer: id = "blink
"; type = k
    software version = b.l; hardware version = i.n
avrdude: send: [61]
avrdude: recv: . [0d]
avrdude: send: b [62]
avrdude: recv: . [0a]
avrdude: error: buffered memory access not supported. maybe isn't
a butterfly/avr109 avr910 device?

yes, possible.
the dtr pin connected via 100nf reset.

there possibility:
suppose have uploaded sketch without bootloader, , send far many data serial port. cause it.
perhaps if have normal bootloader, , start spit out serial data, might bully avrdude.

what can do:
don't use avrdude command line, might have overlooked option. use arduino ide.
open serial monitor few times, cause reset ? if not, check hardware.
you can try press reset yourself, , try find soft spot avrdude connecting after reset.
if reset hardware okay, , nothing seems possible. try programmer via icsp header , re-write bootloader.

after writing post, noticed yun. wrote above uno.


Arduino Forum > Products > Arduino Yún (Moderator: fabioc84) > flashing arduino firmware (avrdude) fails due to Serial.print() statements


arduino

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support