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.

[参考译文] TMS320F280033:错误#10234-D:未解析符号仍保留

Guru**** 2927270 points

Other Parts Discussed in Thread: C2000WARE

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1363697/tms320f280033-error-10234-d-unresolved-symbols-remain

器件型号:TMS320F280033
主题中讨论的其他器件:test2C2000WARE

大家好。 我尝试以多种不同的方式包含此库文件、但无法解决此错误。 只有当我在项目目录中添加物理文件时、此问题才会得到解决。 我做错了吗?

我正在尝试在此处包含的库文件是 driverlib.lib。  我附上了构建日志以供参考。

**** Build of configuration Debug for project DLIB_TEST2 ****

"C:\\ti\\ccs1250\\ccs\\utils\\bin\\gmake" -k -j 16 all -O 
 
Building file: "../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=fpu32 --tmu_support=tmu0 --vcu_support=vcrc --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/driverlib/f28003x/driverlib" --include_path="C:/CCS/TEST/DLIB_TEST2" --include_path="C:/CCS/TEST/DLIB_TEST2/misc" -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=coffabi --preproc_with_compile --preproc_dependency="main.d_raw"  "../main.c"
Finished building: "../main.c"
 
Building target: "DLIB_TEST2.out"
Invoking: C2000 Linker
"C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcrc -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=coffabi -z -m"DLIB_TEST2.map" --stack_size=0x200 --warn_sections -i"C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib" -i"C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f28003x/driverlib/ccs/Debug" -i"C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="DLIB_TEST2_linkInfo.xml" --rom_model -o "DLIB_TEST2.out" "./main.obj" "../F280033_flash_lnk.cmd" "C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f28003x/driverlib/ccs/Debug/driverlib.lib"  -llibc.a -l"C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f28003x/driverlib/ccs/Debug/driverlib.lib" -ldriverlib.lib -l"C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f28003x/driverlib/ccs/Debug/driverlib.lib" 
<Linking>
warning #10373-D: library "C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f28003x/driverlib/ccs/Debug/driverlib.lib" contains ELF object files which are incompatible with the TI-COFF output file.  Ensure you are using the proper library.
warning #10373-D: library "C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f28003x/driverlib/ccs/Debug/driverlib.lib" contains ELF object files which are incompatible with the TI-COFF output file.  Ensure you are using the proper library.
warning #10373-D: library "C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f28003x/driverlib/ccs/Debug/driverlib.lib" contains ELF object files which are incompatible with the TI-COFF output file.  Ensure you are using the proper library.
warning #10373-D: library "C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f28003x/driverlib/ccs/Debug/driverlib.lib" contains ELF object files which are incompatible with the TI-COFF output file.  Ensure you are using the proper library.
warning #10373-D: library "C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f28003x/driverlib/ccs/Debug/driverlib.lib" contains ELF object files which are incompatible with the TI-COFF output file.  Ensure you are using the proper library.
warning #10373-D: library "C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f28003x/driverlib/ccs/Debug/driverlib.lib" contains ELF object files which are incompatible with the TI-COFF output file.  Ensure you are using the proper library.
warning #10373-D: library "C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f28003x/driverlib/ccs/Debug/driverlib.lib" contains ELF object files which are incompatible with the TI-COFF output file.  Ensure you are using the proper library.
warning #10373-D: library "C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f28003x/driverlib/ccs/Debug/driverlib.lib" contains ELF object files which are incompatible with the TI-COFF output file.  Ensure you are using the proper library.
 
 undefined           first referenced
  symbol                 in file     
 ---------           ----------------
 _GPIO_setAnalogMode ./main.obj      
 
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "DLIB_TEST2.out" not built
 
>> Compilation failure
makefile:139: recipe for target 'DLIB_TEST2.out' failed
gmake[1]: *** [DLIB_TEST2.out] Error 1
makefile:135: recipe for target 'all' failed
gmake: *** [all] Error 2

**** Build Finished ****

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

    您好!

    您能否检查该函数是否被正确调用。 函数名称为"GPIO_setAnalogMode"。 我可以在函数名称中看到一个额外的下划线。 您能否将其删除并重新编译该项目?

    谢谢

    阿斯温

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

    您好、Aswin、

    感谢您的答复。 我认为它被正确地命名了。 为了验证是否相同、我尝试从 ADC.h 调用了不同的函数、看起来与相同。 为您的基准电压附加一张相同的屏幕截图、

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

    尊敬的 Ashwin:

    是否可以以 zip 格式发送项目以供进一步分析?

    该文件应该与 include 文件或工程属性中的一些不同设置相关。

    同时、我建议您查看 C2000Ware SDK 中的空 driverlib 项目。 您可以尝试使用它来开发您的自定义代码。

    请告诉我你对此有何看法。

    谢谢

    阿斯温

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

    好的、可以。 也会尝试该功能。  

    zip 文件已附加。 感谢您的帮助。

    e2e.ti.com/.../DLIB_5F00_TEST2.zip 

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

    尊敬的 Ashwin:

    我已经检查了工程属性、编译器标记中有一个设置添加到 COFFABI 中。 目前、我们支持 EABI 格式。 将 COFFABI 更新为 EABI 后、构建过程会很顺利。

    --abi =coffabi to --abi=eabi

    请对进行此更改、然后查看是否可以解决您的问题。

    谢谢

    阿斯温

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

    您好、Aswin、感谢您的及时响应。 这解决了我的错误。