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:usb_ex1_dev_serial.c 程序将不会编译。

Guru**** 2925550 points

Other Parts Discussed in Thread: C2000WARE, TMDSCNCD28388D

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1652521/tms320f28388d-usb_ex1_dev_serial-c-program-will-not-compile

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

我正在尝试使“usb_ex1_dev_serial.c“在 TMDSCNCD28388D 开发板上运行。  我将 CCS 和 C2000Ware_26_00_00 下载到计算机上的所有默认位置。  我下载并运行“led_ex1_blinky“后未出现任何问题、以便我知道我已正确连接并且 JTAG 设置正确。  但是、usb_ex1_dev_serial.c 不会很复杂、因为它似乎无法找到某些#include 文件。  例如、我在构建时会得到以下内容:

“C:/ti/C2000Ware_26_00_00_00/libraries/communications/usb/f2838x/include/device/usbdevice.h “、第 74 行:致命错误#1965:无法打开源文件“include/usblib.h“
1 在编译“syscfg/usb_structs.c“时检测到灾难性错误。
编译已终止。

我已经查看了 C2000Ware 文件、并且上述所有文件都显示在正确的位置。  我认为这与 C2000 Compiler>> Include Options 设置中包含的路径有关、但我刚刚熟悉 CCS、不知道如何正确设置它。  请提供任何建议。

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

    您好、  

    我查看了一下、这是由于工程设置中缺少包含路径所致。   

    请 在工程的“Include Options“中添加路径“${USB_LIB_ROOT}../“作为包含路径。  

    请参阅以下快照。

    此致

    Siddharth