avrdude problem with butterfly [solved]

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I used to be able to do this now I'm missing something simple I'm sure.

I send the command-line:

avrdude -p m169 -c butterfly -P com7 -b 19200 -F -U flash:w:\Users\owner\Documents\Joe Code\Butterfly Test\Messenger\default\Messenger.hex -v

And I get:

Started function.  Please stand by..

avrdude.exe: Version 5.6, compiled on Mar  5 2009 at 09:59:30
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

             System wide configuration file is "C:\Users\owner\Documents\Joe Code\AVRUP V1\bin\Debug\avrdude.conf"

             Using Port                    : com7
             Using Programmer              : butterfly
             avr910_devcode (avrdude.conf) : 0x78
             Overriding Baud Rate          : 19200
             AVR Part                      : ATMEGA169
             Chip Erase delay              : 9000 us
             PAGEL                         : P00
             BS2                           : P00
             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        512    4      0  9000  9000 0xff 0xff
               flash         65     6   128    0 yes     16384  128    128  4500  4500 0xff 0xff
               lfuse          0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
               hfuse          0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
               efuse          0     0     0    0 no          1    0      0     0     0 0x00 0x00
               lock           0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
               signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
               calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00

             Programmer Type : avr910
             Description     : Atmel Butterfly Development Board

Connecting to programmer: .
Found programmer: Id = "ˆÿ""; type = ?
    Software Version = D.avrdude.exe: error: buffered memory access not supported. Maybe it isn't
a butterfly/AVR109 but a AVR910 device?

So am I missing something simple? I've tried avr910, avrisp, and stk500 with similar results.

[edit]
This worked:

avrdude -p m169 -c butterfly -P com7 -b 19200 -F -U flash:w:\Butterfly_Test\Messenger\default\Messenger.hex -v 

I suspect that it had something to do with the spaces in the path directory names.
[/edit]

Smiley

Last Edited: Sun. Nov 8, 2009 - 03:55 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

avr109 works, but so does butterfly.

Something goes wrong obviously when it gets to "Found programmer:". I get something like that if I wait too long (maybe 10 seconds) before pressing down on the joystick.

Actually that surprises me. I remember in previous years seeing avrdude put out a string of dots while waiting for the key press. Now after about 10 seconds, it seems to grow impatient, go to the next line, and give the error message.

Here's what I get when I press the joystick in a timely fashion. My butterfly is not stock, so I specify the mega329 and the bootloader has been tweaked for the different memory size and location.

 avrdude -p atmega329 -P com1 -c butterfly -F -U flash:w:system.hex -v
avrdude.exe: Version 5.6, compiled on Mar  5 2009 at 09:59:30
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

             System wide configuration file is "f:\WinAVR\bin\avrdude.conf"

             Using Port                    : com1
             Using Programmer              : butterfly
             avr910_devcode (avrdude.conf) : 0x75
             AVR Part                      : ATMEGA329
             Chip Erase delay              : 9000 us
             PAGEL                         : P00
             BS2                           : P00
             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     8    0 no       1024    4      0  9000  9000 0xff 0xff
               flash         65     6   256    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
               signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
               calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00

             Programmer Type : avr910
             Description     : Atmel Butterfly Development Board

Connecting to programmer: ..
Found programmer: Id = "AVRBOOT"; type = S
    Software Version = 0.2; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.

Programmer supports the following devices:
    Device code: 0x75

avrdude.exe: devcode selected: 0x75
avrdude.exe: AVR device initialized and ready to accept instructions

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

avrdude.exe: Device signature = 0x1e950b
avrdude.exe: Expected signature for ATMEGA329 is 1E 95 03
avrdude.exe: safemode: Fuse reading not support by programmer.
              Safemode disabled.
avrdude.exe: NOTE: FLASH memory has been specified, an erase cycle will be performed
             To disable this feature, specify the -D option.
avrdude.exe: erasing chip
avrdude.exe: reading input file "system.hex"
avrdude.exe: input file system.hex auto detected as Intel Hex
avrdude.exe: writing flash (23964 bytes):

Writing | ################################################## | 100% 14.59s

avrdude.exe: 23964 bytes of flash written
avrdude.exe: verifying flash memory against system.hex:
avrdude.exe: load data flash data from input file system.hex:
avrdude.exe: input file system.hex auto detected as Intel Hex
avrdude.exe: input file system.hex contains 23964 bytes
avrdude.exe: reading on-chip flash data:

Reading | ################################################## | 100% 13.60s

avrdude.exe: verifying ...
avrdude.exe: 23964 bytes of flash verified

avrdude.exe done.  Thank you.