avr-libc-dev
[Top][All Lists]
Advanced

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

[avr-libc-dev] [bug #32419] Incorrect EEPROM size in header for ATxmega1


From: James Johnston
Subject: [avr-libc-dev] [bug #32419] Incorrect EEPROM size in header for ATxmega192A3
Date: Thu, 10 Feb 2011 20:25:37 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.94 Safari/534.13

URL:
  <http://savannah.nongnu.org/bugs/?32419>

                 Summary: Incorrect EEPROM size in header for ATxmega192A3
                 Project: AVR C Runtime Library
            Submitted by: jjinnsoft
            Submitted on: Thu 10 Feb 2011 08:25:36 PM GMT
                Category: Header
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Header files
                  Status: None
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.7.0
           Fixed Release: None

    _______________________________________________________

Details:

The header file "iox192a3.h" for ATxmega192A3 contains the wrong EEPROM size
for that processor (checked version 1.7.0 and also latest header in SVN
repository).  This file contains the following lines indicating a 4 KB
EEPROM:

#define EEPROM_SIZE      (4096)
#define MAPPED_EEPROM_SIZE      (4096)

The datasheet for this part at
http://www.atmel.com/dyn/resources/prod_documents/doc8068.pdf clearly states
in section 1 "Ordering Information" that ATxmega192A3-MH and ATxmega192A3-AU
have only 2 KB EEPROM - not 4 KB.

This is problematic for applications that compile for multiple XMEGA variants
that need to use this constant value for determining the size of the EEPROM
(note that EEPROM_SIZE is used for other definitions, like E2END).  On this
particular device, they will try to access regions of EEPROM that do not
actually exist.

If the header file is generated from the part description XML file in AVR
Studio, then that would be the original source of the bug.  The part
description file in AVR Studio also has the incorrect 4 KB EEPROM declared.

I contacted Atmel regarding the problem in the part description file and
received the following response:


"Dear customer,

The correct size is 2KB EEPROM as stated in the datasheet.
I am sorry for the confusion.

Best Regards,
Andreas Loehre
Atmel Technical Support Team"

Either the datasheet is wrong or the part description & header file is wrong.
 Atmel says the datasheet is correct, so then it seems it's a bug in the
header file and AVR Studio's part description file.




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?32419>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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