TI E2E 英文论坛海量技术问答的中文版全新上线,可点击相关论坛查看,或在站内搜索 “参考译文” 获取。

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.

TMDSCNCD28388D: 新建工程编译报错:declaration is incompatible with "void __error__(const char *, uint32_t)"

Part Number: TMDSCNCD28388D
Other Parts Discussed in Thread: C2000WARE

您好,我在复现一个官方的例程(led_ex1_blinky),我首先新建了一个C28x的工程,然后将例程中的文件全部copy到了新的工程中,并按照例程的工程属性,修改了新工程属性的include option,predefined symbol和file search path。然后进行编译,编译的时候报错declaration is incompatible with "void __error__(const char *, uint32_t)" (declared at line 51 of "D:\ti\c2000\C2000Ware_4_01_00_00\driverlib\f2838x\driverlib\debug.h") device.h /led_c28x_test/device line 487 C/C++ Problem,具体错误情况如下图所示:

此外我发现直接将driverlib拷贝到工程目录下也会报错。不知道是不是我再配置工程属性的时候漏了哪一部还是存在别的问题。

非常感谢您能为我提供一些帮助。