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.CMD编译出现(.const)not found的问题

Other Parts Discussed in Thread: CCSTUDIO

请问,当我用rts2800_fl040830.lib和FLASH.CMD编译时,出现以下警告:

>> E:\DSP\text\sun4_IQ - flash\FLASH.cmd, line 82: warning:

              (.const) not found

>> warning: load address of uninitialized section .const ignored

但是cmd文件里却已经这样定义:

  .const: load = FLASHB PAGE 0, run = RAML0L1 PAGE 1

{

   /* Get Run Address */

   __const_run = .;

   /* Mark Load Address*/

   *(.c_mark)

   /* Allocate .const */

   *(.const)

   /* Compute Length */

   __const_length = .-__const_run;

}  

烧写进芯片还是无法正常运行,请问怎么解决?

  • rts2800_fl040830.lib不是TI的库文件,用TI的库文件试试。

    另外CMD的定义参考下面的例程中的写法,用例程试试看看是否也有这个问题。

    www.ti.com/.../litabsmultiplefilelist.tsp

  • 编译的时候,烧写前,没有错误,仅有一个警告 如下:该怎么解决?谢谢

    .const: load = FLASHB PAGE 0, run = RAML0L1 PAGE 1
    {
    /* Get Run Address */
    __const_run = .;
    /* Mark Load Address*/
    *(.c_mark)
    /* Allocate .const */
    *(.const)      第 81行
    /* Compute Length */
    __const_length = .-__const_run;

    "C:\\CCStudio_v3.3\\o\\CAN_TX\\FLASH.cmd", line 81: warning: no matching
    section

    Build Complete,
    0 Errors, 1 Warnings, 0 Remarks.

    1083176055@qq.com,期待您的回复,谢谢。

  • 另外我用的是rts2800_fl040830.lib,因为不用的话错误非常多,加FLASH这个文件,只会产生一个警告,

    基于2812的 ,我是初学者,用的书是 手把手教你学dsp,Flash 、头文件等所有文件都是和教材配套的。

    期待您的回复 谢谢