编译提示:
>> cannot allocate .stack in B1 (page 1) >> errors in input - TTtest.out not built
Build Complete, 2 Errors, 0 Warnings, 0 Remarks
字库定义: const unsigned int words[][16]={{...},{...},.....{...}};//字库内数据略。
CMD文件:
-stack 400 -o TTtest.out -l rts2xx.lib MEMORY { PAGE 0: /* Program Memory */ VECS: org=00000h, len=00040h /* internal FLASH */ PVECS: org=00040h, len=00070h /* internal FLASH */ PROG: org=000b0h, len=07F50h PAGE 1: /* Data Memory */ MMRS: org=00000h, len=0005Fh B2: org=00060h, len=00020h /* internal DARAM */ B0: org=00200h, len=00100h B1: org=00300h, len=00100h SARAM: org=00800h, len=00800h /* internal SARAM */ EXTDATA: org=08000h, len=08000h /* external SRAM */ } SECTIONS { .reset: > VECS PAGE 0 .vectors: > VECS PAGE 0 /* initialized */ .PVECS: > PVECS PAGE 0 .text: > PROG PAGE 0 /* initialized */ .cinit: > PROG PAGE 0 /* initialized */ .bss: > SARAM PAGE 1 /* uninitialized */ .const: > SARAM PAGE 1 /* initialized */ .stack: > B1 PAGE 1 /* uninitialized */ }
字库原来只有2个汉字,编译没问题,增加10多个汉字后编译就出问题了,我应该怎样设置这个stack?我已经由400设置到1200了,还是不行,最大允许设置多少?为什么字库的大小会影响到这里?
|