You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
176 lines
6.0 KiB
Plaintext
176 lines
6.0 KiB
Plaintext
/*###ICF### Section handled by ICF editor, don't touch! ****/
|
|
/*-Editor annotation file-*/
|
|
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_1.xml" */
|
|
/*-Specials-*/
|
|
define symbol __ICFEDIT_intvec_start__ = 0x00000000;
|
|
/*-Memory Regions-*/
|
|
define symbol __ICFEDIT_region_IROM1_start__ = 0x00000080;
|
|
define symbol __ICFEDIT_region_IROM1_end__ = 0x0007FFFF;
|
|
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__ = 0x00100000;
|
|
define symbol __ICFEDIT_region_IRAM1_end__ = 0x001FFFFF;
|
|
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__ = 0x2000;
|
|
define symbol __ICFEDIT_size_svcstack__ = 0x100;
|
|
define symbol __ICFEDIT_size_irqstack__ = 0x100;
|
|
define symbol __ICFEDIT_size_fiqstack__ = 0x100;
|
|
define symbol __ICFEDIT_size_undstack__ = 0x100;
|
|
define symbol __ICFEDIT_size_abtstack__ = 0x100;
|
|
define symbol __ICFEDIT_size_heap__ = 0x8000;
|
|
/**** 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 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 SVC_STACK with alignment = 8, size = __ICFEDIT_size_svcstack__ { };
|
|
define block IRQ_STACK with alignment = 8, size = __ICFEDIT_size_irqstack__ { };
|
|
define block FIQ_STACK with alignment = 8, size = __ICFEDIT_size_fiqstack__ { };
|
|
define block UND_STACK with alignment = 8, size = __ICFEDIT_size_undstack__ { };
|
|
define block ABT_STACK with alignment = 8, size = __ICFEDIT_size_abtstack__ { };
|
|
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
|
|
place in IRAM_region { readwrite,
|
|
block CSTACK, block SVC_STACK, block IRQ_STACK, block FIQ_STACK,
|
|
block UND_STACK, block ABT_STACK, block HEAP };
|
|
}
|
|
|
|
if (!isempty(ERAM_region))
|
|
{
|
|
place in ERAM_region { readwrite section application_specific_rw };
|
|
}
|