123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- /*###ICF### Section handled by ICF editor, don't touch! ****/
- /*-Editor annotation file-*/
- /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_4.xml" */
- /*-Specials-*/
- define symbol __ICFEDIT_intvec_start__ = 0x08000000;
- /*-Memory Regions-*/
- define symbol __ICFEDIT_region_IROM1_start__ = 0x08000000;
- define symbol __ICFEDIT_region_IROM1_end__ = 0x0800FFFF;
- define symbol __ICFEDIT_region_IROM2_start__ = 0x0;
- define symbol __ICFEDIT_region_IROM2_end__ = 0x0;
- define symbol __ICFEDIT_region_EROM1_start__ = 0x0;
- define symbol __ICFEDIT_region_EROM1_end__ = 0x0;
- define symbol __ICFEDIT_region_EROM2_start__ = 0x0;
- define symbol __ICFEDIT_region_EROM2_end__ = 0x0;
- define symbol __ICFEDIT_region_EROM3_start__ = 0x0;
- define symbol __ICFEDIT_region_EROM3_end__ = 0x0;
- define symbol __ICFEDIT_region_IRAM1_start__ = 0x20000040;
- define symbol __ICFEDIT_region_IRAM1_end__ = 0x20001FFF;
- define symbol __ICFEDIT_region_IRAM2_start__ = 0x0;
- define symbol __ICFEDIT_region_IRAM2_end__ = 0x0;
- define symbol __ICFEDIT_region_ERAM1_start__ = 0x0;
- define symbol __ICFEDIT_region_ERAM1_end__ = 0x0;
- define symbol __ICFEDIT_region_ERAM2_start__ = 0x0;
- define symbol __ICFEDIT_region_ERAM2_end__ = 0x0;
- define symbol __ICFEDIT_region_ERAM3_start__ = 0x0;
- define symbol __ICFEDIT_region_ERAM3_end__ = 0x0;
- /*-Sizes-*/
- define symbol __ICFEDIT_size_cstack__ = 0x400;
- define symbol __ICFEDIT_size_proc_stack__ = 0x0;
- define symbol __ICFEDIT_size_heap__ = 0x800;
- /**** End of ICF editor section. ###ICF###*/
- define memory mem with size = 4G;
- define symbol use_IROM1 = (__ICFEDIT_region_IROM1_start__ != 0x0 || __ICFEDIT_region_IROM1_end__ != 0x0);
- define symbol use_IROM2 = (__ICFEDIT_region_IROM2_start__ != 0x0 || __ICFEDIT_region_IROM2_end__ != 0x0);
- define symbol use_EROM1 = (__ICFEDIT_region_EROM1_start__ != 0x0 || __ICFEDIT_region_EROM1_end__ != 0x0);
- define symbol use_EROM2 = (__ICFEDIT_region_EROM2_start__ != 0x0 || __ICFEDIT_region_EROM2_end__ != 0x0);
- define symbol use_EROM3 = (__ICFEDIT_region_EROM3_start__ != 0x0 || __ICFEDIT_region_EROM3_end__ != 0x0);
- define symbol use_IRAM1 = (__ICFEDIT_region_IRAM1_start__ != 0x0 || __ICFEDIT_region_IRAM1_end__ != 0x0);
- define symbol use_IRAM2 = (__ICFEDIT_region_IRAM2_start__ != 0x0 || __ICFEDIT_region_IRAM2_end__ != 0x0);
- define symbol use_ERAM1 = (__ICFEDIT_region_ERAM1_start__ != 0x0 || __ICFEDIT_region_ERAM1_end__ != 0x0);
- define symbol use_ERAM2 = (__ICFEDIT_region_ERAM2_start__ != 0x0 || __ICFEDIT_region_ERAM2_end__ != 0x0);
- define symbol use_ERAM3 = (__ICFEDIT_region_ERAM3_start__ != 0x0 || __ICFEDIT_region_ERAM3_end__ != 0x0);
- if (use_IROM1)
- {
- define region IROM1_region = mem:[from __ICFEDIT_region_IROM1_start__ to __ICFEDIT_region_IROM1_end__];
- }
- else
- {
- define region IROM1_region = [];
- }
- if (use_IROM2)
- {
- define region IROM2_region = mem:[from __ICFEDIT_region_IROM2_start__ to __ICFEDIT_region_IROM2_end__];
- }
- else
- {
- define region IROM2_region = [];
- }
- define region IROM_region = IROM1_region | IROM2_region;
- if (use_EROM1)
- {
- define region EROM1_region = mem:[from __ICFEDIT_region_EROM1_start__ to __ICFEDIT_region_EROM1_end__];
- }
- else
- {
- define region EROM1_region = [];
- }
- if (use_EROM2)
- {
- define region EROM2_region = mem:[from __ICFEDIT_region_EROM2_start__ to __ICFEDIT_region_EROM2_end__];
- }
- else
- {
- define region EROM2_region = [];
- }
- if (use_EROM3)
- {
- define region EROM3_region = mem:[from __ICFEDIT_region_EROM3_start__ to __ICFEDIT_region_EROM3_end__];
- }
- else
- {
- define region EROM3_region = [];
- }
- define region EROM_region = EROM1_region | EROM2_region | EROM3_region;
- if (use_IRAM1)
- {
- define region IRAM1_region = mem:[from __ICFEDIT_region_IRAM1_start__ to __ICFEDIT_region_IRAM1_end__];
- }
- else
- {
- define region IRAM1_region = [];
- }
- if (use_IRAM2)
- {
- define region IRAM2_region = mem:[from __ICFEDIT_region_IRAM2_start__ to __ICFEDIT_region_IRAM2_end__];
- }
- else
- {
- define region IRAM2_region = [];
- }
- define region IRAM_region = IRAM1_region | IRAM2_region;
- if (use_ERAM1)
- {
- define region ERAM1_region = mem:[from __ICFEDIT_region_ERAM1_start__ to __ICFEDIT_region_ERAM1_end__];
- }
- else
- {
- define region ERAM1_region = [];
- }
- if (use_ERAM2)
- {
- define region ERAM2_region = mem:[from __ICFEDIT_region_ERAM2_start__ to __ICFEDIT_region_ERAM2_end__];
- }
- else
- {
- define region ERAM2_region = [];
- }
- if (use_ERAM3)
- {
- define region ERAM3_region = mem:[from __ICFEDIT_region_ERAM3_start__ to __ICFEDIT_region_ERAM3_end__];
- }
- else
- {
- define region ERAM3_region = [];
- }
- define region noinit_region = mem:[from __ICFEDIT_region_IRAM1_start__ - 0x40 to __ICFEDIT_region_IRAM1_start__ - 0x01 ];
- define region ERAM_region = ERAM1_region | ERAM2_region | ERAM3_region;
- do not initialize { section .noinit };
- initialize by copy { readwrite };
- if (isdefinedsymbol(__USE_DLIB_PERTHREAD))
- {
- // Required in a multi-threaded application
- initialize by copy with packing = none { section __DLIB_PERTHREAD };
- }
- place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
- if (!isempty(IROM_region))
- {
- place in IROM_region { readonly };
- }
- if (!isempty(EROM_region))
- {
- place in EROM_region { readonly section application_specific_ro };
- }
- if (!isempty(IRAM_region))
- {
- define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
- define block PROC_STACK with alignment = 8, size = __ICFEDIT_size_proc_stack__ { };
- define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
- place in IRAM_region { readwrite, block CSTACK, block PROC_STACK, block HEAP };
- }
- if (!isempty(ERAM_region))
- {
- place in ERAM_region { readwrite section application_specific_rw };
- }
- place in noinit_region { readwrite section .noinit };
|