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.

CCS 如何将运行库也放到 RAM 中



我们可以在功能函数上使用

#pragma CODE_SECTION(xxxxxxxx, "ramfuncs");

将函数设置在 RAM 中运行, 那如何设置让运行库 (比如 rts2800_ml.lib)也在 RAM 中?

  • 请参考:

    https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/331176

  • 你好,在论坛看到你以前发的一个关于

    FTDI2232 的 XDS100v1 出错了

    的问题,我也出现了,基本一样,看到你的问题还是处于未解决状态,不知道你现在这个问题解决了么,求帮助啊

    http://www.deyisupport.com/question_answer/microcontrollers/c2000/f/56/t/89302.aspx

    这个是你以前的帖子~

  • 依葫芦画瓢,这样倒是可以的。

       rts2800_ml_FLASH    : > FLASHA,       PAGE = 0
                             {
                                 -l rts2800_ml.lib <boot.obj> (.text)
                             }
       rts2800_ml_RAM      : LOAD = FLASHA,
                             RUN = RAMLS0 | RAMLS1 | RAMLS2 |RAMLS3,
                             LOAD_START(_MathLoadStart),
                             LOAD_END(_MathLoadEnd),
                             RUN_START(_MathRunStart),
                             PAGE = 0, ALIGN(4)
                             {
                                 -l rts2800_ml.lib <*> (.text)
                             }

    只是名称 _MathLoadStart, 是怎么来的呢?

  • 这边就是在做定义,你做代码搬移的时候是要用到这一个变量的

  • 那就是说: _MathLoadStart, _MathLoadEnd, _MathRunStart  这几个名字可以随便起的?

  • 代码搬移时统一就好,但好的编程习惯还是要起一个好记能代表意思的名字