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: 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 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 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 16 Nov 2012 06:23:05 PM UTCarcanumPriority7 - High=>9 - Immediate
    Fri 16 Nov 2012 05:57:33 PM UTCarcanumAssigned toarcanum=>None
    Tue 22 Feb 2011 09:29:06 PM UTCarcanumStatusNone=>Need Info
    Tue 20 Jul 2010 08:12:07 PM UTCarcanumRelease1.7.*=>1.7.0
    Tue 20 Jul 2010 08:08:44 PM UTCarcanumPriority5 - Normal=>7 - High
      Assigned toNone=>arcanum

    Back to the top


    Powered by Savane 3.1-cleanup