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

 
 

bug #32419: Incorrect EEPROM size in header for ATxmega192A3

Submitted by:  James Johnston <jjinnsoft>
Submitted on:  Thu 10 Feb 2011 08:25:36 PM UTC  
 
Category: HeaderSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Header files
Status: FixedPercent Complete: 100%
Assigned to: Eric Weddington <arcanum>Open/Closed: Closed
Release: 1.7.0Fixed Release: 1.6.1

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 21 Feb 2011 07:46:51 PM UTCarcanumStatusNone=>Fixed
      Percent Complete50%=>100%
      Open/ClosedOpen=>Closed
    Mon 21 Feb 2011 07:41:33 PM UTCarcanumPercent Complete0%=>50%
      Assigned toNone=>arcanum
      Fixed ReleaseNone=>1.6.1

    Back to the top


    Powered by Savane 3.1-cleanup1