bugAVR C Runtime Library - Bugs: bug #30499, Wrong register names for...

 
 

bug #30499: Wrong register names for atmega324pa

Submitted by:  rr <logicnibble>
Submitted on:  Tue Jul 20 16:49:13 2010  
 
Category: HeaderSeverity: 3 - Normal
Priority: 9 - ImmediateItem Group: Header files
Status: Need InfoPercent Complete: 0%
Assigned to: NoneOpen/Closed: Open
Release: 1.7.0Fixed Release: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Wed Jul 21 12:42:17 2010, comment #3:

Yes, really all three variants need to have updated header files. I'll make sure and do that after the Atmel bug is fixed.

The link to the bug was automatically put in by Savannah, and it thinks that it's a bug on this system, which it is not. This is an Atmel-internal bug number. Sorry for any confusion.

Eric Weddington <arcanum>
Project Administrator
Wed Jul 21 09:45:12 2010, comment #2:

You're right about that, but I'm mentioning the problem in the iom324pa.h file. There are 3 different signatures:
atmega324p :0x1e9508
atmega324a :0x1e9515
atmega324pa :0x1e9511
When the Atmel bug is fixed, don't forget to update atmega324pa too, looking for those register names wrongly defined.
BTW, the Atmel bug link is wrong.

rr <logicnibble>
Tue Jul 20 20:08:44 2010, comment #1:

The ATmega324P.xml device file from AVR Studio has duplicate <SIGNATURE> tags with different data in them. This is Atmel bug #11908. When this bug is fixed, separate header files need to be generated for the ATmega324P and ATmega324A and included in avr-libc (currently they use a single iom324.h header file), and io.h modified accordingly.

Eric Weddington <arcanum>
Project Administrator
Tue Jul 20 16:49:13 2010, original submission:

iom324pa.h has registers like SPCR0, SPSR0, SPDR0 and their bits, that have a different name in the datasheet.
When compiling with avr-gcc 4.3.4 and avr-libc 1.7.0, and using the correct register names from datasheet (SPCR, SPSR, SPDR, ...), I get the "SPDR undeclared" as expected, since they are defined in the io header as a different name.
Maybe there are more wrong names in the file.

rr <logicnibble>

 

(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 (Posted a comment)
  • -unavailable- added by logicnibble (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
    Fri Nov 16 18:23:05 2012arcanumPriority7 - High=>9 - Immediate
    Fri Nov 16 17:57:33 2012arcanumAssigned toarcanum=>None
    Tue Feb 22 21:29:06 2011arcanumStatusNone=>Need Info
    Tue Jul 20 20:12:07 2010arcanumRelease1.7.*=>1.7.0
    Tue Jul 20 20:08:44 2010arcanumPriority5 - Normal=>7 - High
      Assigned toNone=>arcanum

    Back to the top


    Powered by Savane 3.1-cleanup