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.

请教cmd文件的".const_cla"问题!!!



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

谢谢!