bugAVR C Runtime Library - Bugs: bug #45539, iom32u4.h defines reserved IO...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #45539: iom32u4.h defines reserved IO address (TIMSK2 (0x70), TIMSK5 (0x73) etc)

Submitter:  Matthijs Kooijman <matthijs>
Submitted:  Mon 13 Jul 2015 10:24:36 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  pitchumani
Percent Complete:  0% Open/Closed:  Closed
Release:  Any Fixed Release:  None

Wed 22 Jul 2015 08:51:05 AM UTC, comment #3: 

Awesome, thanks!

Matthijs Kooijman <matthijs>
Wed 22 Jul 2015 05:34:47 AM UTC, comment #2: 
Pitchumani <pitchumani>
Group Member
Tue 21 Jul 2015 09:29:05 AM UTC, 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)

Pitchumani <pitchumani>
Group Member
Mon 13 Jul 2015 10:24:36 AM UTC, original submission:  

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).

Matthijs Kooijman <matthijs>

 

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

Attached Files
file #34478:  atmega32u4-remove-incorrect-defines.patch added by pitchumani (4KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pitchumani (Posted a comment)
  • -email is unavailable- added by matthijs (Submitted the item)
  •  

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-07-22 pitchumani StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2015-07-21 pitchumani Attached File- Added atmega32u4-remove-incorrect-defines.patch, #34478
    2015-07-21 pitchumani StatusNone In Progress
        Assigned toNone pitchumani
        Summaryiom32u4.h defines non-existing TIMSK2 and TIMSK5 iom32u4.h defines reserved IO address (TIMSK2 (0x70), TIMSK5 (0x73) etc)

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code