Incorrect structure definitions for PORT_t and CRC_t. PORT_t is missing REMAP and has no reserved register at this offset, resulting in the PINxCTRL registers effectively being inaccessible via the struct. CRC_t register has a reserved address at offset 0x02 according to datasheet which is not reflected in CRC_t definition.
Attached patch generated from a modified header for which these two functions now work as tested with xmega 128A1U hardware. Should the patch be broken these errors can easily be resolved with reference to a recent datasheet.
At first glance, these changes do not appear in the recent 1.8.1 release.
Fri 01 May 2015 01:50:51 PM CEST
Incorrect structure definitions for PORT_t and CRC_t. PORT_t is missing REMAP and has no reserved register at this offset, resulting in the PINxCTRL registers effectively being inaccessible via the struct. CRC_t register has a reserved address at offset 0x02 according to datasheet which is not reflected in CRC_t definition.
Attached patch generated from a modified header for which these two functions now work as tested with xmega 128A1U hardware. Should the patch be broken these errors can easily be resolved with reference to a recent datasheet.
At first glance, these changes do not appear in the recent 1.8.1 release.
file #33855: patch_avrlibc_1_05_2015.patch file #33856: patch_avrlibc_1_05_2015.patch
This issue was migrated from https://savannah.nongnu.org/bugs/?44977