Skip to main content
Rami Rosenbaum
Associate II
January 12, 2020
Question

IAR linker-script: multiple RAM regions

  • January 12, 2020
  • 0 replies
  • 1041 views

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

This topic has been closed for replies.