avr-chat
[Top][All Lists]
Advanced

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

Re: [avr-chat] Do people like the XMEGA?


From: Erik Walthinsen
Subject: Re: [avr-chat] Do people like the XMEGA?
Date: Fri, 15 Feb 2013 10:15:58 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1

On 02/15/2013 10:08 AM, Thomas D. Dean wrote:
I have a device marked ATXMEGA128A1 AU.  It has the same signarure,
4C 97 1E as the datasheet shows for the ATMEGA128A1U.

How does one tell the difference?

That one kinda ticked me off when I discovered it. What I do is I check both the signature and the USBCAL0:1 bytes in the production signature. If bytes 0x1a:0x1b are 0xffff, then it's *not* a USB-capable chip.

My workflow has a script that identifies a chip via avrdude before running a compile script for that chip. The identify script is:

----- xmega-identify  (called with e.g. "-cavrisp2 -Pusb")
chipsig="$HOME/xmega-chipsig"
avrdude="avrdude -px16a4 $*"

# Figure out what chip we're targetting
echo 'read prodsig 0x1a 2' | $avrdude -F -t > /tmp/$$ 2>&1
sig=`grep 'Device signature' /tmp/$$ | awk '{print $5}'`

if `grep -v -q '001a  ff ff' /tmp/$$`;then
  sig="${sig}u"
fi

grep "$sig:" $chipsig | cut -d: -f2-
rm -f /tmp/$$
-----

---- xmega-chipsig
0x1e9441:AVR_SHORT=x16a4;AVR_LONG=atxmega16a4;AVR_BOOTOFF=0x04000
0x1e9541:AVR_SHORT=x32a4;AVR_LONG=atxmega32a4;AVR_BOOTOFF=0x08000
0x1e9541u:AVR_SHORT=x32a4u;AVR_LONG=atxmega32a4u;AVR_BOOTOFF=0x08000
0x1e9646:AVR_SHORT=x64a4;AVR_LONG=atxmega64a4;AVR_BOOTOFF=0x10000
0x1e9746:AVR_SHORT=x128a4;AVR_LONG=atxmega128a4;AVR_BOOTOFF=0x20000
0x1e9746u:AVR_SHORT=x128a4u;AVR_LONG=atxmega128a4u;AVR_BOOTOFF=0x20000
0x1e9642:AVR_SHORT=x64a3;AVR_LONG=atxmega64a3;AVR_BOOTOFF=0x10000
0x1e9742:AVR_SHORT=x128a3;AVR_LONG=atxmega128a3;AVR_BOOTOFF=0x20000
0x1e9742u:AVR_SHORT=x128a3u;AVR_LONG=atxmega128a3u;AVR_BOOTOFF=0x20000
0x1e9744:AVR_SHORT=x192a3;AVR_LONG=atxmega192a3;AVR_BOOTOFF=0x30000
0x1e9744u:AVR_SHORT=x192a3u;AVR_LONG=atxmega192a3u;AVR_BOOTOFF=0x30000
0x1e9842:AVR_SHORT=x256a3;AVR_LONG=atxmega256a3;AVR_BOOTOFF=0x40000
0x1e9842u:AVR_SHORT=x256a3u;AVR_LONG=atxmega256a3u;AVR_BOOTOFF=0x40000
0x1e964e:AVR_SHORT=x64a1;AVR_LONG=atxmega64a1;AVR_BOOTOFF=0x10000
0x1e974c:AVR_SHORT=x128a1;AVR_LONG=atxmega128a1;AVR_BOOTOFF=0x20000
0x1e974e:AVR_SHORT=x192a1;AVR_LONG=atxmega192a1;AVR_BOOTOFF=0x30000
0x1e9846:AVR_SHORT=x256a1;AVR_LONG=atxmega256a1;AVR_BOOTOFF=0x40000
. . . . (to be expanded)
-----



reply via email to

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