基于28377的cmd文件中已经有如下配置:
#ifdef CLA_C
/* CLA C compiler sections */
//
// Must be allocated to memory the CLA has write access to
//
CLAscratch :
{ *.obj(CLAscratch)
. += CLA_SCRATCHPAD_SIZE;
*.obj(CLAscratch_end) } > RAMLS1, PAGE = 0
.scratchpad : > RAMLS1, PAGE = 0
.bss_cla : > RAMLS1, PAGE = 0
.const_cla : > RAMLS1, PAGE = 0
#endif //CLA_C
编译完成后还有如下warnning:
#10247-D creating output section ".scratchpad" without a SECTIONS specification WLServo_F28377S C/C++ Problem
想问这个警告是什么意思?哪里还需要更正或补充的?
Seven Han:
这个是新旧编译器对SECTIONS 段的定义不同引起的
参考下帖子:https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/461859