avrdudes / avrdude

AVRDUDE is a utility to program AVR microcontrollers
GNU General Public License v2.0
747 stars 138 forks source link

[bug #36384] ATxmega32A4 usersig size #256

Closed avrs-admin closed 2 years ago

avrs-admin commented 2 years ago

Ricardo Martins rasm@fe.up.pt Thu 03 May 2012 01:45:43 PM UTC

The datasheet of the XMEGA A4 devices mentions that the "User Signature Row" is one flash page in size. In the trunk's version of avrdude.conf.in all XMEGA devices share the same usersig configuration, yet they are not the same:

Page Sizes (words): ATxmega16A4: 128 ATxmega32A4: 128 ATxmega64A4: 128 ATxmega128A4: 256

file #25825: xmega.conf

This issue was migrated from https://savannah.nongnu.org/bugs/?36384

avrs-admin commented 2 years ago

Joerg Wunsch Fri 04 May 2012 08:37:49 PM UTC

Seems you are right.  Well, fixing just one Xmega device doesn't make much sense, would you be willing to browse all the datasheets, and make a suggestion for an updated avrdude.conf.in?

The previous version (all page sizes set to 0x100) was just wrong, too, and it fell onto my feet when implementing page erase.

avrs-admin commented 2 years ago

Ricardo Martins Fri 04 May 2012 08:47:11 PM UTC

Sure, I'll check all XMEGA datasheets and will post a patch with the correct values. Please disregard the avrdude.conf patch I posted just a few minutes ago. Although my main interest is in the ATxmega32A4, for the benefit of the community I will check all XMEGA's.

avrs-admin commented 2 years ago

Joerg Wunsch Fri 04 May 2012 08:49:02 PM UTC

Many thanks!

avrs-admin commented 2 years ago

Ricardo Martins Wed 09 May 2012 10:02:01 PM UTC

I attach a file with the right settings for all XMEGA MCUs. This file is automatically converted by a Python script from this table:

https://docs.google.com/spreadsheet/ccc?key=0Aj00gvm9SJiUdEpncFpGZUM3d1dCbFZhU09tZjBGbGc

(file #25825)

avrs-admin commented 2 years ago

Joerg Wunsch Fri 13 Sep 2013 01:03:37 PM UTC

Thanks a lot for this nice contribution!

I replaced all the ATxmega* definitions in avrdude.conf.in by your configuration snippet (SVN r1222).