Discussion:
[avr-libc-dev] [bug #45539] iom32u4.h defines non-existing TIMSK2 and TIMSK5
Matthijs Kooijman
2015-07-13 10:24:37 UTC
Permalink
URL:
<http://savannah.nongnu.org/bugs/?45539>

Summary: iom32u4.h defines non-existing TIMSK2 and TIMSK5
Project: AVR C Runtime Library
Submitted by: matthijs
Submitted on: Mon 13 Jul 2015 10:24:36 AM GMT
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Percent Complete: 0%
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: Any
Fixed Release: None

_______________________________________________________

Details:

The 32u4 does not have a timer2 or timer5, but the include file does define
TIMSK2 and TIMSK5 (I double-checked the register map, these registers really
don't exist). It seems that the other timer-related registers for these timers
are not defined as expected.

This bug still exists in trunk (checked r2478).




_______________________________________________________

Reply to this item at:

<http://savannah.nongnu.org/bugs/?45539>

_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
Pitchumani
2015-07-21 09:29:05 UTC
Permalink
Update of bug #45539 (project avr-libc):

Status: None => In Progress
Assigned to: None => pitchumani
Summary: iom32u4.h defines non-existing TIMSK2 and TIMSK5 =>
iom32u4.h defines reserved IO address (TIMSK2 (0x70), TIMSK5 (0x73) etc)

_______________________________________________________

Follow-up Comment #1:

iom32u4.h incorrectly defines following IO addresses:

PCMSK1 (0x6C) and PCMSK2 (0x6D) are reserved
TIMSK2 (0x70) and TIMSK5 (0x73) are reserved
Registers from 0x9E to 0xB7 are reserved
Registers from 0xD5 to 0xD6 are reserved
Registers from 0xDB to 0xDF are reserved
Register 0xE7 is reserved
Registers from 0xF5 to 0xF9 are reserved

Reference: Datasheet (http://www.atmel.com/devices/atmega32u4.aspx)

_______________________________________________________

Reply to this item at:

<http://savannah.nongnu.org/bugs/?45539>

_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
Pitchumani
2015-07-21 10:13:58 UTC
Permalink
Additional Item Attachment, bug #45539 (project avr-libc):

File name: atmega32u4-remove-incorrect-defines.patch Size:3 KB


_______________________________________________________

Reply to this item at:

<http://savannah.nongnu.org/bugs/?45539>

_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
Pitchumani
2015-07-22 05:34:48 UTC
Permalink
Update of bug #45539 (project avr-libc):

Status: In Progress => Fixed
Open/Closed: Open => Closed

_______________________________________________________

Follow-up Comment #2:

Committed.
http://svn.savannah.nongnu.org/viewvc?view=rev&root=avr-libc&revision=2479

_______________________________________________________

Reply to this item at:

<http://savannah.nongnu.org/bugs/?45539>

_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
Matthijs Kooijman
2015-07-22 08:51:05 UTC
Permalink
Follow-up Comment #3, bug #45539 (project avr-libc):

Awesome, thanks!

_______________________________________________________

Reply to this item at:

<http://savannah.nongnu.org/bugs/?45539>

_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/

Loading...