YUN avrdude: error: buffered memory access not supported.

Hi, I'm new in this forum so first of all I want to say hello to all and apologize if I'll do any mistake in my post...
I've searched in google and in the forum but actually I cannot figure out the solution of my problem.

I've a YUN board and Win7 PC. The board worked fine since today. I was updating a bug fix version of the scketch that was already uploaded yesterday without any error (the difference was just a different initialization of a variable) and suddenly the arduino program told me this error:

Found programmer: Id = "BIL"; type =  
    Software Version = .; Hardware Version = .
avrdude: error: buffered memory access not supported. Maybe it isn't
a butterfly/AVR109 but a AVR910 device?
processing.app.debug.RunnerException
 at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:129)
 at processing.app.Sketch.upload(Sketch.java:1672)
 at processing.app.Sketch.exportApplet(Sketch.java:1578)
 at processing.app.Sketch.exportApplet(Sketch.java:1550)
 at processing.app.Editor$DefaultExportHandler.run(Editor.java:2399)
 at java.lang.Thread.run(Unknown Source)
Caused by: processing.app.debug.RunnerException: Problema di caricamento sulla scheda. Guarda http://www.arduino.cc/en/Guide/Troubleshooting#upload per suggerimenti
 at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:113)
 at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:127)
 ... 5 more

this is the output with more verbosity:

avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

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

         Using Port                    : COM13
         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    10     8    0 no       1024    8      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 to programmer: .avrdude: Send: . [1b] 
avrdude: Send: S [53] 
avrdude: Recv: 

avrdude: Recv: 
avrdude: Send: V [56] 
avrdude: Recv: 
avrdude: Send: v [76] 
avrdude: Recv: 
avrdude: Recv: 
avrdude: Send: p [70] 
avrdude: Recv: 
Found programmer: Id = "]ÿ("; type = º
    Software Version = E. ; Hardware Version = 8.
avrdude: Send: a [61] 
avrdude: Recv: 
avrdude: Send: b [62] 
avrdude: Recv: 
avrdude: error: buffered memory access not supported. Maybe it isn't
a butterfly/AVR109 but a AVR910 device?
processing.app.debug.RunnerException
 at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:129)
 at processing.app.Sketch.upload(Sketch.java:1672)
 at processing.app.Sketch.exportApplet(Sketch.java:1578)
 at processing.app.Sketch.exportApplet(Sketch.java:1550)
 at processing.app.Editor$DefaultExportHandler.run(Editor.java:2399)
 at java.lang.Thread.run(Unknown Source)
Caused by: processing.app.debug.RunnerException: Problema di caricamento sulla scheda. Guarda http://www.arduino.cc/en/Guide/Troubleshooting#upload per suggerimenti
 at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:113)
 at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:127)
 ... 5 more

I tried again changing cable, usb port, changing scketch with one of the simplest example (blink on pin13) leaving only the usb cable connected, but the result is always the same error. The board selected is Arduino Yun of course and the port is the only one the program shows me.

Is there anyone who can help me please?

Have you tried going back to the old (original) program? Before this error?

Connect the Yun to the same network of your Computer and program it through WiFi.

Select in the port menu of the IDE the IP port and then upload the sketch ( a blink ).

Ok guys, thanks for the answers. Sorry if I was not able to reply you soon.

@jessemonroy650. Yes... I tried the old version of my sketch and the error appears... then one of the examples (the "blink" one) and again the error appears...

@Angelo9999. Googling a lot I found the same solution you suggest me and it works. Every sketch I load (mine or an example) is working fine and at the moment I use this way as a workaround.

Anyway the problem is still present if I try to load something through USB connection and I cannot figure out how to fix it... I would like to be able again to load sketches from USB because at the moment I'm scared by the possibility that also the wifi loading way should stop working and the board should become useless...

Did you try to download again the IDE?

waudoglio:
::::SNIP::::

Anyway the problem is still present if I try to load something through USB connection and I cannot figure out how to fix it... I would like to be able again to load sketches from USB because at the moment I'm scared by the possibility that also the wifi loading way should stop working and the board should become useless...

Have you read this:

Resetting the processors (AR9331, WiFi, and 32U4)
http://arduino.cc/en/Guide/ArduinoYun#toc6

@jessemonroy650. Yes, I've reset many times using all the three ways (even if I know that Wifi part of the board cannot be the smoking gun... and I assume AR9331 should be excluded too). It didn't fix the problem.

@Angelo9999. Yes, I downloaded and installed the last version of the IDE... It didn't fix the problem.

waudoglio:
@jessemonroy650. Yes, I've reset many times using all the three ways (even if I know that Wifi part of the board cannot be the smoking gun... and I assume AR9331 should be excluded too). It didn't fix the problem.

@Angelo9999. Yes, I downloaded and installed the last version of the IDE... It didn't fix the problem.

Okay waudoglio,

The next thing to do is make sure the baud rate or serial port speed is set to 9600.
I believe this is the default speed on the Yun. Someone will correct me, if I am wrong.

Also, please let us know if you are still using Windows 7 or Windows 8. We have had
problems reported with Windows8, I don't know it they are fixed, but someone will
tell us.

I do not work with MS Windows. I have not since 2008ish, and then with Windows XP.

Jesse

Ok, baud rate or serial port speed is correctly set to 9600 and I'm working with Win7

waudoglio:
@Angelo9999. Yes, I downloaded and installed the last version of the IDE... It didn't fix the problem.

Did you download the installer version of the zip version? Unistall the current IDE you have and then try the zip version. If you have an Arduino folder inside your personal folder delete or rename it.

Sorry Angelo9999 if I can't work on this for many days.

Something strange has happened... Since when the YUN stop accepting the sketches from USB connection I updated, uninstall and install again IDE and drivers... and nothing changed... It continued to give errors during loading phase...

Yesterday I was updating the sketch through WiFi with the board connected to USB for power. Then I switched the port in the IdE from IP to COM7 in order to be able to read the serial monitor and debug the code. So having to update again the code I load it into the board... forgetting to change again the port to IP. I expected the error message BUT a bubble pop up for a second saying about a new hardware found (something about the bootloader) and all worked fine!!!

For me it is unbelievable. I really don't understand what has happened since the board was connected to that USB port since at least 30 minutes... but it seems that for the moment the problem is fixed.

Perhaps your bootloader got corrupted, which would affect programming via USB. When you upload a sketch over WiFi, it doesn't use the bootloader. Instead, it takes your sketch, combines it with a fresh bootloader image, and reprograms the entire processor: bootloader and sketch.

With the bootloader refreshed, it is now finally working properly, and the bootloader mode is being recognized.

Moral of the story: if the bootloader ever starts acting strange, upload a sketch via the network to reload the bootloader.