bugAVR C Runtime Library - Bugs: bug #35948, iom32u4.h for ATmega32U4...


bug #35948: iom32u4.h for ATmega32U4 incorrectly defines Timer 2

Submitted by:  Paul Fox <pgf>
Submitted on:  Thu Mar 22 15:44:05 2012  
Category: HeaderSeverity: 3 - Normal
Priority: 9 - ImmediateItem Group: Header files
Status: FixedPercent Complete: 0%
Assigned to: Pitchumani <pitchumani>Open/Closed: Open
Release: 1.6.8Fixed Release: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Thu Mar 20 15:00:53 2014, comment #2:

removed timer2 related definitions from iom32u4.h

Pitchumani <pitchumani>
Project MemberIn charge of this item.
Thu Jun 28 16:54:03 2012, comment #1:

This bug affects Arduino project and needs to get fixed before next release.

Eric Weddington <arcanum>
Project Administrator
Thu Mar 22 15:44:05 2012, original submission:

it's my understanding from the datasheet that the atmega32u4 doesn't have a Timer 2, so it seems like the definitions for TCCR2A, TIFR2, TCNT2, etc, should be missing from the header file.

all of those are, indeed, missing from iom32u2.h, so i think their presence in iom32u4.h must be just an oversight.

apparently timer 2 isn't mentioned in the ATmega32U4.xml part description file provided with AVR Studio, either, though i was told this at the avrfreaks forum, and don't know it firsthand.

(my version is 1.6.8-2, from ubuntu natty.)


Paul Fox <pgf>


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

Attach File(s):

Attached Files
file #27593:  35498.patch added by aurel32 (1kB - text/x-diff - Patch to fix the issue)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by pitchumani (Updated the item)
  • -unavailable- added by aurel32 (Updated the item)
  • -unavailable- added by arcanum (Posted a comment)
  • -unavailable- added by pgf (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
    Thu Mar 20 15:00:53 2014pitchumaniStatusIn Progress=>Fixed
    Thu Mar 20 14:55:06 2014pitchumaniStatusNone=>In Progress
      Assigned toNone=>pitchumani
    Sun Mar 10 19:59:17 2013aurel32Attached File-=>Added 35498.patch, #27593
    Fri Nov 16 18:31:27 2012arcanumPriority7 - High=>9 - Immediate
    Thu Jun 28 16:54:03 2012arcanumPriority5 - Normal=>7 - High

    Back to the top

    Powered by Savane 3.1-cleanup1