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.

新建工程报警告csm_rsvd和csmpasswds without a SECTIONS

Description	Resource	Path	Location	Type
#10247-D creating output section "csm_rsvd" without a SECTIONS specification	F2812Template		 	C/C++ Problem


Description	Resource	Path	Location	Type
#10247-D creating output section "csmpasswds" without a SECTIONS specification	F2812Template		 	C/C++ Problem

以上为编译后提出的编译警告。新建工程的步骤如下:

  1. 新建工程,删除新建工程中的cmd文件
  2. 将F2812头文件中的“DSP281x_common”和“DSP281x_headers”复制到工程目录下,删除include和source外的其他文件夹
  3. 复制“DSP281x_common\cmd\F2812_EzDSP_RAM_lnk.cmd”和"DSP281x_headers\cmd\DSP281x_Headers_nonBIOS.cmd"到工程目录下
  4. 屏蔽“DSP281x_common\source“下的”DSP281x_SWPrioritizedDefaultIsr.c“,"DSP281x_SWPrioritizedPieVect.c"和"DSP281x_XintfBootReset.c"
经历以上步骤以后,编译提示以上警告。
尝试在cmd的section段中添加
   csm_rsvd          : >CSM_RSVD ,     PAGE = 1
   csmpasswds        : > CSM_PWL,    PAGE = 1

来解决问题,但是首先默认没有提供CSM_RSVD这个区域,其次CSM_PWL的长度只有”0x000008“,所以在编译的时候提示错误:

"../Cmd/DSP281x_Headers_nonBIOS.cmd", line 100: error #10099-D: program will not fit into available memory.  placement with alignment/blocking fails for section "csm_rsvd" size 0x76 page 1.  Available memory ranges:
   CSM_PWL      size: 0x8          unused: 0x0          max hole: 0x0    

观察F2812的内存映射,“PassWord”区也仅仅提供有128 bits的空间,所以这里该如何处理。