Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

avrdude and the butterfly...

avrdude and the butterfly...

2004-08-06 by Mike Murphree

Anyone using avrdude with the avr butterfly's bootloader?

It works with avrprog in Studio (4.09), but no luck yet with
avrdude. I've tried setting avrdude for: butterfly, stk500,
and avr910  but none of these seem to work.  I do have a
modified version of the gcc port of the original Atmel
butterfly code loaded, but as far as I know, the bootloader
hasn't been changed.

Thanks,
Mike

Re: avrdude and the butterfly...

2004-08-07 by Mike

--- In AVR-Chat@yahoogroups.com, Brian Dean <bsd@b...> wrote:
> On Fri, Aug 06, 2004 at 03:07:17PM -0500, Mike Murphree wrote:
> 
> > Anyone using avrdude with the avr butterfly's bootloader?
> > 
> > It works with avrprog in Studio (4.09), but no luck yet with
> > avrdude. I've tried setting avrdude for: butterfly, stk500,
> > and avr910  but none of these seem to work.  I do have a
> > modified version of the gcc port of the original Atmel
> > butterfly code loaded, but as far as I know, the bootloader
> > hasn't been changed.
> 
> What version of AVRDUDE are you using?

Hi Brian,

This is what it reports:

avrdude: Version 4.4.0
         Copyright (c) 2000-2004 Brian Dean, bsd@bsdhome.com

It was installed with the latest WinAVR package.

I've tried holding the joystick button in while running it,
but it doesn't seem to help.  Eventually it times out and
says it might be an AVR910 instead.


Thanks,
Mike

Re: [AVR-Chat] avrdude and the butterfly...

2004-08-07 by Brian Dean

On Fri, Aug 06, 2004 at 03:07:17PM -0500, Mike Murphree wrote:

> Anyone using avrdude with the avr butterfly's bootloader?
> 
> It works with avrprog in Studio (4.09), but no luck yet with
> avrdude. I've tried setting avrdude for: butterfly, stk500,
> and avr910  but none of these seem to work.  I do have a
> modified version of the gcc port of the original Atmel
> butterfly code loaded, but as far as I know, the bootloader
> hasn't been changed.

What version of AVRDUDE are you using?

-Brian
-- 
Brian Dean
http://www.bdmicro.com/

Re: [AVR-Chat] Re: avrdude and the butterfly...

2004-08-08 by Brian Dean

On Sat, Aug 07, 2004 at 03:47:42PM -0000, Mike wrote:

> This is what it reports:
> 
> avrdude: Version 4.4.0
>          Copyright (c) 2000-2004 Brian Dean, bsd@bsdhome.com
> 
> It was installed with the latest WinAVR package.

Try adding '-v -v -v -v' to the AVRDUDE command line to enable lots of
extra verbose output.  This should set the verbosity up to the level
where AVRDUDE reports each byte of the conversation with the
programmer.  With that, we should be able to see what is being sent
and received and perhaps diagnose where the communciations is breaking
down.

-Brian
-- 
Brian Dean
http://www.bdmicro.com/

Re: avrdude and the butterfly... [LONG]

2004-08-08 by Mike

--- In AVR-Chat@yahoogroups.com, Brian Dean <bsd@b...> wrote:
> On Sat, Aug 07, 2004 at 03:47:42PM -0000, Mike wrote:
> 
> > This is what it reports:
> > 
> > avrdude: Version 4.4.0
> >          Copyright (c) 2000-2004 Brian Dean, bsd@b...
> > 
> > It was installed with the latest WinAVR package.
> 
> Try adding '-v -v -v -v' to the AVRDUDE command line to enable lots 
of
> extra verbose output.  This should set the verbosity up to the level
> where AVRDUDE reports each byte of the conversation with the
> programmer.  With that, we should be able to see what is being sent
> and received and perhaps diagnose where the communciations is 
breaking
> down.

Okay, here you go:

avrdude -p atmega169 -P com1     -c butterfly  -v -v -v -v  -U 
flash:w:main.hex 

avrdude: Version 4.4.0
         Copyright (c) 2000-2004 Brian Dean, bsd@bsdhome.com

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

         Using Port            : com1
         Using Programmer      : butterfly
         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
         Memory Detail         :

                                     Page                       Polled
           Memory Type Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ------ ------ ---- ------ ----- ----- ---------
           eeprom      no        512    0     0  9000  9000 0xff 0xff
             Memory Ops:
               Oeration     Inst Bit  Bit Type  Bitno  Value
               -----------  --------  --------  -----  -----
               READ               31     VALUE      7      1
                                  30     VALUE      6      0
                                  29     VALUE      5      1
                                  28     VALUE      4      0
                                  27     VALUE      3      0
                                  26     VALUE      2      0
                                  25     VALUE      1      0
                                  24     VALUE      0      0
                                  23    IGNORE      7      0
                                  22    IGNORE      6      0
                                  21    IGNORE      5      0
                                  20    IGNORE      4      0
                                  19    IGNORE      3      0
                                  18    IGNORE      2      0
                                  17    IGNORE      1      0
                                  16   ADDRESS      8      0
                                  15   ADDRESS      7      0
                                  14   ADDRESS      6      0
                                  13   ADDRESS      5      0
                                  12   ADDRESS      4      0
                                  11   ADDRESS      3      0
                                  10   ADDRESS      2      0
                                   9   ADDRESS      1      0
                                   8   ADDRESS      0      0
                                   7    OUTPUT      7      0
                                   6    OUTPUT      6      0
                                   5    OUTPUT      5      0
                                   4    OUTPUT      4      0
                                   3    OUTPUT      3      0
                                   2    OUTPUT      2      0
                                   1    OUTPUT      1      0
                                   0    OUTPUT      0      0
               WRITE              31     VALUE      7      1
                                  30     VALUE      6      1
                                  29     VALUE      5      0
                                  28     VALUE      4      0
                                  27     VALUE      3      0
                                  26     VALUE      2      0
                                  25     VALUE      1      0
                                  24     VALUE      0      0
                                  23    IGNORE      7      0
                                  22    IGNORE      6      0
                                  21    IGNORE      5      0
                                  20    IGNORE      4      0
                                  19    IGNORE      3      0
                                  18    IGNORE      2      0
                                  17    IGNORE      1      0
                                  16   ADDRESS      8      0
                                  15   ADDRESS      7      0
                                  14   ADDRESS      6      0
                                  13   ADDRESS      5      0
                                  12   ADDRESS      4      0
                                  11   ADDRESS      3      0
                                  10   ADDRESS      2      0
                                   9   ADDRESS      1      0
                                   8   ADDRESS      0      0
                                   7     INPUT      7      0
                                   6     INPUT      6      0
                                   5     INPUT      5      0
                                   4     INPUT      4      0
                                   3     INPUT      3      0
                                   2     INPUT      2      0
                                   1     INPUT      1      0
                                   0     INPUT      0      0
                                     Page                       Polled
           Memory Type Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ------ ------ ---- ------ ----- ----- ---------
           flash       yes     16384  128   128  4500  4500 0xff 0xff
             Memory Ops:
               Oeration     Inst Bit  Bit Type  Bitno  Value
               -----------  --------  --------  -----  -----
               READ_LO            31     VALUE      7      0
                                  30     VALUE      6      0
                                  29     VALUE      5      1
                                  28     VALUE      4      0
                                  27     VALUE      3      0
                                  26     VALUE      2      0
                                  25     VALUE      1      0
                                  24     VALUE      0      0
                                  23    IGNORE      7      0
                                  22    IGNORE      6      0
                                  21    IGNORE      5      0
                                  20   ADDRESS     12      0
                                  19   ADDRESS     11      0
                                  18   ADDRESS     10      0
                                  17   ADDRESS      9      0
                                  16   ADDRESS      8      0
                                  15   ADDRESS      7      0
                                  14   ADDRESS      6      0
                                  13   ADDRESS      5      0
                                  12   ADDRESS      4      0
                                  11   ADDRESS      3      0
                                  10   ADDRESS      2      0
                                   9   ADDRESS      1      0
                                   8   ADDRESS      0      0
                                   7    OUTPUT      7      0
                                   6    OUTPUT      6      0
                                   5    OUTPUT      5      0
                                   4    OUTPUT      4      0
                                   3    OUTPUT      3      0
                                   2    OUTPUT      2      0
                                   1    OUTPUT      1      0
                                   0    OUTPUT      0      0
               READ_HI            31     VALUE      7      0
                                  30     VALUE      6      0
                                  29     VALUE      5      1
                                  28     VALUE      4      0
                                  27     VALUE      3      1
                                  26     VALUE      2      0
                                  25     VALUE      1      0
                                  24     VALUE      0      0
                                  23    IGNORE      7      0
                                  22    IGNORE      6      0
                                  21    IGNORE      5      0
                                  20   ADDRESS     12      0
                                  19   ADDRESS     11      0
                                  18   ADDRESS     10      0
                                  17   ADDRESS      9      0
                                  16   ADDRESS      8      0
                                  15   ADDRESS      7      0
                                  14   ADDRESS      6      0
                                  13   ADDRESS      5      0
                                  12   ADDRESS      4      0
                                  11   ADDRESS      3      0
                                  10   ADDRESS      2      0
                                   9   ADDRESS      1      0
                                   8   ADDRESS      0      0
                                   7    OUTPUT      7      0
                                   6    OUTPUT      6      0
                                   5    OUTPUT      5      0
                                   4    OUTPUT      4      0
                                   3    OUTPUT      3      0
                                   2    OUTPUT      2      0
                                   1    OUTPUT      1      0
                                   0    OUTPUT      0      0
               LOADPAGE_LO        31     VALUE      7      0
                                  30     VALUE      6      1
                                  29     VALUE      5      0
                                  28     VALUE      4      0
                                  27     VALUE      3      0
                                  26     VALUE      2      0
                                  25     VALUE      1      0
                                  24     VALUE      0      0
                                  23    IGNORE      7      0
                                  22    IGNORE      6      0
                                  21    IGNORE      5      0
                                  20    IGNORE      4      0
                                  19    IGNORE      3      0
                                  18    IGNORE      2      0
                                  17    IGNORE      1      0
                                  16    IGNORE      0      0
                                  15    IGNORE      7      0
                                  14    IGNORE      6      0
                                  13   ADDRESS      5      0
                                  12   ADDRESS      4      0
                                  11   ADDRESS      3      0
                                  10   ADDRESS      2      0
                                   9   ADDRESS      1      0
                                   8   ADDRESS      0      0
                                   7     INPUT      7      0
                                   6     INPUT      6      0
                                   5     INPUT      5      0
                                   4     INPUT      4      0
                                   3     INPUT      3      0
                                   2     INPUT      2      0
                                   1     INPUT      1      0
                                   0     INPUT      0      0
               LOADPAGE_HI        31     VALUE      7      0
                                  30     VALUE      6      1
                                  29     VALUE      5      0
                                  28     VALUE      4      0
                                  27     VALUE      3      1
                                  26     VALUE      2      0
                                  25     VALUE      1      0
                                  24     VALUE      0      0
                                  23    IGNORE      7      0
                                  22    IGNORE      6      0
                                  21    IGNORE      5      0
                                  20    IGNORE      4      0
                                  19    IGNORE      3      0
                                  18    IGNORE      2      0
                                  17    IGNORE      1      0
                                  16    IGNORE      0      0
                                  15    IGNORE      7      0
                                  14    IGNORE      6      0
                                  13   ADDRESS      5      0
                                  12   ADDRESS      4      0
                                  11   ADDRESS      3      0
                                  10   ADDRESS      2      0
                                   9   ADDRESS      1      0
                                   8   ADDRESS      0      0
                                   7     INPUT      7      0
                                   6     INPUT      6      0
                                   5     INPUT      5      0
                                   4     INPUT      4      0
                                   3     INPUT      3      0
                                   2     INPUT      2      0
                                   1     INPUT      1      0
                                   0     INPUT      0      0
               WRITEPAGE          31     VALUE      7      0
                                  30     VALUE      6      1
                                  29     VALUE      5      0
                                  28     VALUE      4      0
                                  27     VALUE      3      1
                                  26     VALUE      2      1
                                  25     VALUE      1      0
                                  24     VALUE      0      0
                                  23    IGNORE      7      0
                                  22    IGNORE      6      0
                                  21    IGNORE      5      0
                                  20   ADDRESS     12      0
                                  19   ADDRESS     11      0
                                  18   ADDRESS     10      0
                                  17   ADDRESS      9      0
                                  16   ADDRESS      8      0
                                  15   ADDRESS      7      0
                                  14   ADDRESS      6      0
                                  13    IGNORE      5      0
                                  12    IGNORE      4      0
                                  11    IGNORE      3      0
                                  10    IGNORE      2      0
                                   9    IGNORE      1      0
                                   8    IGNORE      0      0
                                   7    IGNORE      7      0
                                   6    IGNORE      6      0
                                   5    IGNORE      5      0
                                   4    IGNORE      4      0
                                   3    IGNORE      3      0
                                   2    IGNORE      2      0
                                   1    IGNORE      1      0
                                   0    IGNORE      0      0
                                     Page                       Polled
           Memory Type Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ------ ------ ---- ------ ----- ----- ---------
           lfuse       no          1    0     0  2000  2000 0x00 0x00
             Memory Ops:
               Oeration     Inst Bit  Bit Type  Bitno  Value
               -----------  --------  --------  -----  -----
               READ               31     VALUE      7      0
                                  30     VALUE      6      1
                                  29     VALUE      5      0
                                  28     VALUE      4      1
                                  27     VALUE      3      0
                                  26     VALUE      2      0
                                  25     VALUE      1      0
                                  24     VALUE      0      0
                                  23     VALUE      7      0
                                  22     VALUE      6      0
                                  21     VALUE      5      0
                                  20     VALUE      4      0
                                  19     VALUE      3      0
                                  18     VALUE      2      0
                                  17     VALUE      1      0
                                  16     VALUE      0      0
                                  15    IGNORE      7      0
                                  14    IGNORE      6      0
                                  13    IGNORE      5      0
                                  12    IGNORE      4      0
                                  11    IGNORE      3      0
                                  10    IGNORE      2      0
                                   9    IGNORE      1      0
                                   8    IGNORE      0      0
                                   7    OUTPUT      7      0
                                   6    OUTPUT      6      0
                                   5    OUTPUT      5      0
                                   4    OUTPUT      4      0
                                   3    OUTPUT      3      0
                                   2    OUTPUT      2      0
                                   1    OUTPUT      1      0
                                   0    OUTPUT      0      0
               WRITE              31     VALUE      7      1
                                  30     VALUE      6      0
                                  29     VALUE      5      1
                                  28     VALUE      4      0
                                  27     VALUE      3      1
                                  26     VALUE      2      1
                                  25     VALUE      1      0
                                  24     VALUE      0      0
                                  23     VALUE      7      1
                                  22     VALUE      6      0
                                  21     VALUE      5      1
                                  20     VALUE      4      0
                                  19     VALUE      3      0
                                  18     VALUE      2      0
                                  17     VALUE      1      0
                                  16     VALUE      0      0
                                  15    IGNORE      7      0
                                  14    IGNORE      6      0
                                  13    IGNORE      5      0
                                  12    IGNORE      4      0
                                  11    IGNORE      3      0
                                  10    IGNORE      2      0
                                   9    IGNORE      1      0
                                   8    IGNORE      0      0
                                   7     INPUT      7      0
                                   6     INPUT      6      0
                                   5     INPUT      5      0
                                   4     INPUT      4      0
                                   3     INPUT      3      0
                                   2     INPUT      2      0
                                   1     INPUT      1      0
                                   0     INPUT      0      0
                                     Page                       Polled
           Memory Type Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ------ ------ ---- ------ ----- ----- ---------
           hfuse       no          1    0     0  2000  2000 0x00 0x00
             Memory Ops:
               Oeration     Inst Bit  Bit Type  Bitno  Value
               -----------  --------  --------  -----  -----
               READ               31     VALUE      7      0
                                  30     VALUE      6      1
                                  29     VALUE      5      0
                                  28     VALUE      4      1
                                  27     VALUE      3      1
                                  26     VALUE      2      0
                                  25     VALUE      1      0
                                  24     VALUE      0      0
                                  23     VALUE      7      0
                                  22     VALUE      6      0
                                  21     VALUE      5      0
                                  20     VALUE      4      0
                                  19     VALUE      3      1
                                  18     VALUE      2      0
                                  17     VALUE      1      0
                                  16     VALUE      0      0
                                  15    IGNORE      7      0
                                  14    IGNORE      6      0
                                  13    IGNORE      5      0
                                  12    IGNORE      4      0
                                  11    IGNORE      3      0
                                  10    IGNORE      2      0
                                   9    IGNORE      1      0
                                   8    IGNORE      0      0
                                   7    OUTPUT      7      0
                                   6    OUTPUT      6      0
                                   5    OUTPUT      5      0
                                   4    OUTPUT      4      0
                                   3    OUTPUT      3      0
                                   2    OUTPUT      2      0
                                   1    OUTPUT      1      0
                                   0    OUTPUT      0      0
               WRITE              31     VALUE      7      1
                                  30     VALUE      6      0
                                  29     VALUE      5      1
                                  28     VALUE      4      0
                                  27     VALUE      3      1
                                  26     VALUE      2      1
                                  25     VALUE      1      0
                                  24     VALUE      0      0
                                  23     VALUE      7      1
                                  22     VALUE      6      0
                                  21     VALUE      5      1
                                  20     VALUE      4      0
                                  19     VALUE      3      1
                                  18     VALUE      2      0
                                  17     VALUE      1      0
                                  16     VALUE      0      0
                                  15    IGNORE      7      0
                                  14    IGNORE      6      0
                                  13    IGNORE      5      0
                                  12    IGNORE      4      0
                                  11    IGNORE      3      0
                                  10    IGNORE      2      0
                                   9    IGNORE      1      0
                                   8    IGNORE      0      0
                                   7     INPUT      7      0
                                   6     INPUT      6      0
                                   5     INPUT      5      0
                                   4     INPUT      4      0
                                   3     INPUT      3      0
                                   2     INPUT      2      0
                                   1     INPUT      1      0
                                   0     INPUT      0      0
                                     Page                       Polled
           Memory Type Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ------ ------ ---- ------ ----- ----- ---------
           efuse       no          1    0     0     0     0 0x00 0x00
             Memory Ops:
               Oeration     Inst Bit  Bit Type  Bitno  Value
               -----------  --------  --------  -----  -----
               READ               31     VALUE      7      0
                                  30     VALUE      6      1
                                  29     VALUE      5      0
                                  28     VALUE      4      1
                                  27     VALUE      3      0
                                  26     VALUE      2      0
                                  25     VALUE      1      0
                                  24     VALUE      0      0
                                  23     VALUE      7      0
                                  22     VALUE      6      0
                                  21     VALUE      5      0
                                  20     VALUE      4      0
                                  19     VALUE      3      1
                                  18     VALUE      2      0
                                  17     VALUE      1      0
                                  16     VALUE      0      0
                                  15    IGNORE      7      0
                                  14    IGNORE      6      0
                                  13    IGNORE      5      0
                                  12    IGNORE      4      0
                                  11    IGNORE      3      0
                                  10    IGNORE      2      0
                                   9    IGNORE      1      0
                                   8    IGNORE      0      0
                                   7    OUTPUT      7      0
                                   6    OUTPUT      6      0
                                   5    OUTPUT      5      0
                                   4    OUTPUT      4      0
                                   3    OUTPUT      3      0
                                   2    OUTPUT      2      0
                                   1    OUTPUT      1      0
                                   0    OUTPUT      0      0
               WRITE              31     VALUE      7      1
                                  30     VALUE      6      0
                                  29     VALUE      5      1
                                  28     VALUE      4      0
                                  27     VALUE      3      1
                                  26     VALUE      2      1
                                  25     VALUE      1      0
                                  24     VALUE      0      0
                                  23     VALUE      7      1
                                  22     VALUE      6      0
                                  21     VALUE      5      1
                                  20     VALUE      4      0
                                  19     VALUE      3      0
                                  18     VALUE      2      1
                                  17     VALUE      1      0
                                  16     VALUE      0      0
                                  15    IGNORE      7      0
                                  14    IGNORE      6      0
                                  13    IGNORE      5      0
                                  12    IGNORE      4      0
                                  11    IGNORE      3      0
                                  10    IGNORE      2      0
                                   9    IGNORE      1      0
                                   8    IGNORE      0      0
                                   7    IGNORE      7      0
                                   6    IGNORE      6      0
                                   5    IGNORE      5      0
                                   4    IGNORE      4      0
                                   3     INPUT      3      0
                                   2     INPUT      2      0
                                   1     INPUT      1      0
                                   0    IGNORE      0      0
                                     Page                       Polled
           Memory Type Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ------ ------ ---- ------ ----- ----- ---------
           lock        no          1    0     0  2000  2000 0x00 0x00
             Memory Ops:
               Oeration     Inst Bit  Bit Type  Bitno  Value
               -----------  --------  --------  -----  -----
               READ               31     VALUE      7      0
                                  30     VALUE      6      1
                                  29     VALUE      5      0
                                  28     VALUE      4      1
                                  27     VALUE      3      1
                                  26     VALUE      2      0
                                  25     VALUE      1      0
                                  24     VALUE      0      0
                                  23     VALUE      7      0
                                  22     VALUE      6      0
                                  21     VALUE      5      0
                                  20     VALUE      4      0
                                  19     VALUE      3      0
                                  18     VALUE      2      0
                                  17     VALUE      1      0
                                  16     VALUE      0      0
                                  15    IGNORE      7      0
                                  14    IGNORE      6      0
                                  13    IGNORE      5      0
                                  12    IGNORE      4      0
                                  11    IGNORE      3      0
                                  10    IGNORE      2      0
                                   9    IGNORE      1      0
                                   8    IGNORE      0      0
                                   7    IGNORE      7      0
                                   6    IGNORE      6      0
                                   5    OUTPUT      5      0
                                   4    OUTPUT      4      0
                                   3    OUTPUT      3      0
                                   2    OUTPUT      2      0
                                   1    OUTPUT      1      0
                                   0    OUTPUT      0      0
               WRITE              31     VALUE      7      1
                                  30     VALUE      6      0
                                  29     VALUE      5      1
                                  28     VALUE      4      0
                                  27     VALUE      3      1
                                  26     VALUE      2      1
                                  25     VALUE      1      0
                                  24     VALUE      0      0
                                  23     VALUE      7      1
                                  22     VALUE      6      1
                                  21     VALUE      5      1
                                  20    IGNORE      4      0
                                  19    IGNORE      3      0
                                  18    IGNORE      2      0
                                  17    IGNORE      1      0
                                  16    IGNORE      0      0
                                  15    IGNORE      7      0
                                  14    IGNORE      6      0
                                  13    IGNORE      5      0
                                  12    IGNORE      4      0
                                  11    IGNORE      3      0
                                  10    IGNORE      2      0
                                   9    IGNORE      1      0
                                   8    IGNORE      0      0
                                   7     VALUE      7      1
                                   6     VALUE      6      1
                                   5     INPUT      5      0
                                   4     INPUT      4      0
                                   3     INPUT      3      0
                                   2     INPUT      2      0
                                   1     INPUT      1      0
                                   0     INPUT      0      0
                                     Page                       Polled
           Memory Type Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ------ ------ ---- ------ ----- ----- ---------
           signature   no          3    0     0     0     0 0x00 0x00
             Memory Ops:
               Oeration     Inst Bit  Bit Type  Bitno  Value
               -----------  --------  --------  -----  -----
               READ               31     VALUE      7      0
                                  30     VALUE      6      0
                                  29     VALUE      5      1
                                  28     VALUE      4      1
                                  27     VALUE      3      0
                                  26     VALUE      2      0
                                  25     VALUE      1      0
                                  24     VALUE      0      0
                                  23     VALUE      7      0
                                  22     VALUE      6      0
                                  21     VALUE      5      0
                                  20    IGNORE      4      0
                                  19    IGNORE      3      0
                                  18    IGNORE      2      0
                                  17    IGNORE      1      0
                                  16    IGNORE      0      0
                                  15    IGNORE      7      0
                                  14    IGNORE      6      0
                                  13    IGNORE      5      0
                                  12    IGNORE      4      0
                                  11    IGNORE      3      0
                                  10    IGNORE      2      0
                                   9   ADDRESS      1      0
                                   8   ADDRESS      0      0
                                   7    OUTPUT      7      0
                                   6    OUTPUT      6      0
                                   5    OUTPUT      5      0
                                   4    OUTPUT      4      0
                                   3    OUTPUT      3      0
                                   2    OUTPUT      2      0
                                   1    OUTPUT      1      0
                                   0    OUTPUT      0      0
                                     Page                       Polled
           Memory Type Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ------ ------ ---- ------ ----- ----- ---------
           calibration no          1    0     0     0     0 0x00 0x00
             Memory Ops:
               Oeration     Inst Bit  Bit Type  Bitno  Value
               -----------  --------  --------  -----  -----
               READ               31     VALUE      7      0
                                  30     VALUE      6      0
                                  29     VALUE      5      1
                                  28     VALUE      4      1
                                  27     VALUE      3      1
                                  26     VALUE      2      0
                                  25     VALUE      1      0
                                  24     VALUE      0      0
                                  23     VALUE      7      0
                                  22     VALUE      6      0
                                  21     VALUE      5      0
                                  20    IGNORE      4      0
                                  19    IGNORE      3      0
                                  18    IGNORE      2      0
                                  17    IGNORE      1      0
                                  16    IGNORE      0      0
                                  15     VALUE      7      0
                                  14     VALUE      6      0
                                  13     VALUE      5      0
                                  12     VALUE      4      0
                                  11     VALUE      3      0
                                  10     VALUE      2      0
                                   9     VALUE      1      0
                                   8     VALUE      0      0
                                   7    OUTPUT      7      0
                                   6    OUTPUT      6      0
                                   5    OUTPUT      5      0
                                   4    OUTPUT      4      0
                                   3    OUTPUT      3      0
                                   2    OUTPUT      2      0
                                   1    OUTPUT      1      0
                                   0    OUTPUT      0      0

         Programmer Type : avr910
         Description     : Atmel Butterfly Development Board

avrdude: Send: . [1b] . [1b] . [1b] . [1b] 
avrdude: Send: S [53] 
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 = A.; Hardware Version = 0.þ
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 but a AVR910 device?


I'm going to try JTAG mode as soon as I get some headers
to fit the board.  From what I've been able to find out,
I need to add this section for my Xilinx cable to the 
config file:

programmer
  id    = "xilinx";
  desc  = "Xilinx Parallel JTAG Cable";
  type  = par;
  sck   = 3;
  mosi  = 2;
  miso  = 13;
  reset = 4;
;


Thanks,
Mike

Re: [AVR-Chat] Re: avrdude and the butterfly... [LONG]

2004-08-09 by Brian Dean

On Mon, Aug 09, 2004 at 01:46:10AM -0000, Mike wrote:

> Okay, here you go:
> 
> avrdude -p atmega169 -P com1     -c butterfly  -v -v -v -v  -U
> flash:w:main.hex
> 
> avrdude: Version 4.4.0
>          Copyright (c) 2000-2004 Brian Dean, bsd@bsdhome.com
> 
>          System wide configuration file
> is "C:\WinAVR\bin\avrdude.conf"
> 
>          Using Port            : com1
>          Using Programmer      : butterfly
>          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
>          Memory Detail         :

[ snip ]

>          Programmer Type : avr910
>          Description     : Atmel Butterfly Development Board
> 
> avrdude: Send: . [1b] . [1b] . [1b] . [1b]
> avrdude: Send: S [53]
> 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 = A.; Hardware Version = 0.�
> 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 but a AVR910 device?

This is very strange.  Normally, if the programmer is not responding
at all, you'll see the error message:

   avrdude: serial_recv(): programmer is not responding

This happens if a timeout occurs while waiting for a response from the
programmer (butterfly in this case).  However, if results are
received, each "avrdude: Recv:" line above would display each byte
that was received.  But there are none.  And I don't see a code-path
such that it would not print out the received bytes, nor display an
error message.

Whoa - wait a minute.  A different serial port module is used on the
Windows platform and uses the native Windows calls, there there might
be something funny going on.  I was looking at the Mac/Unix posix
serial port code when I made my statement above.

Looking at the Windows-specific code, it appears that a call to the
native Windows routine to read the data from the COM port is returning
without producing an error message, but not returning the data either.
I'm not at all familiar with native Windows APIs so I'm going to have
to defer you to the AVRDUDE mailing list on this one
(avrdude-dev@nongnu.org).  Several of the AVRDUDE contributers support
the Windows version and they should be able to help figure this out.

If you have a Unix box (MacOS X, FreeBSD, or Linux) that you can try
it out on, that would be most useful, as that would narrow the problem
down to either Window's-only, or something that affects all our
platforms.  If you have a FreeBSD box, you should be able to build the
port easily (cd /usr/ports/devel/avrdude && make install).  Building
on Linux is not quite as easy, but just download the tar file from the
project area on Savannah, extract it, type 'configure && make
install'.  If you have a MacOS X box, it builds similar to that on
Linux, but if you need a MacOS X binary, I can send you one pre-built
if that helps (I use a MacOS X).

-Brian
-- 
Brian Dean
http://www.bdmicro.com/

Re: [AVR-Chat] Re: avrdude and the butterfly... [LONG]

2004-08-09 by Mike Murphree

On Aug 8, 2004, at 10:10 PM, Brian Dean wrote:
>
> This is very strange.  Normally, if the programmer is not responding
> at all, you'll see the error message:
>
>    avrdude: serial_recv(): programmer is not responding
>
> This happens if a timeout occurs while waiting for a response from the
> programmer (butterfly in this case).  However, if results are
> received, each "avrdude: Recv:" line above would display each byte
> that was received.  But there are none.  And I don't see a code-path
> such that it would not print out the received bytes, nor display an
> error message.

I noticed that, but wondered why it seemed to keep going as well...

>
> Whoa - wait a minute.  A different serial port module is used on the
> Windows platform and uses the native Windows calls, there there might
> be something funny going on.  I was looking at the Mac/Unix posix
> serial port code when I made my statement above.
>
> Looking at the Windows-specific code, it appears that a call to the
> native Windows routine to read the data from the COM port is returning
> without producing an error message, but not returning the data either.
> I'm not at all familiar with native Windows APIs so I'm going to have
> to defer you to the AVRDUDE mailing list on this one
> (avrdude-dev@nongnu.org).  Several of the AVRDUDE contributers support
> the Windows version and they should be able to help figure this out.

Ok, I can try that.

>
> If you have a Unix box (MacOS X, FreeBSD, or Linux) that you can try
> it out on, that would be most useful, as that would narrow the problem
> down to either Window's-only, or something that affects all our
> platforms.  If you have a FreeBSD box, you should be able to build the
> port easily (cd /usr/ports/devel/avrdude && make install).  Building
> on Linux is not quite as easy, but just download the tar file from the
> project area on Savannah, extract it, type 'configure && make
> install'.  If you have a MacOS X box, it builds similar to that on
> Linux, but if you need a MacOS X binary, I can send you one pre-built
> if that helps (I use a MacOS X).

I don't have FreeBSD at the moment, I gave up that partition to backup 
my iTunes (15GB) library while I was switching to the PowerBook.  I do 
have Linux on the same computer as Windows is loaded and of course, Mac 
OS X on the PowerBook, so I can give that a try.  Mac OS X satisfies 
most of my FreeBSD needs (except for a single uniform ports system) 
these days.

Thanks,
Mike

Re: [AVR-Chat] Re: avrdude and the butterfly... [LONG]

2004-08-09 by Brian Dean

On Mon, Aug 09, 2004 at 04:03:38AM -0500, Mike Murphree wrote:

> I don't have FreeBSD at the moment, I gave up that partition to backup
> my iTunes (15GB) library while I was switching to the PowerBook.  I do
> have Linux on the same computer as Windows is loaded and of course, Mac
> OS X on the PowerBook, so I can give that a try.  Mac OS X satisfies
> most of my FreeBSD needs (except for a single uniform ports system)
> these days.

Yep - I migrated from FreeBSD as my desktop system when my wife bought
me a spiffy new G5.  While I loved my FreeBSD system, the Mac is
nothing short of superb.  All the great features of Unix and the great
GUI from Apple.

You should be able to pretty easily build GCC for the avr target
there.  Just grab the latest GCC (3.4.1?) and binutils.  Build
binutils first specifying the AVR target and install.  Then build GCC
specifying the same target.  Then grab a copy of avr-libc and build
that and install and you should be set.  It's been a while since I did
it but I seem to recall the process was painless and straightforward.
Just make sure you install the developer tools package that comes on
one of the CDs for your Powerbook.  That will install a version of GCC
for making native Mac binaries and all the usual header files.

You might want to first install a teTeX distribution so that you can
build all the documentation as well.  I used DarwinPorts for that
(http://darwinports.opendarwin.org/).  Note quite as nice as the
FreeBSD ports system but it provides a similar functionality and has
worked well for the software that I have installed.

Due to no serial ports on my G5, I am using a Keyspan USA-19HS USB
<-> RS232 converter that works great.  When you plug it in, it
generates a device entry like /dev/cu.USA19H2b22P1.1 and that's the
name you pass to AVRDUDE to use as the com port.

-Brian
-- 
Brian Dean
http://www.bdmicro.com/

Newby setup help

2004-10-31 by Jeffrey Engel

Folks,

I'm just getting started with AVRs and have a couple
of prototype boards and ICSP programmer dongles from
Olimex.

The software is Mandrake Linux and PonyProg.  I've
tried both the serial and parallel dongles and can't
seem to get them to communicate with the prototyping
board.

Any pointers?

Jeff Engel

=====
Happiness is - positive intake manifold pressure.


		
_______________________________
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now. 
http://messenger.yahoo.com

RE: [AVR-Chat] Newby setup help

2004-10-31 by Alex Shepherd

> The software is Mandrake Linux and PonyProg.  I've
> tried both the serial and parallel dongles and can't
> seem to get them to communicate with the prototyping
> board.
> 
> Any pointers?

You could try the AvrDude programming software. I think it compiles under
Linux.

http://savannah.nongnu.org/projects/avrdude/

Alex

RE: [AVR-Chat] Newby setup help

2004-10-31 by Jeffrey Engel

Alex,

Thanks, but my Linux installation is missing
'texi2html' and the make errors out.  It seemed too
involved for the time being.

I think I'll head on down to work and see what I can
do with XP.

Thanks!

Jeff Engel
--- Alex Shepherd <maillists@ajsystems.co.nz> wrote:

> 
> > The software is Mandrake Linux and PonyProg.  I've
> > tried both the serial and parallel dongles and
> can't
> > seem to get them to communicate with the
> prototyping
> > board.
> > 
> > Any pointers?
> 
> You could try the AvrDude programming software. I
> think it compiles under
> Linux.
> 
> http://savannah.nongnu.org/projects/avrdude/
> 
> Alex
> 
> 
> 
> 
> ------------------------ Yahoo! Groups Sponsor
> --------------------~--> 
> $9.95 domain names from Yahoo!. Register anything.
>
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/dN_tlB/TM
>
--------------------------------------------------------------------~->
> 
> 
>  
> Yahoo! Groups Links
> 
> 
>     AVR-Chat-unsubscribe@yahoogroups.com
> 
>  
> 
> 
> 
> 


=====
Happiness is - positive intake manifold pressure.


		
_______________________________
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now. 
http://messenger.yahoo.com

RE: [AVR-Chat] Newby setup help

2004-10-31 by Alex Shepherd

> I think I'll head on down to work and see what I can
> do with XP.

Then maybe install the WinAVR package.

http://winavr.sourceforge.net/

It comes with the AvrDude programmer and should install cleanly.

Alex

RE: [AVR-Chat] Newby setup help

2004-11-01 by Jeffrey Engel

Alex,

Many thanks for your help.  I did download AVRdude -
the Win32 version comes as a binary, so I didn't have
to concern myself with compiling it.

I found that my failures came from several bad
components, including a possible bad 2343.

Look forward to more Newby questions in the near
future!  <scowl>

Jeff Engel
Arlington, TX
--- Alex Shepherd <maillists@ajsystems.co.nz> wrote:

> 
> > I think I'll head on down to work and see what I
> can
> > do with XP.
> 
> Then maybe install the WinAVR package.
> 
> http://winavr.sourceforge.net/
> 
> It comes with the AvrDude programmer and should
> install cleanly.
> 
> Alex


=====
Happiness is - positive intake manifold pressure.


		
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.