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.
官方提供的FLASH_CLA的cmd中Cla1Prog是什么,和ramfuncs有什么区别,。如果使用#pragma CODE_SECTION来让代码在这个段编译错误提示,不能同时运行在cla和non-cla的空间呢,这个难道分配的不是cla的程序空间吗。
Cla1Prog : LOAD = FLASHD,
RUN = RAMLS5,
LOAD_START(_Cla1funcsLoadStart),
LOAD_END(_Cla1funcsLoadEnd),
RUN_START(_Cla1funcsRunStart),
LOAD_SIZE(_Cla1funcsLoadSize),
PAGE = 0, ALIGN(4)
可见RUN的地区是ramls5,该地址在cpu中已经初始化为cla程序空间。
为何会有这个错误提示
#10295 output section "Cla1Prog" has both CLA and non-CLA sections; such mixing in the same output section is illegal; could not link section "Cla1Prog:main.obj"
这是编译提示的错误信息