您好,
想要通过Uart和LCD显示simple peripheral例程中的一些数据,
因为程序中有display的代码,于是我尝试在工程中去掉了Display_DISABLE_ALL 、BOARD_DISPLAY_EXCLUDE_UART这两个预处理符号
加上了BOARD_DISPLAY_USE_UART=1,
却在编译的时候报错:
#10010 null: errors encountered during linking;
#10234-D null: unresolved symbols remain simple_peripheral_cc1350lp_app_FlashROM C/C++ Problem
unresolved symbol Display_doClearLines, first referenced in <whole-program>
unresolved symbol Display_doOpen, first referenced in <whole-program>
unresolved symbol Display_doParamsInit, first referenced in <whole-program>
unresolved symbol Display_doPrintf, first referenced in <whole-program>
Display_doOpen等这几个都是display.h里的函数,不知道为什么会有这种情况
还望您能够解答疑惑,谢谢
Viki Shi:
去掉了Display_DISABLE_ALL 、BOARD_DISPLAY_EXCLUDE_UART这两个预处理符号——除此之外,再使能BOARD_DISPLAY_EXCLUDE_LCD
Zhonghao Yang:
回复 Viki Shi:
您好,
我照您说的加入了BOARD_DISPLAY_EXCLUDE_LCD=1这个预处理符号,但是在link的时候还是会报错
undefined first referenced
symbol in file
——— —————-
Display_doClearLines <whole-program>
Display_doOpen <whole-program>
Display_doParamsInit <whole-program>
Display_doPrintf <whole-program>
现在我的预处理符号有:
${COM_TI_SIMPLELINK_CC13X0_SDK_SYMBOLS}
CC1350_LAUNCHXL
CC13XX
DeviceFamily_CC13X0
HEAPMGR_SIZE=0
ICALL_MAX_NUM_ENTITIES=6
ICALL_MAX_NUM_TASKS=3
POWER_SAVING
${INHERITED_SYMBOLS}
BOARD_DISPLAY_USE_UART=1
USE_ICALL
USE_CORE_SDK
BOARD_DISPLAY_EXCLUDE_LCD=1
xdc_runtime_Assert_DISABLE_ALL
xdc_runtime_Log_DISABLE_ALL
请您帮我看看是哪出了问题好吗?
Viki Shi:
回复 Zhonghao Yang:
是不是文件没包含?把Display.c和DisplayUart.c添加进去,路径是<sdk>\source\ti\display
Zhonghao Yang:
回复 Viki Shi:
我所有用到这些函数的文件中都包含了这两个头文件,并且又重新手动添加了引用路径,但还是一样的报错