|
/*###ICF### Section handled by ICF editor, don't touch! ****/
/*-Editor annotation file-*/
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
/* Version 4.1.1 */
/*-Memory Regions*/
define symbol AAA_ADDR = 0x8090000;
define symbol __ICFEDIT_region_ROM_start__ = 0x8006000;
define symbol __ICFEDIT_region_ROM_end__ = (AAA_ADDR-1);
define symbol __ICFEDIT_region_AAA_ROM_start__ = (AAA_ADDR);
define symbol __ICFEDIT_region_AAA_ROM_end__ = (0x80100000-1);
define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
define symbol __ICFEDIT_region_RAM_end__ = (0x20000000+0x10000-1);
/**** End of ICF editor section. ###ICF###*/
define memory mem with size = 4G;
define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
define region AAA_ROM_region = mem:[from __ICFEDIT_region_AAA_ROM_start__ to __ICFEDIT_region_AAA_ROM_end__];
define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
define block CSTACK with alignment = 8
{
section .stack
};
define block HEAP with alignment = 8
{
section .heap
};
//define block header with alignment = 8
//{
// section AAT
//};
define block nvm with alignment = 8192
{
section SIMEE,
};
keep { block nvm };
define block storage with alignment = 8192
{
section INTERNAL_STORAGE,
};
keep { block storage };
define block application with fixed order
{
readonly section .intvec,
readonly,
};
define block application_AAA with fixed order
{
object AAA.o,
};
define block application_ram with fixed order
{
block CSTACK,
readwrite,
block HEAP
};
initialize by copy { readwrite };
do not initialize
{
section .noinit,
section .stack,
section .heap
};
keep { section .intvec };
//keep { block application_AAA };
"application_AAA":
place in AAA_ROM_region { first block application_AAA };
"application":
place in ROM_region { last block application };
"storage_regions":
place at end of AAA_ROM_region {
block storage,
block nvm,
};
"application_ram":
place at start of RAM_region { block application_ram };
最后map 生成的结果
.text ro code 0x805'15c8 0x2fc AAA.o [1]
.rodata const 0x809'0000 0x4 AAA.o [1]
.rodata const 0x809'0004 0x4 AAA.o [1]
.rodata const 0x809'0008 0x4 AAA.o [1]
.rodata const 0x809'000c 0x4 AAA.o [1]
.rodata const 0x809'0010 0x4 AAA.o [1]
.rodata const 0x809'0014 0x4 AAA.o [1]
.rodata const 0x809'0018 0x4 AAA.o [1]
.rodata const 0x809'001c 0x4 AAA.o [1]
.rodata const 0x809'0020 0x4 AAA.o [1]
.rodata const 0x809'0024 0x4 AAA.o [1]
.rodata const 0x809'0028 0x4 AAA.o [1]
.rodata const 0x809'002c 0x4 AAA.o [1]
.rodata const 0x809'0030 0x48 AAA.o [1]
.rodata const 0x809'0078 0x30 AAA.o [1]
|
|