TI中文支持网
TI专业的中文技术问题搜集分享网站

ccs5.1编译出错

各位专家,在CCS5.1中,我利用File-New-Ccs project建立了一个新的工程,工程选择为Empty project。在main.c里面输入如下代码:

#include <c6x.h>

#include <stdio.h>

#include <ti/csl/csl_chip.h>

void main(void) {

uint32_t coreID = CSL_chipReadReg (CSL_CHIP_DNUM);

return;

}

为什么Build工程时会出现错误。如下:

error #10234-D: unresolved symbols remain

error #10010: errors encountered during linking; "lk.out" not built。是不是在工程设置的地方需要设置一下?

谢谢大家解答。

guoping Lee:

回复 Andy Yin1:

ANDY 你好,

在这个文件夹下有很多类似的文件,比如还有ti.csl.ae66.mk,请问在建立工程时,我该怎么选择那一个文件呢?是不是只要用到了CSL函数就必须按照您说的方法添加csl lib?谢谢。

guoping Lee:

回复 Andy Yin1:

ANDY 你好,

为什么6678开发板的例子SRIO_LoopbackDioIsrexampleproject的File search path没有CSL lib,工程的设置如下

我在论坛里下载的工程文件IPC_example_on_6678,在File Search Path中除了添加\ti.csl.ae66,还需要添加什么文件吗?因为添加ti.csl.ae66后build工程后出现错误如下

Description Resource Path Location Type#10010 errors encountered during linking; "IPC_example_on_6678.out" not IPC_example_on_6678    C/C++ Problem<a href="file:/C:/ti/ccsv5/tools/compiler/dmed/HTML/10234.html">#10234-D</a>  unresolved symbols remain IPC_example_on_6678    C/C++ Problemunresolved symbol CSL_intcGlobalEnable, first referenced in ./ipc_interrupt.obj IPC_example_on_6678    C/C++ Problemunresolved symbol CSL_intcGlobalNmiEnable, first referenced in ./ipc_interrupt.obj IPC_example_on_6678    C/C++ Problemunresolved symbol CSL_intcHwControl, first referenced in ./ipc_interrupt.obj IPC_example_on_6678    C/C++ Problemunresolved symbol CSL_intcInit, first referenced in ./ipc_interrupt.obj IPC_example_on_6678    C/C++ Problemunresolved symbol CSL_intcOpen, first referenced in ./ipc_interrupt.obj IPC_example_on_6678    C/C++ Problemunresolved symbol CSL_intcPlugEventHandler, first referenced in ./ipc_interrupt.obj IPC_example_on_6678    C/C++ Problem谢谢。

 

Bruce Chen1:

回复 guoping Lee:

您好!

1. ti.csl.ae66.mk 是makefile文件,添加ti.csl.ae66即可

2. 再 添加 ti.csl.intc.ae66,注意路径的设置

guoping Lee:

回复 Bruce Chen1:

你好,请问有没有文件或者链接,说明什么情况下需要添加 ti.csl.intc.ae66,或者其它的文件,这个遵循的原则是什么?谢谢

tianlong su:

回复 Andy Yin1:

打开一个工程,编译出现以下错误,是缺少哪个链接库  

 

undefined            first referenced             symbol                  in file                                                                                                                               ———            —————-     _CACHE_clean         D:\\software\\TS-AVoIP-64x Experiment\\TS-AVoIP-64x Experiments\\TS-AVoIP-64x_examples\\Lab6.2-DM642_image_DTC\\debug\\video_ntsc_pal.obj  _CACHE_enableCaching

 D:\\software\\TS-AVoIP-64x Experiment\\TS-AVoIP-64x Experiments\\TS-AVoIP-64x_examples\\Lab6.2-DM642_image_DTC\\debug\\video_ntsc_pal.obj  _CACHE_setL2Mode    

 D:\\software\\TS-AVoIP-64x Experiment\\TS-AVoIP-64x Experiments\\TS-AVoIP-64x_examples\\Lab6.2-DM642_image_DTC\\debug\\video_ntsc_pal.obj  _CSLDM642_LIB_      

 D:\\software\\TS-AVoIP-64x Experiment\\TS-AVoIP-64x Experiments\\TS-AVoIP-64x_examples\\Lab6.2-DM642_image_DTC\\debug\\video_ntsc_pal.obj  _DAT_close           ..\lib\vport.l64<vportdis.o64>                                                                                                            _DAT_copy           

 D:\\software\\TS-AVoIP-64x Experiment\\TS-AVoIP-64x Experiments\\TS-AVoIP-64x_examples\\Lab6.2-DM642_image_DTC\\debug\\video_ntsc_pal.obj  _DAT_fill            ..\lib\vport.l64<vportdis.o64>                                                                                                            _DAT_open           

D:\\software\\TS-AVoIP-64x Experiment\\TS-AVoIP-64x Experiments\\TS-AVoIP-64x_examples\\Lab6.2-DM642_image_DTC\\debug\\video_ntsc_pal.obj  _EDMA_allocTable     ..\lib\vport.l64<vportcap.o64>                                                                                                            _EDMA_clearChannel   ..\lib\vport.l64<vportcap.o64>                                                                                                            _EDMA_close          ..\lib\vport.l64<vportcap.o64>                                                                                                            _EDMA_config         ..\lib\vport.l64<vportcap.o64>                                                                                                            _EDMA_disableChannel ..\lib\vport.l64<vportcap.o64>                                                                                                            _EDMA_enableChannel  ..\lib\vport.l64<vportcap.o64>                                                                                                            _EDMA_freeTable      ..\lib\vport.l64<vportcap.o64>                                                                                                            _EDMA_intAlloc       ..\lib\vport.l64<vportcap.o64>                                                                                                            _EDMA_intClear       ..\lib\vport.l64<vportcap.o64>                                                                                                            _EDMA_intDisable     ..\lib\vport.l64<vportcap.o64>                                                                                                            _EDMA_intDispatcher  ..\lib\vport.l64<vportcap.o64>                                                                                                            _EDMA_intEnable      ..\lib\vport.l64<vportcap.o64>                                                                                                            _EDMA_intFree        ..\lib\vport.l64<vportcap.o64>                                                                                                            _EDMA_intHook        ..\lib\vport.l64<vportcap.o64>                                                                                                            _EDMA_link           ..\lib\vport.l64<vportcap.o64>                                                                                                            _EDMA_open           ..\lib\vport.l64<vportcap.o64>                                                                                                            _EMIFA_config        ..\lib\evmdm642bsl.lib<evmdm642.obj>                                                                                                      _GPIO_open           ..\lib\evmdm642bsl.lib<evmdm642.obj>                                                                                                      _I2C_bb              ..\lib\vport.l64<_iic.o64>                                                                                                                _I2C_config          ..\lib\vport.l64<_iic.o64>                                                                                                                _I2C_getConfig       ..\lib\vport.l64<_iic.o64>                                                                                                                _I2C_open            ..\lib\evmdm642bsl.lib<evmdm642.obj>                                                                                                      _I2C_outOfReset      ..\lib\evmdm642bsl.lib<evmdm642.obj>                                                                                                      _I2C_readByte        ..\lib\vport.l64<_iic.o64>                                                                                                                _I2C_rrdy            ..\lib\vport.l64<_iic.o64>                                                                                                                _I2C_sendStop        ..\lib\vport.l64<_iic.o64>                                                                                                                _I2C_start           ..\lib\vport.l64<_iic.o64>                                                                                                                _I2C_writeByte       ..\lib\vport.l64<_iic.o64>                                                                                                                _I2C_xrdy            ..\lib\vport.l64<_iic.o64>                                                                                                                _IRQ_clear           ..\lib\vport.l64<vportcap.o64>                                                                                                            _IRQ_disable         ..\lib\vport.l64<vportcap.o64>                                                                                                            _IRQ_enable          ..\lib\vport.l64<vportcap.o64>                                                                                                            _IRQ_globalDisable   ..\lib\vport.l64<vportcap.o64>                                                                                                            _IRQ_globalRestore   ..\lib\vport.l64<vportcap.o64>                                                                                                            _IRQ_map             ..\lib\vport.l64<vportcap.o64>                                                                                                            __CSL_init           D:\\software\\TS-AVoIP-64x Experiment\\TS-AVoIP-64x Experiments\\TS-AVoIP-64x_examples\\Lab6.2-DM642_image_DTC\\debug\\video_ntsc_pal.obj

error: unresolved symbols remain error: errors encountered during linking; "./debug/DM642_image_DTC.out" not    built

>> Compilation failure

Build Complete,   1 Errors, 0 Warnings, 0 Remarks.

Andy Yin1:

回复 tianlong su:

你用的是DM642平台么,请把问题发到达芬奇子论坛,这里只管C64及keystone,谢谢。

赞(0)
未经允许不得转载:TI中文支持网 » ccs5.1编译出错
分享到: 更多 (0)