This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
在CLA程序中,需要使用const short Table[] = {0,1,2...},CMD的CLA部分定义如下:
CLAscratch :
{ *.obj(CLAscratch)
. += CLA_SCRATCHPAD_SIZE;
*.obj(CLAscratch_end) } > RAMLS0, PAGE = 1
.scratchpad : > RAMLS0, PAGE = 1
.bss_cla : > RAMLS0, PAGE = 1
.const_cla : LOAD = FLASHB,
RUN = RAMLS0,
RUN_START(_Cla1ConstRunStart),
LOAD_START(_Cla1ConstLoadStart),
LOAD_SIZE(_Cla1ConstLoadSize),
PAGE = 1
程序编译后出现下面报警:
"../FLASH_lnk_cpu1.cmd", line 274: error #10265: no valid memory range(NULL) available for placement of ".const_cla"
"../FLASH_lnk_cpu1.cmd", line 274: error #10099-D: program will not fit into available memory. load placement with alignment/blocking fails for section ".const_cla" size 0x20 page 1
变量Cla1ConstRunStart、Cla1ConstLoadStart、Cla1ConstLoadSize也没有看到在哪里定义,例程中也没有发现哪里用const数据的;
盼复!!!