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.

[参考译文] CC2662R-Q1:我一直收到错误消息"未解析符号 NOROM_SetupTrimDevice、首先在 CCS 中./startup_ccs.obj"

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

https://e2e.ti.com/support/wireless-connectivity/other-wireless-group/other-wireless/f/other-wireless-technologies-forum/1245546/cc2662r-q1-i-keep-getting-the-error-message-unresolved-symbol-norom_setuptrimdevice-first-referenced-in-startup_ccs-obj-in-ccs

器件型号:CC2662R-Q1

每次我尝试构建项目时、都会显示该消息。  

以下是 setup.h、其中除了.obj 文件之外、还提到了符号。

#if !定义(DOXYGEN)
#define SetupTrimDevice NOROM_SetupTrimDevice
#endif

extern void SetupTrimDevice( void );

#if !定义(DDRIVERLIB_NOROM)&&!定义(DOXYGEN)
#include "../driverlib/rom.h "
#ifdef ROM_SetupTrimDevice
#undef 设置 TrimDevice
#define SetupTrimDevice ROM_SetupTrimDevice
#endif
#endif

.obj 文件似乎是由编译器创建的、它们提到了符号、但上面是定义符号的位置。  

main 也完全为空且 setup.h 完全不变。

我将如何解决该错误? 这与在其他地方定义 DOXYGEN 以及跳过 IF 的代码有关吗? 或者我是否没有包含重要文件或库?

提前感谢!