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.

[参考译文] TMS320F28388D:C2000Ware_5_01_00_00 FPUfastRTS 例程

Guru**** 657930 points
Other Parts Discussed in Thread: C2000WARE
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1304385/tms320f28388d-c2000ware_5_01_00_00-fpufastrts-routine

器件型号:TMS320F28388D
主题中讨论的其他器件:C2000WARE

大家好、

例程中有一些定义问题。

C:\ti\c2000\C2000Ware_5_01_00_00\libraries\math\FPUfastRTS\c28\examples\atan_F64直接编译工程时报告错误

CCS 版本:Code Composer Studio 版本:12.5.0.00007

错误消息如下所示:

"C:\\ti\\ccs1250\\ccs\\utils\\bin\\gmake" -k all

Building file: "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/atan_f64/fastrts_atan.c"
Invoking: C2000 Compiler
"C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu64 --include_path="C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --include_path="C: /ti/c2000/C2000Ware_5_01_00_00/device_support/f2838x/common/include" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f2838x/driverlib/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/f2838x/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/" --include_path="C:/ ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/include" --advice:performance=all --define=RAM --define=USE_FID=0 --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi -k --asm_listing --c_src_interlist --preproc_with_compile --preproc_dependency="fastrts_atan.d_raw" --float_support=fpu64 "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/atan_f64/fastrts_atan.c"

>> Compilation failure
subdir_rules.mk:9: recipe for target 'fastrts_atan.obj' failed
"C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/include/fastrts.h", line 259: error #148: declaration is incompatible with "double atan(double)" (declared at line 374 of "C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include/math.h")
"C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/include/fastrts.h", line 281: error #148: declaration is incompatible with "double atan2(double, double)" (declared at line 377 of "C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include/math.h")
"C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/include/fastrts.h", line 302: error #148: declaration is incompatible with "double cos(double)" (declared at line 380 of "C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include/math.h")
"C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/include/fastrts.h", line 376: error #148: declaration is incompatible with "double sin(double)" (declared at line 383 of "C:/ ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include/math.h")
"C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/include/fastrts.h", line 403: error #148: declaration is incompatible with "double sqrt(double)" (declared at line 461 of "C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include/math.h")
5 errors detected in the compilation of "C:/ ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/atan_f64/fastrts_atan.c".
gmake: *** [fastrts_atan.obj] Error 1
Building file: "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/fastrts_error.asm"
Invoking: C2000 Compiler
"C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu64 --include_path="C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --include_path="C:/ ti/c2000/C2000Ware_5_01_00_00/device_support/f2838x/common/include" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f2838x/driverlib/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/f2838x/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/include" --advice:performance=all --define=RAM --define=USE_FID=0 --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi -k --asm_listing --c_src_interlist --preproc_with_compile --preproc_dependency=" fastrts_error.d_raw" --float_support=fpu64 "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/fastrts_error.asm"
Finished building: "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/fastrts_error.asm"

Building file: "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/fastrts_examples_main.c"
Invoking: C2000 Compiler
"C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu64 --include_path="C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/device_support/f2838x/common/include" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f2838x/driverlib/" --include_path="C:/ ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/f2838x/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/include" --advice:performance=all --define=RAM --define=USE_FID=0 --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi -k --asm_listing --c_src_interlist --preproc_ with_compile --preproc_dependency="fastrts_examples_main.d_raw" --float_support=fpu64 "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/fastrts_examples_main.c"
Finished building: "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/fastrts_examples_main.c"

Building file: "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/fastrts_ examples_setup.c"
Invoking: C2000 Compiler
"C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu64 --include_path="C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/device_support/f2838x/common/include" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f2838x/driverlib/" --include_path="C: /ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/f2838x/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/include" --advice:performance=all --define=RAM --define=USE_FID=0 --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi -k --asm_listing --c_src_interlist --preproc_ with_compile --preproc_dependency="fastrts_examples_setup.d_raw" --float_support=fpu64 "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/fastrts_examples_setup.c"
Finished building: "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/fastrts_examples_setup.c"

Building file: "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/atan_f64/golden.c"
Invoking: C2000 Compiler
"C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu64 --include_path="C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/device_support/f2838x/common/include" --include_path="C:/ ti/c2000/C2000Ware_5_01_00_00/driverlib/f2838x/driverlib/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/f2838x/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/include" --advice: performance=all --define=RAM --define=USE_FID=0 --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi -k --asm_listing --c_src_interlist --preproc_with_compile --preproc_dependency="golden.d_raw" --float_support=fpu64 "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/atan_f64/golden.c"
Finished building: "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/atan_f64/golden.c"

Building file: "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/atan_f64/input.c"
Invoking: C2000 Compiler
"C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu64 --include_path="C:/ ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/device_support/f2838x/common/include" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f2838x/driverlib/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/f2838x/" --include_path="C:/ ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/common/" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/include" --advice:performance=all --define=RAM --define=USE_FID=0 --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi -k --asm_listing --c_src_interlist --preproc_with_compile --preproc_dependency="input.d_raw" --float_support=fpu64 "C: /ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/atan_f64/input.c"
Finished building: "C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/FPUfastRTS/c28/examples/atan_f64/input.c"

gmake: Target 'all' not remade because of errors.

**** Build Finished ****

如何解决?

此致、

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Ben:

    我可以重现此问题、FPUfastRTS FPU64函数似乎与 math.h (标准 C 数学头文件)的某些函数名称冲突。 现在、我认为唯一最简单的修复方法是更改 FPUfastRTS 函数的名称。 我会尝试与其他人一起解决更永久性的问题。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Omer:

    现在,我认为唯一最简单的修复方法是更改 FPUfastRTS 函数的名称[/引号]

    谢谢。 您能否详细说明哪个文件中的函数?

    此致、

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    如果您在 CCS 中打开 Problems 窗口、您应该能够查看哪些函数发生冲突。 重命名这些名称。