Support for ATtiny25/45/85 ?

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Support for ATtiny25/45/85 ?

Markus Lampert
Hi,

I recently bought an ATtiny45 since it fits my requirements perfectly. Now I
found out that they are not (yet?) supported by avrdude (I'm running 4.4.0 on
Linux).

Does anybody know how I can avrdude to program them?

Thanks in advance
Markus


               
____________________________________________________
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football
http://football.fantasysports.yahoo.com


_______________________________________________
avrdude-dev mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/avrdude-dev
Reply | Threaded
Open this post in threaded view
|

Re: Support for ATtiny25/45/85 ?

E. Weddington
Markus Lampert wrote:

>Hi,
>
>I recently bought an ATtiny45 since it fits my requirements perfectly. Now I
>found out that they are not (yet?) supported by avrdude (I'm running 4.4.0 on
>Linux).
>
>Does anybody know how I can avrdude to program them?
>
>  
>

Support for all devices (and programming hardware too) is done through a
text-based configuration file. No rebuilding of the software should be
necessary. See the avrdude user manual for more information about adding
new entries. If you write an entry for a new device, please email it to
the avrdude list so we can add it to the main configuration file.

Thanks
Eric


_______________________________________________
avrdude-dev mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/avrdude-dev
Reply | Threaded
Open this post in threaded view
|

Re: Support for ATtiny25/45/85 ?

Markus Lampert
> Support for all devices (and programming hardware too) is done through a
> text-based configuration file. No rebuilding of the software should be
> necessary. See the avrdude user manual for more information about adding
> new entries. If you write an entry for a new device, please email it to
> the avrdude list so we can add it to the main configuration file.

I am aware of that, but since the part is already available for a while I
thought maybe somebody (who knows what they do ;) might have already done that
and I don't know where to get an updated version of avrdude.conf.

Thanks
Markus


               
____________________________________________________
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football
http://football.fantasysports.yahoo.com


_______________________________________________
avrdude-dev mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/avrdude-dev
Reply | Threaded
Open this post in threaded view
|

Re: Support for ATtiny25/45/85 ?

Markus Lampert
In reply to this post by E. Weddington
> new entries. If you write an entry for a new device, please email it to
> the avrdude list so we can add it to the main configuration file.

See below for the configuration. There are a view entries I did not change
(copied over from ATTiny26) since I couldn't figure out what they are for:
   - pagel
   - bs2
   - stk500_devcode
   - avr910_devcode
   - readback_p1
   - readback_p2

#------------------------------------------------------------
# ATtiny45
#------------------------------------------------------------

part
    id                  = "t45";
    desc                = "ATTINY45";
    stk500_devcode      = 0x21;
    avr910_devcode      = 0x5e;
    pagel               = 0xb3;
    bs2                 = 0xb2;
    chip_erase_delay    = 4000;
    pgm_enable          = "1 0 1 0  1 1 0 0   0 1 0 1  0 0 1 1",
                          "x x x x  x x x x   x x x x  x x x x";

    chip_erase          = "1 0 1 0  1 1 0 0   1 0 0 0  0 0 0 0",
                          "x x x x  x x x x   x x x x  x x x x";

    memory "eeprom"
        size            = 256;
        min_write_delay = 4000;
        max_write_delay = 4000;
        readback_p1     = 0xff;
        readback_p2     = 0xff;
        read            = " 1  0  1  0   0  0  0  0    x x x x  x x x x",
                          "a7 a6 a5 a4  a3 a2 a1 a0    o o o o  o o o o";

        write           = " 1  1  0  0   0  0  0  0    x x x x  x x x x",
                          "a7 a6 a5 a4  a3 a2 a1 a0    i i i i  i i i i";
    ;

    memory "flash"
        paged           = yes;
        size            = 4096;
        page_size       = 64;
        num_pages       = 64;
        min_write_delay = 4500;
        max_write_delay = 4500;
        readback_p1     = 0xff;
        readback_p2     = 0xff;
        read_lo         = "   0   0   1   0    0   0   0   0",
                          "   x   x   x   x    x a10  a9  a8",
                          "  a7  a6  a5  a4   a3  a2  a1  a0",
                          "   o   o   o   o    o   o   o   o";

        read_hi         = "   0   0   1   0    1   0   0   0",
                          "   x   x   x   x    x a10  a9  a8",
                          "  a7  a6  a5  a4   a3  a2  a1  a0",
                          "   o   o   o   o    o   o   o   o";

        loadpage_lo     = "  0  1  0  0   0  0  0  0",
                          "  x  x  x  x   x  x  x  x",
                          "  x  x  x a4  a3 a2 a1 a0",
                          "  i  i  i  i   i  i  i  i";

        loadpage_hi     = "  0  1  0  0   1  0  0  0",
                          "  x  x  x  x   x  x  x  x",
                          "  x  x  x a4  a3 a2 a1 a0",
                          "  i  i  i  i   i  i  i  i";

        writepage       = "   0   1   0   0    1   1   0   0",
                          "   x   x   x   x    x a10  a9  a8",
                          "  a7  a6  a5  a4    x   x   x   x",
                          "   x   x   x   x    x   x   x   x";
    ;

    memory "signature"
        size            = 3;
        read            = "0 0 1 1  0 0  0  0   x x x x  x x x x",
                          "0 0 0 0  0 0 a1 a0   o o o o  o o o o";
    ;

    memory "lock"
        size            = 1;
        write           = "1 0 1 0  1 1 0 0  1 1 1 1  1 1 i i",
                          "x x x x  x x x x  x x x x  x x x x";

        read            = "0 1 0 1  1 0 0 0  x x x x  x x x x",
                          "x x x x  x x x x  x x x x  x x o o";
    ;

    memory "lfuse"
        size            = 1;
        write           = "1 0 1 0  1 1 0 0  1 0 1 0  0 0 0 0",
                          "x x x x  x x x x  i i i i  i i i i";

        read            = "0 1 0 1  0 0 0 0  0 0 0 0  0 0 0 0",
                          "x x x x  x x x x  o o o o  o o o o";
      ;

    memory "hfuse"
        size            = 1;
        write           = "1 0 1 0  1 1 0 0  1 0 1 0  1 0 0 0",
                          "x x x x  x x x x  i i i i  i i i i";

        read            = "0 1 0 1  1 0 0 0  0 0 0 0  1 0 0 0",
                          "x x x x  x x x x  o o o o  o o o o";
      ;

    memory "efuse"
        size            = 1;
        write           = "1 0 1 0  1 1 0 0  1 0 1 0  0 1 0 0",
                          "x x x x  x x x x  x x x x  x x x i";

        read            = "0 1 0 1  0 0 0 0  0 0 0 0  1 0 0 0",
                          "x x x x  x x x x  o o o o  o o o o";
      ;

    memory "calibration"
        size            = 1;
        read            = "0 0 1 1  1 0 0 0    x x x x  x x x x",
                          "0 0 0 0  0 0 0 0    o o o o  o o o o";
    ;

;




               
____________________________________________________
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football
http://football.fantasysports.yahoo.com


_______________________________________________
avrdude-dev mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/avrdude-dev
Reply | Threaded
Open this post in threaded view
|

Re: Support for ATtiny25/45/85 ?

Joerg Wunsch
As Markus Lampert wrote:

> See below for the configuration. There are a view entries I did not
> change (copied over from ATTiny26) since I couldn't figure out what
> they are for:

The usual way is to fetch them from Atmel's XML files.

>    - pagel
>    - bs2

No mention in the XML file.  (I think they are needed for parallel
programming in STK500.)  Funny enough, only the XML files for the
ATmega103 and ATtiny2313 mention PAGEL and BS2.

>    - stk500_devcode

ATtiny45: 0x14

Interestingly, for the ATtiny25 and 85, no STK500* support is
mentioned in the XML files at all.  Maybe they still aren't available
at all?

>    - avr910_devcode

Not officially supported by AVR910 anyway.

>    - readback_p1
>    - readback_p2

Nothing in the XML files either.  I guess these values have been taken
out of the respective datasheets for the older devices.

--
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)


_______________________________________________
avrdude-dev mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/avrdude-dev
Reply | Threaded
Open this post in threaded view
|

Re: Support for ATtiny25/45/85 ?

E. Weddington
Joerg Wunsch wrote:

>>   - stk500_devcode
>>    
>>
>
>ATtiny45: 0x14
>
>Interestingly, for the ATtiny25 and 85, no STK500* support is
>mentioned in the XML files at all.  Maybe they still aren't available
>at all?
>  
>

Maybe we can ping the Norway folks and see if they have the codes for
those devices?

Eric


_______________________________________________
avrdude-dev mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/avrdude-dev
Reply | Threaded
Open this post in threaded view
|

Re: Support for ATtiny25/45/85 ?

Joerg Wunsch
As E. Weddington wrote:

> >ATtiny45: 0x14

> >Interestingly, for the ATtiny25 and 85, no STK500* support is
> >mentioned in the XML files at all.  Maybe they still aren't
> >available at all?

> Maybe we can ping the Norway folks and see if they have the codes
> for those devices?

I've sent a request, let's see.

--
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)


_______________________________________________
avrdude-dev mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/avrdude-dev
Reply | Threaded
Open this post in threaded view
|

Re: Support for ATtiny25/45/85 ?

Joerg Wunsch
In reply to this post by Joerg Wunsch
As Joerg Wunsch wrote:

> >    - pagel
> >    - bs2

> No mention in the XML file.  (I think they are needed for parallel
> programming in STK500.)  Funny enough, only the XML files for the
> ATmega103 and ATtiny2313 mention PAGEL and BS2.

Btw., upon closer look, the algorithm is *really* simple. ;-)

Even though these values are given as hex numbers, they actually
denote the pins of the device these signals are to be routed to.  So,
the ATtiny2313 has PageL at PD4 and BS2 at PD6, this makes the signal
numbers for the STK500 protocol 0xD4 and 0xD6.  The ATmega103 has them
at PA0 and PD7 resp., the values are 0xA0 and 0xD7.  I wonder why
these are the only devices where these values are mentioned in the XML
files though, somehow AVR Studio must have further knowledge beyond
the XML files.

Oh, I see the avrdude.conf comments on top already mention that
algorithm, so it's probably olds I'm telling here...

--
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)


_______________________________________________
avrdude-dev mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/avrdude-dev