TI中文支持网
TI专业的中文技术问题搜集分享网站

如何调用TI自带的FFT函数

大家好,我的项目现在需要用到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函数时,需要哪些步骤呢?有相关资料吗?谢谢了!

Green Deng:现在不清楚你的添加方法,一般来说是这样的:首先需要在CCS的工程文件中链接FFT库:在工程设置中C2000 Linker——file search path中添加该库和路径。并在主程序中包含下面头文件:#include "FPU.h"。

大家好,我的项目现在需要用到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函数时,需要哪些步骤呢?有相关资料吗?谢谢了!

user6237061:

回复 Green Deng:

好的,非常感谢您的回复~

请问当我查看controlSUITE中的DSPlib 中的F28335中的FFT相关函数的时候,为什么文件中出现的是2837x相关的例程呢?

(路径如下:Chinese>库>DSP库>浮点>项目>打开示例项目文件)2837x_cfft/12/2/19 12:31:13 PM

2837x_cfft_unaligned_scaledmagnitude/12/2/19 12:31:13 PM

2837x_icfft/12/2/19 12:31:13 PM

2837x_rfft/12/2/19 12:31:13 PM

2837x_rfft_adc/12/2/19 12:31:13 PM

2837x_rfft_adc_rt/12/2/19 12:31:14 PM

2837x_rfft_unaligned_scaledmagnitude/12/2/19 12:31:14 PM

2837x_windowedcfft/12/2/19 12:31:14 PM

2837x_windowedrfft/12/2/19 12:31:14 PM

期待您的回复~

感谢!

大家好,我的项目现在需要用到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函数时,需要哪些步骤呢?有相关资料吗?谢谢了!

user6237061:

回复 Green Deng:

好的,谢谢您的回答。祝您生活愉快!

赞(0)
未经允许不得转载:TI中文支持网 » 如何调用TI自带的FFT函数
分享到: 更多 (0)