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.

28035 cal 均方根sqrt

Other Parts Discussed in Thread: CONTROLSUITE

我使用的dsp28035 想在CAL中实现开均方,想用到sqrt函数,是如何实现?编译环境CCS5能否用?还是要升级到更高的级别。

  • 这个是有例程的,您可以在安装了controlSUITE后在下面的路径查看

    C:\ti\controlSUITE\device_support\f2803x\v130\DSP2803x_examples_cla_ccsv5\sqrt
  • 这个是有例程的,您可以在安装了controlSUITE后在下面的路径查看

    C:\ti\controlSUITE\device_support\f2803x\v130\DSP2803x_examples_cla_ccsv5\sqrt
  • 参考例程里面的程序就可以,CCS5完全可以,这个和ccs的版本关系不大,你可以试下

  • 谢谢,例程确实是有,怎么将例程序中的sqrt转到我自己的程序中呢?需要设置哪些文件?有没有说明文档呢?
  • 谢谢,例程确实是有,怎么将例程序中的sqrt转到我自己现有的开发程序中呢?需要设置哪些文件?有没有说明文档呢?
  • 强烈推荐您在下面的链接下载 CLA_HandsOnWorkshop_170317.zip

    training.ti.com/cla-hands-workshop-part-3-workshop

    其中有关于Migrating code from C28x to the CLA
  • 我现在是cla中不用sqrt,cla能够正常运行,计算,我现在是想在cla中用sqrt函数运算,就这么一个小 函数,真是难道了,不知道怎么配置,调用sqrt。
    编译完毕提示:
    #1965 cannot open source file "sqrt_shared.h" ProjectName-CLA_Tasks.cla /DAB190530p line 16 C/C++ Problem

    我在函数中配置了:TEST_NAME把定义为sqrt:
    TEST_NAME=sqrt
    1、#include XSTRINGIZE(XCONCAT(TEST_NAME,_shared.h))//T

    2、在mian函数:
    memcpy(&Cla1funcsRunStart, &Cla1funcsLoadStart, (Uint32)&Cla1funcsLoadSize);
    memcpy(&Cla1mathTablesRunStart, &Cla1mathTablesLoadStart, (Uint32)&Cla1mathTablesLoadSize);
    3、在cmd中配置了:
    GROUP : LOAD = FLASHB2,
    RUN = RAML21,
    LOAD_START(_Cla1mathTablesLoadStart),
    LOAD_END(_Cla1mathTablesLoadEnd),
    RUN_START(_Cla1mathTablesRunStart),
    LOAD_SIZE(_Cla1mathTablesLoadSize),
    PAGE = 1

    {
    CLA1mathTables
    .const_cla
    }
    4、
    CLAscratch :
    { *.obj(CLAscratch)
    . += CLA_SCRATCHPAD_SIZE;
    *.obj(CLAscratch_end) } > RAML2,
    PAGE = 1
    现在不知道为何还是打不开“sqrt_shared.h”,我看sqrt的例程中,没有关于sqrt的定义和运算,也就没用例程中的“sqrt_shared.h”
  • 您有没有如下图操作?

  • 另外您可以参考下之前的帖子

    e2echina.ti.com/.../498735