Utilization of AVR memory space

Technical Note 26992

Architectures:

AVR

Component:

compiler

Updated:

11/6/2015 12:27 PM

Introduction

This Technical Note document describes modified Harvard architectures as used by different Atmel AVR microcontroller versions, and what data that is put in which segment.

Example

__flash int fi = 1; // fi will end up in the flash code segment

Note: For devices that have unified address space as Atmega4809, ATtiny804 etc.. using the const keyword gives faster and smaller references that __flash.

 

All product names are trademarks or registered trademarks of their respective owners.

 

We do no longer support Internet Explorer. To get the best experience of iar.com, we recommend upgrading to a modern browser such as Chrome or Edge.