bugAVR C Runtime Library - Bugs: bug #32419, Incorrect EEPROM size in header...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #32419: Incorrect EEPROM size in header for ATxmega192A3

Submitter:  James Johnston <jjinnsoft>
Submitted:  Thu 10 Feb 2011 08:25:36 PM UTC
   
 
Category:  Header Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Header files
Status:  Fixed Percent Complete:  100%
Assigned to:  arcanum Open/Closed:  Closed
Release:  1.7.0 Fixed Release:  1.6.1

Mon 14 Feb 2011 02:43:33 PM UTC, comment #1: 

An update from Atmel regarding updating the part description file which I assume the header file was automatically generated from:


Dear customer,
Thank you for your valuable feedback.
Yes. This bug has been reported to the concerned internal team and this issue is expected to be corrected in the future releases. We understand your concern of editing the header file.
Sorry for the inconvenience caused.
Best Regards,
Vijay Jayaraman K
Atmel Technical Support Team

James Johnston <jjinnsoft>
Thu 10 Feb 2011 08:25:36 PM UTC, original submission:  

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.

James Johnston <jjinnsoft>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by arcanum (Updated the item)
  • -email is unavailable- added by jjinnsoft (Submitted the item)
  •  

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-02-21 arcanum StatusNone Fixed
        Percent Complete50% 100%
        Open/ClosedOpen Closed
    2011-02-21 arcanum Percent Complete0% 50%
        Assigned toNone arcanum
        Fixed ReleaseNone 1.6.1

    Back to the top

    Powered by Savane 3.12