|
//设置部分
define symbol RAM_SIZE = 1024*16;
define symbol ROM_SIZE = 1024*64;
define symbol CSTACK_SIZE = 1024*1;
define symbol HEAP_SIZE = 1024*1;
//非设置部分
define symbol RAM_START = 0x20000000;
define symbol ROM_START = 0x08000000;
define symbol INTVEC_START = ROM_START;
define memory mem with size = 4G;
define region ROM_region = mem:[from ROM_START size ROM_SIZE];
define region RAM_region = mem:[from RAM_START size RAM_SIZE];
define block CSTACK with alignment = 4, size = CSTACK_SIZE { };
define block HEAP with alignment = 8, size = HEAP_SIZE { };
initialize by copy { rw };
do not initialize { section .noinit };
place at address mem:INTVEC_START {ro section .intvec };
place in ROM_region {ro code,ro data};
place at start of RAM_region {rw};
place in RAM_region {block HEAP};
place at end of RAM_region {block CSTACK};
-
-
Image0278.JPG
(56.63 KB)
|
|