http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52461

             Bug #: 52461
           Summary: [avr] XMEGA+EBI: RAMPZ clobbered while reading from
                    flash
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: g...@gcc.gnu.org
            Target: avr


To read from flash on devices with more than 64KiB of flash, RAMPZ is set
appropriately before using ELPM instruction.

Devices with external bus interface (EBI) use RAMPZ as high part of the RAM
address while reading from RAM.

Thus, and RAM read on EBI device that is performed via Z will fail after data
has been read from Flash.

Reply via email to