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 20 Jul 2010 04:49:13 PM UTC  
Category:  Header Severity:  3 - Normal
Priority:  9 - Immediate Item Group:  Header files
Status:  Need Info Percent Complete:  0%
Assigned to:  None Open/Closed:  Open
Release:  1.7.0 Fixed Release:  None

Add a New Comment(Rich Markup)

You are not logged in

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


Wed 21 Jul 2010 12:42:17 PM UTC, 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 21 Jul 2010 09:45:12 AM UTC, 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 20 Jul 2010 08:08:44 PM UTC, 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 20 Jul 2010 04:49:13 PM UTC, 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 Files:

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 (Posted a comment)
  • -email is unavailable- added by logicnibble (Submitted the item)



    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-11-16 arcanum Priority7 - High => 9 - Immediate
    2012-11-16 arcanum Assigned toarcanum => None
    2011-02-22 arcanum StatusNone => Need Info
    2010-07-20 arcanum Release1.7.* => 1.7.0
    2010-07-20 arcanum Priority5 - Normal => 7 - High
        Assigned toNone => arcanum

    Back to the top

    Powered by Savane 3.4