Ti例程中对,CMD文件对.const_cla定义有两种:
.const_cla : > RAMLS0, PAGE = 1
与
.const_cla : LOAD = FLASHB,
RUN = RAMLS0,
RUN_START(_Cla1ConstRunStart),
LOAD_START(_Cla1ConstLoadStart),
LOAD_SIZE(_Cla1ConstLoadSize),
PAGE = 1
两种有什么区别?
第一种仿真的时候是对的,但是在FLASH中运行不仿真下是不对的;
第二种编译都过不了,出现下面错误,是不是哪里设置不对?
"../00_Bsp/Cmd/F2837x_FLASH_lnk_cpu1.cmd", line 263: warning #10097: memory range not found: FLASHB on page 1
"../00_Bsp/Cmd/F2837x_FLASH_lnk_cpu1.cmd", line 263: error #10265: no valid memory range(NULL) available for placement of ".const_cla"
"../00_Bsp/Cmd/Cmd/F2837x_FLASH_lnk_cpu1.cmd", line 263: error #10099-D: program will not fit into available memory. load placement with alignment/blocking fails for section ".const_cla" size 0x400 page 1
谢谢!
Seven Han:1.看下CMD文件中FLASHB 分配的memory 是否在page 1。
2.说明为const_cla分配的内存空间不足。