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.

如何调用TI自带的FFT函数

Other Parts Discussed in Thread: CONTROLSUITE

大家好,我的项目现在需要用到FFT函数,现在遇到了一些问题:

CCS版本:6.2.0,芯片为F28335

为什么当我编译lib中自带的2837X_CFFT时,编译会出错呢?

报错内容如下:

**** Build of configuration RAM for project 2837x_CFFT ****

"D:\\CCS6.2\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: D:/CCS6.2/workspace_v6_2/FPU/v1_50_00_00/examples/common/examples_setup.c'
'Invoking: C2000 Compiler'
"D:/CCS6.2/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 --tmu_support=tmu0 --include_path="D:/libs/math/FPUfastRTS/v100" --include_path="D:/CCS6.2/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="D:/device_support/F2837xD/v150/F2837xD_common/include" --include_path="D:/device_support/F2837xD/v150/F2837xD_headers/include" --include_path="D:/CCS6.2/workspace_v6_2/FPU/v1_50_00_00/examples/common" --include_path="D:/CCS6.2/workspace_v6_2/FPU/v1_50_00_00/include" -g --define=CPU1 --diag_warning=225 --preproc_with_compile --preproc_dependency="examples_setup.d"  "D:/CCS6.2/workspace_v6_2/FPU/v1_50_00_00/examples/common/examples_setup.c"

>> Compilation failure
subdir_rules.mk:63: recipe for target 'examples_setup.obj' failed
gmake: *** No rule to make target 'D:/device_support/F2837xD/v150/F2837xD_common/source/F2837xD_CodeStartBranch.asm', needed by 'F2837xD_CodeStartBranch.obj'.
gmake: *** No rule to make target 'D:/device_support/F2837xD/v150/F2837xD_common/source/F2837xD_DefaultISR.c', needed by 'F2837xD_DefaultISR.obj'.
gmake: *** No rule to make target 'D:/device_support/F2837xD/v150/F2837xD_headers/source/F2837xD_GlobalVariableDefs.c', needed by 'F2837xD_GlobalVariableDefs.obj'.
gmake: *** No rule to make target 'D:/device_support/F2837xD/v150/F2837xD_common/source/F2837xD_Gpio.c', needed by 'F2837xD_Gpio.obj'.
gmake: *** No rule to make target 'D:/device_support/F2837xD/v150/F2837xD_common/source/F2837xD_PieCtrl.c', needed by 'F2837xD_PieCtrl.obj'.
gmake: *** No rule to make target 'D:/device_support/F2837xD/v150/F2837xD_common/source/F2837xD_PieVect.c', needed by 'F2837xD_PieVect.obj'.
gmake: *** No rule to make target 'D:/device_support/F2837xD/v150/F2837xD_common/source/F2837xD_SysCtrl.c', needed by 'F2837xD_SysCtrl.obj'.
gmake: *** No rule to make target 'D:/device_support/F2837xD/v150/F2837xD_common/source/F2837xD_usDelay.asm', needed by 'F2837xD_usDelay.obj'.
"D:\CCS6.2\workspace_v6_2\FPU\v1_50_00_00\examples\common\examples_setup.h", line 23: fatal error: cannot open source file "F28x_Project.h"
1 catastrophic error detected in the compilation of "D:/CCS6.2/workspace_v6_2/FPU/v1_50_00_00/examples/common/examples_setup.c".
Compilation terminated.
gmake: *** [examples_setup.obj] Error 1
'Building file: ../main.c'
'Invoking: C2000 Compiler'
"D:/CCS6.2/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 --tmu_support=tmu0 --include_path="D:/libs/math/FPUfastRTS/v100" --include_path="D:/CCS6.2/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="D:/device_support/F2837xD/v150/F2837xD_common/include" --include_path="D:/device_support/F2837xD/v150/F2837xD_headers/include" --include_path="D:/CCS6.2/workspace_v6_2/FPU/v1_50_00_00/examples/common" --include_path="D:/CCS6.2/workspace_v6_2/FPU/v1_50_00_00/include" -g --define=CPU1 --diag_warning=225 --preproc_with_compile --preproc_dependency="main.d"  "../main.c"

>> Compilation failure
subdir_rules.mk:70: recipe for target 'main.obj' failed
"D:/CCS6.2/workspace_v6_2/FPU/v1_50_00_00/examples/common/examples_setup.h", line 23: fatal error: cannot open source file "F28x_Project.h"
1 catastrophic error detected in the compilation of "../main.c".
Compilation terminated.
gmake: *** [main.obj] Error 1
gmake: *** No rule to make target 'D:/device_support/F2837xD/v150/F2837xD_headers/cmd/F2837xD_Headers_nonBIOS_cpu1.cmd', needed by '2837x_CFFT.out'.
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

感谢大家的帮助~

还有一个小问题:当我想在另一个工程中调用TI自带的FFT函数时,需要哪些步骤呢?有相关资料吗?谢谢了!