https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71948

            Bug ID: 71948
           Summary: [avr] Make progmem work on reduced Tiny cores by
                    adding 0x4000 to symbols
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gjl at gcc dot gnu.org
  Target Milestone: ---

The reduced tiny cores feature reading from flash:  The flash memory can be
seen in the RAM address range at an offset starting at 0x4000.

Hence progmem can be used to put data into flash and to generate the correct
accesses without the need of special functions (like pgm_read_* which is needed
on generic core).  This can easily be achieved by adding 0x4000 to the value of
symbols.

Reply via email to