mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-15 00:29:02 +00:00
38 lines
1.8 KiB
Plaintext
38 lines
1.8 KiB
Plaintext
|
define symbol __ICFEDIT_intvec_start__ = 0x08000000;
|
||
|
/*-Memory Regions-*/
|
||
|
define symbol __ICFEDIT_region_ROM_start__ = 0x08000000;
|
||
|
define symbol __ICFEDIT_region_ROM_end__ = 0x0800FFFF;
|
||
|
define symbol __ICFEDIT_region_CFS_start__ = 0x08010000; /* Reserved for contiki flash file system. COFFEE_ADDRESS must be changed also in cfs-coffee-arch.h */
|
||
|
define symbol __ICFEDIT_region_CFS_end__ = 0x0801F3FF;
|
||
|
define symbol __ICFEDIT_region_NVM_start__ = 0x0801F400;
|
||
|
define symbol __ICFEDIT_region_NVM_end__ = 0x0801FFFF;
|
||
|
define symbol __ICFEDIT_region_FIB_start__ = 0x08040000;
|
||
|
define symbol __ICFEDIT_region_FIB_end__ = 0x080407FF;
|
||
|
define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
|
||
|
define symbol __ICFEDIT_region_RAM_end__ = 0x20001FFF;
|
||
|
/*-Sizes-*/
|
||
|
define symbol __ICFEDIT_size_cstack__ = 0x500;
|
||
|
|
||
|
|
||
|
define memory mem with size = 4G;
|
||
|
define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
|
||
|
define region CFS_region = mem:[from __ICFEDIT_region_CFS_start__ to __ICFEDIT_region_CFS_end__];
|
||
|
define region NVM_region = mem:[from __ICFEDIT_region_NVM_start__ to __ICFEDIT_region_NVM_end__];
|
||
|
define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
|
||
|
|
||
|
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
|
||
|
|
||
|
initialize by copy { readwrite };
|
||
|
do not initialize { section .noinit,
|
||
|
section FAT,
|
||
|
section NVM };
|
||
|
|
||
|
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
|
||
|
|
||
|
place at address mem:__ICFEDIT_region_FIB_start__ { section FAT };
|
||
|
place in ROM_region { readonly };
|
||
|
place in CFS_region { section .coffeefiles };
|
||
|
place in NVM_region { section NVM };
|
||
|
place in RAM_region { readwrite,
|
||
|
block CSTACK };
|