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.

CCS6.1版本快速浮点库配置问题

Other Parts Discussed in Thread: CONTROLSUITE

只要将rts2800_fpu32_fast_supplement调用优先级设置高于rts2800_fpu32,就会报如下错误。

error #10056: symbol "_sin" redefined: first defined in "D:/workspace_v6_1_3/DCAC6.0/luyouqi_dcac_v1.0_20190103_1_CCS6.1/rts2800_fpu32_fast_supplement.lib<sin_f32.obj>"; redefined in "C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_16.9.10.LTS/lib/rts2800_fpu32.lib<s_sinf.obj>"

重复包含这个东西,TI应该考虑好吧。

问题补充:

不要让我去参考controlSUITE自带的F2806X里面的FPU工程去配置,因为那个工程根本没有配置好快速浮点功能。

C28x_FPU_FastRTS.pdf这个文件我也看过了。

编译器我试了:V15和V16两种版本。

统统不行。

  • 参考"Young Hu"工程师的回复

    在你的工程中增加以下代码【在你的工程中的任一个.c文件中增加以下代码即可】

    #include <math.h>

    #include <float.h>

    #if DBL_MANT_DIG == FLT_MANT_DIG

    float cosf(float x) { return cos(x); }

    float sinf(float x) { return sin(x); }

    float sqrtf(float x) { return sqrt(x); }

    #endif

    增加以上代码,问题解决。

    debug后的map文件会出现以下字样:

    003396cf 00000034 rts2800_fpu32_fast_supplement.lib : cos_f32.obj (.text)
    00339703 00000034 : sin_f32.obj (.text)
    00339737 00000033 iclarke.obj (.text)
    0033976a 0000002a rts2800_fpu32.lib : l_div28.obj (.text)
    00339794 00000029 : exit.obj (.text)
    003397bd 00000028 DSP2833x_PieCtrl.obj (.text)
    003397e5 00000024 rts2800_fpu32.lib : cpy_tbl.obj (.text)
    00339809 00000021 rts2800_fpu32_fast_supplement.lib : sqrt_f32.obj (.text)

    0033982a 00000020 DSP2833x_PieVect.obj (.text)
    0033984a 0000001d rts2800_fpu32.lib : memcpy.obj (.text)
    00339867 0000001c DSP2833x_XIntrupt.obj (.text)
    00339883 0000001c clarke.obj (.text)
    0033989f 00000019 rts2800_fpu32.lib : args_main.obj (.text)
    003398b8 00000019 rts2800_fpu32_fast_supplement.lib : div_f32.obj (.text)

    FPUmathTables
    * 0 003febdc 000006a0 NOLOAD SECTION
    003febdc 000006a0 rts2800_fpu32_fast_supplement.lib : FPUmathTables.obj (FPUmathTables)

     

     

  • 谢谢楼上分享!

    另外附上原帖

    e2e.ti.com/.../569552
  • 你好!我有相关问题请教一下。我已经按照相关要求进行如下配置: 1 in Runtime Model Options, under "Specify floating point support (--float_support) pull-down menu: Select "fpu32". 2 In "Include linker file or command file as input (--library, -l)"box, click green plus sign and add rts2800_fpu32.lib(run-time support library). 但是,编译工程后,警告我“function sin declared implicitly”,并且计算结果也是错的。请问是什么情况?谢谢你!