Bug 11164 - [avr] EEPROM location wrong for XMEGA
Summary: [avr] EEPROM location wrong for XMEGA
Status: NEW
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.21
: P3 enhancement
Target Milestone: ---
Assignee: unassigned
Depends on:
Reported: 2010-01-13 04:37 UTC by Eric Weddington
Modified: 2010-01-13 04:51 UTC (History)
1 user (show)

See Also:
Target: avr-*-*
Last reconfirmed:


Note You need to log in before you can comment on or make changes to this bug.
Description Eric Weddington 2010-01-13 04:37:43 UTC
From SourceForge bug #2886068 (WinAVR project]:

To use EEPROM memory mapping on XMEGA, the address of EEPROM variables must
start at offset 0x1000 instead of 0. This should be done by changing all
the XMEGA linker scripts so the .eeprom section starts at 0x811000 instead
of 0x810000. There appear to be 35 linker script files that are affected.

AVR Studio debugger will currently not recognize EEPROM data at this
alternate starting address. I am submitting a request to Atmel to change
that. In the meantime, there is an easy work-around using avr-objcopy to
reset the EEPROM address so the debugger will recognize it:
avr-objcopy --change-section-vma .eeprom=0x810000 <target>.elf
Comment 1 Eric Weddington 2010-01-13 04:51:15 UTC
This enhancement is referring to xmega devices for the avr target, which
involves an additional patch which is forthcoming.