AVR external memory and the "writable strings" option

Technical Note 36901

Arkitekturer:

AVR

Komponent:

compiler

Uppdaterad:

2015-11-06 12:28

Introduction

This Technical Note applies to IAR Embedded Workbench for AVR.

If there is no non-volatile memory (that is, no PROM) available in the data address space you should probably use the -y (writable strings, constants) compiler option. When using this option, string literals and constants are placed in code space and then copied from CCSTR and CDATA to ECSTR and IDATA respectively.

If the -y option is not used, string literals and constants are placed in the CONST and CSTR segments in the data memory space. e.g.,

-Z(DATA)CSTR,CONST=9000-FFFF

This requires non-volatile memory in the data address space, e.g., external PROM, to work.

 

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

Det här innehållet finns tyvärr inte på svenska.

Vår webbplats finns främst på vårt koncernspråk engelska, förutom det innehåll för investerare som vi är lagstadgade att kommunicera på svenska. Vi rekommenderar att du besöker vår globala webbplats på engelska för att få en bättre upplevelse.

Vi stöder inte längre Internet Explorer. För att få bästa möjliga upplevelse av iar.com rekommenderar vi att du uppgraderar till en modern webbläsare som Chrome eller Edge.