cancel
Showing results for 
Search instead for 
Did you mean: 

IAR linker-script: multiple RAM regions

Rami Rosenbaum
Associate II

Hi,

I need to build my IAR-base application with a non-consecutive RAM region.

E.G.. if my RAM is between 0x20000000-0x200087FF:

define symbol __ICFEDIT_region_RAM_start__  = 0x20000000;
define symbol __ICFEDIT_region_RAM_end__   = 0x200087FF;
define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];

I want to exclude a few 'holes', for example, "don't use 0x20000100-0x200001FF".

  1. Can this be done only via linker-script, without adding dummy buffers with this-or-that linker flag (.noinit)?
  2. If code must be added, I'll be glad for a snippet.

Thanks

0 REPLIES 0