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.

TMS320F280021: F280021 实现FPU中的FFT运算,如何配置相关的lib文件到自建的工程中

Part Number: TMS320F280021
Other Parts Discussed in Thread: C2000WARE

Dear All:

  在项目中需要用到对AD采集到的数据做FFT运算,在自建的工程中,已经把FFT相关的函数加载到程序中,但是lib文件添加rts2800_fpu32.lib和c28x_fpu_dsp_library_eabi.lib文件后,

工程还是编译不成功,截图如下:

编译出错,如下:

总结如下:

1、F280021使用  配置out format 使用eabi格式才能正常编译,是否lib 文件也要选择c28x_fpu_dsp_library_eabi.lib 文件 ,

2、关于280021使用FPU中的 FFT 使用具体那个lib文件我也不清楚,希望各位指教,

  • 希望得到各位工程师的帮助!!!

  • 好的,我会在测试后给您回复

  • 我在E2E上看到了和您相同的问题,您可以参考一下回复

    https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/756962/ccs-tms320f280049-will-c2000-c-c-code-generation-tools-18-9-0-sts-support-generating-eabi-elf-output-format-on-f280049 

  • 这个库c28x_fpu_dsp_library_eabi.lib 我添加过了,但也是不行(自建工程,我是否正确添加,也不确定?),

    其实我要得结果很清晰:F280021 做FPU的FFT,添加什么库,怎么改CMD文件,能正确编译

    RFFT_f32_sincostable(&rfft);

    RFFT_adc_f32u(&rfft_adc);
    RFFT_f32_mag(&rfft);

    这个几个函数,最后得到正确的数据频谱

  • 您可以看一下C2000ware下的相关例程

    C:\ti\c2000\C2000Ware_3_04_00_00\libraries\dsp\FPU\c28\source\fpu32

    如 2837x_CFFT 等,其基本lib的使用是相同原理

  • 通过这样更改,居然编译成功了。