我用28069调试时,在FLASH模式下,编译提示一下错误:
errors encountered during linking; "Example_2806xAdcSoc.out" not built ORIGINAL_PROJECT_ROOT line 0 1329273026375 1822
run placement fails for object ".ebss", size 0x8a0 (page 1). Available ranges: RAML2 size: 0x400 unused: 0x400 max hole: 0x400 .ebss : > RAML2, PAGE = 1 ORIGINAL_PROJECT_ROOT line 0 1329273026375 1820
"../F28069.cmd", line 138: error: run placement fails for object ".ebss", size
0x8a0 (page 1). Available ranges:
RAML2 size: 0x400 unused: 0x400 max hole: 0x400 .ebss : > RAML2, PAGE = 1
warning: entry-point symbol other than "_c_int00" specified: "code_start"
error: errors encountered during linking; "Example_2806xAdcSoc.out" not built
这个问题要怎么解决?
Forrest:
run placement fails for object ".ebss", size 0x8a0 (page 1). Available ranges: RAML2 size: 0x400
这个是说CMD中设定的EBSS的区段只给了0X400的长度,实际需要0X8A0的长度。
你可以修改CMD文件,把EBSS的区段给大一点。
比如把:
RAML2 : origin = 0x008C00, length = 0x000400 /* on-chip RAM block L2 */
RAML3 : origin = 0x009000, length = 0x001000 /* on-chip RAM block L3 */
改成:
RAML2 : origin = 0x008C00, length = 0x001400 /* on-chip RAM block L2 */