以下一段程序是.cmd的一部分:
SECTIONS
{
/* Setup for "boot to SARAM" mode:
The codestart section (found in DSP28_CodeStartBranch.asm)
re-directs execution to the start of user code. */
110 .stack : > RAMM1, PAGE = 1
.ebss : > DRAML0, PAGE = 1
.econst : > DRAML0, PAGE = 1
.esysmem : > RAMM1, PAGE = 1
codestart : > BEGIN, PAGE = 0
ramfuncs : > RAMM0 PAGE = 0
.text : > PRAML0, PAGE = 0
.cinit : > RAMM0, PAGE = 0
.pinit : > RAMM0, PAGE = 0
.switch : > RAMM0, PAGE = 0
.reset : > RESET, PAGE = 0, TYPE = DSECT /* not used, */
编译出错提示:
<Linking>
warning: creating ".stack" section with default size of 0x400; use the -stack
option to change the default size
"../2801_RAM_lnk.cmd", line 110: error: run placement fails for object
".stack", size 0x400 (page 1). Available ranges:
RAMM1 size: 0x50 unused: 0x50 max hole: 0x50
error: errors encountered during linking; "T.out" not built
我不知道堆栈为什么不能分配内存,您能帮我吗?