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.

[FAQ] [参考译文] [常见问题解答] C2000WARE:使用 bitfield 时出现编译器错误

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1320651/faq-c2000ware-compiler-errors-when-using-bitfield

器件型号:C2000WARE

由于未定义的引用、工程将不会构建。 如何解决此问题?

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

    要创建位域项目、需要检查一些事项。

    1. 确保在工程属性中定义了正确的 include 选项。
      1. C:\ti\c2000\c2000Ware_x_xx_xx\device_support\{device}\headers\include\
      2. C:\ti\c2000\c2000Ware_x_xx_xx\device_support\{device}\common\include\
    2. 请务必将以下文件添加到您的项目中、
      1. C:\ti\c2000\c2000Ware_x_xx_xx\device_support\{device}\headers\source\{device}_globalvariablesdef.c
      2. C:\ti\c2000\c2000Ware_x_xx_xx\device_support\{device}\headers\cmd\{device}_headers_nonbios*.cmd  
        1. 需要非 BIOS 文件(命名可能取决于器件、但名称中将包含非 BIOS)
    3. 确保按如下方式添加有关工程中要使用的外设的所有文件

    单击此处 查看要参考的类似主题。