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.

TMS320F28075: creating output section "xxx" without a SECTIONS specification

Part Number: TMS320F28075

背景:

工程移植过程中发现需要包含F2807x_GlobalVariableDefs.c来对寄存器机型操作(例如:WdRegs.WDCR.all = 0x0068;)

包含了上述文件之后,发现疯狂的输出报警信息:

warning #10247-D: creating output section "Emif1RegsFile" without a SECTIONS specification

......

warning #10247-D: creating output section "GpioDataRegsFile" without a SECTIONS specification

......

warning #10063-D: entry-point symbol other than "_c_int00" specified:  "code_start"

疑问一:

查看我的28075_FLASH_lnk.cmd发现确实没有在cmd中定义报警的SECTIONS。发现TI用例中的F2807x_Headers_BIOS.cmd文件里确实定义了各个寄存器的SECTIONS。

我不知道该如何在我现有的28075_FLASH_lnk.cmd里发现添加上述报警的SECTIONS。如果不改的话是不是会有影响,比如设置不生效。

疑问二:

warning #10063-D: entry-point symbol other than "_c_int00" specified:  "code_start"

这个警告需要额外处理吗?

上述问题图片如下:

  • 针对疑问一的解答:

    提示没有指定特别的段在cmd中是因为无论是TI官方的*FLASH*.cmd还是私人项目工程内的*FLASH*.cmd都没有包含对上述警告的寄存器模块进行段定义,可以考虑在工程中引入28075对应的F2807x_Headers_nonBIOS.cmd去解决这个报警问题。

  • 1. <flash/ram_lnk>.cmd,定义的是flash以及ram的分配;<Headers_nonBIOS>.cmd,定义的是外设寄存器的分配。这两个cmd文件都要包含。

    2. 这个信息就是说程序的入口定义重复了。先把第1个问题解决掉,再看一下第2个问题是否还存在。