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.

[参考译文] CC1352R:simplelink 库中未定义的引用

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

https://e2e.ti.com/support/wireless-connectivity/sub-1-ghz-group/sub-1-ghz/f/sub-1-ghz-forum/1607166/cc1352r-undefined-reference-in-simplelink-library

器件型号: CC1352R

您好、

我尝试在 CC1352 的应用中使用 GPTimer 驱动程序。  然而,我不断从驱动程序库目标文件 (TimerCC26XX.c.obj ) 的 Timer_OPEN 函数中获得一个未定义的引用。  以下是整个错误消息:

makefile:165: recipe for target 'segra_cc1352_r1.out' failed
/home/jgrasty/ti/ccs1260/ccs/tools/compiler/gcc-arm-none-eabi-9-2019-q4-major/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: /home/jgrasty/ti/simplelink_cc13xx_cc26xx_sdk_7_40_00_77/source/ti/drivers/lib/gcc/m4f/drivers_cc13x2.a(TimerCC26XX.c.obj): in function `Timer_open':
/home/developer/.conan/data/coresdk_cc13xx_cc26xx/7.40.04.00/library-sb/ga/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/exports/coresdk_cc13xx_cc26xx_7_40_04_00/source/ti/drivers/timer/TimerCC26XX.c:217: undefined reference to `Timer_count'
/home/jgrasty/ti/ccs1260/ccs/tools/compiler/gcc-arm-none-eabi-9-2019-q4-major/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: /home/developer/.conan/data/coresdk_cc13xx_cc26xx/7.40.04.00/library-sb/ga/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/exports/coresdk_cc13xx_cc26xx_7_40_04_00/source/ti/drivers/timer/TimerCC26XX.c:217: undefined reference to `Timer_config'

谢谢、

Jeff

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

    尊敬的 Jeff:

    对于 TI RTOS、您使用的是 SDK 中预编译的库。  

     头文件和库中的 API 列表看起来几乎不同?  

    您是否可以尝试将  TimerCC26XX.c 和 TimerCC26XX.h 文件复制到应用工作区文件夹并重试?

    谢谢、

    Marie H

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

    嗨、Marie。

    在未定义对 Timer_COUNT 和 Timer_CONFIG 的引用时、该操作仍然失败。

    makefile:166: recipe for target 'segra_cc1352_r1.out' failed
    /home/jgrasty/ti/ccs1260/ccs/tools/compiler/gcc-arm-none-eabi-9-2019-q4-major/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: ./TimerCC26XX.o: in function `Timer_open':
    /home/jgrasty/git/segra/c/ti/segra_cc1352_r1/Debug/../TimerCC26XX.c:250: undefined reference to `Timer_count'
    /home/jgrasty/ti/ccs1260/ccs/tools/compiler/gcc-arm-none-eabi-9-2019-q4-major/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: /home/jgrasty/git/segra/c/ti/segra_cc1352_r1/Debug/../TimerCC26XX.c:250: undefined reference to `Timer_config'
    collect2: error: ld returned 1 exit status

    谢谢、

    Jeff