This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to set memory in IAR, including How to set ram size in IAR

I know the Project options can be configured in the iar_nRF5x.icf file, but there is no option for ram size. If the RAM start and end is given, I guess that is the ram size.

Also, it is not clear why to specify the Ram size. As long as the MAP file indicates a lower RAM size needed than the total, it is OK?

Then how does one figure out the stack and heap?

define symbol ICFEDIT_intvec_start = 0x1f000;

/-Memory Regions-/ define symbol ICFEDIT_region_ROM_start = 0x1f000;

define symbol ICFEDIT_region_ROM_end = 0x7ffff;

define symbol ICFEDIT_region_RAM_start = 0x20002fff;

define symbol ICFEDIT_region_RAM_end = 0x2000ffff;

export symbol ICFEDIT_region_RAM_start;

export symbol ICFEDIT_region_RAM_end;

/-Sizes-/

define symbol ICFEDIT_size_cstack = 0x800;

define symbol ICFEDIT_size_heap = 0x200;

/**** End of ICF editor section. ###ICF###*/

Any help appreciated

Parents Reply Children
No Data
Related