uisp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Uisp-dev] Re: UISP device parameters for ATmega64


From: Theodore A. Roth
Subject: [Uisp-dev] Re: UISP device parameters for ATmega64
Date: Fri, 17 Oct 2003 10:04:27 -0700 (PDT)


On Thu, 16 Oct 2003, Russel Howe wrote:

> Mr. Roth,
>       I am using the latest CVS version of UISP to program the ATmega64.
>   I have the Atmel serial programmer (AVR-ISP), which uses the STK500
> protocol.  I added the following lines to Stk500.C, in place of the
> FIXME to support this device:
>
>    {"ATmega64",
>     {0x08, 0xD7, 0xA0, 0x01},
>     {0x42, 0x20, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x03, 0xff, 0xff, 0xff,
>      0xff, {0x01, 0x00}, {0x04, 0x00}, {0x00, 0x00, 0x80, 0x00}, 0x20}
>    },

I think this should look more like this:

  {"ATmega64",
   {0x08, 0xD7, 0xA0, 0x01},
   {0x42, 0x20, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x03, 0xff, 0xff, 0xff,
    0xff, {0x01, 0x00}, {0x08, 0x00}, {0x00, 0x01, 0x00, 0x00}, 0x20}
  },

The last two arrays are the eeprom and flash sizes. You had 1K and
32K, when they should be 2K and 64K.

I'm also wondering about the last extended param value (4th byte after
the "ATmega64"). Is there a reason why you set it to 0x01? From the
stk500 appnote061:

  ResetDisable : Defines whether a part has RSTDSBL Fuse (value = 1)
  or not (value = 0).

I don't see in the mega64 datasheeth that it has a RSTDSBL fuse, so
this should probably be 0x00.

Ted Roth

>
> I have programmed and verified EEPROM, FLASH and fuses on several
> devices with these values, all with no problems.  Thank you for
> maintaining such a useful tool.
> Russel Howe
>
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]