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.

K2 DSP STK编译不通过

Other Parts Discussed in Thread: 66AK2E05

你们好,我在论坛里下了K2_STK_DSP_v1.1,解压缩之后打开CCS6.1.1,工作区间为解压后的文件目录,下面是我的linked resource图,没有报错

然后根据K2E开发板来配置general和predefine symbols(_TMS320C6000是c6x.h头文件需要定义的,后面会讲到)

添加varilable PDK_INSTALL_PATH

修改头文件目录,因为我是在linux系统里面装CCS的,所以'\'都被改成'/',之后头文件都能找到

于是导入其中的GE工程,开始第一次编译,出错,显示有些头文件没找到,我看一眼发现是大小写问题,比如GE_Test写成GE_test,修改后还出错

显示一些CSL_EthernetSerdes的函数没有定义,我打开csl_serdes_ethernet.h,发现下列函数只有CSL_EthernetSerdesInit有定义,于是我就改用K2_STK_ARM_v1里面common/SerDes/csl_serdes_ethernet.h覆盖原来的文件,这样下列函数都有了定义

把这个解决了之后再编译,出现如下错误:

Description Resource Path Location Type
#10010 errors encountered during linking; "GE.out" not built GE C/C++ Problem
<a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/10234.html">#10234-D</a> unresolved symbols remain GE C/C++ Problem
unresolved symbol _mfence, first referenced in ./src/GE_PktDMA_Init.obj GE C/C++ Problem
#10247-D creating output section "PacketData" without a SECTIONS specification GE C/C++ Problem
#10247-D creating output section "QMSS_Data" without a SECTIONS specification GE C/C++ Problem
#10247-D creating output section "vecs" without a SECTIONS specification GE C/C++ Problem
#1557-D white space between backslash and newline in line splice ignored K2_DDR_Init.c /GE/src line 273 C/C++ Problem
#179-D variable "i" was declared but never referenced GE_packets_process.c /GE/src line 39 C/C++ Problem
#179-D variable "i" was declared but never referenced GE_packets_process.c /GE/src line 69 C/C++ Problem
#179-D variable "j" was declared but never referenced GE_PktDMA_Init.c /GE/src line 244 C/C++ Problem
#179-D variable "uiDescriptor" was declared but never referenced GE_PktDMA_Init.c /GE/src line 245 C/C++ Problem
#179-D variable "ullpData" was declared but never referenced GE_packets_process.c /GE/src line 41 C/C++ Problem
#179-D variable "ullpData" was declared but never referenced GE_packets_process.c /GE/src line 71 C/C++ Problem
#190-D enumerated type mixed with another type K2_GE_Init_drv.c /GE/src line 948 C/C++ Problem
#190-D enumerated type mixed with another type K2_common.c /GE/src line 2292 C/C++ Problem
#69-D integer conversion resulted in a change of sign .ccsproject /GE line 121, external location: /home/hjj/K2_STK_DSP_v1.1/common/K2_Serdes_init.h C/C++ Problem
#69-D integer conversion resulted in a change of sign .ccsproject /GE line 98, external location: /home/hjj/K2_STK_DSP_v1.1/common/K2_Serdes_init.h C/C++ Problem
#69-D integer conversion resulted in a change of sign K2_DDR_Init.c /GE/src line 108 C/C++ Problem

意思应该是_mfence()这个函数出问题,没有定义,我搜论坛里帖子,说要加头文件c6x.h,我加了之后并且预定义_TMS320C6000,_mfence()函数变成紫色(如下图),定义成功

    

重新编译后发现仍然出现同样的错误,我想应该是c6x.h里面只有声明,没有真正的_mfence()函数,真正的应该包含在一个库文件里,但是我添加了各种库文件都不成功,我添加的库文件如下图

请问我应该添加哪个库文件呢?还是说K2_STK_DSP_v1.1版本有问题呢?

  • 工程都测试过,应无问题;

    _mfence是内联指令,不需要有库支持;

    你换到7.4系列的编译器上试试,8.1太新可能还不完善。

  • 你好Allen,我换了CCS5.5和MCSDK3.1.1.4,用的编译器是7.4.4,在不指定调试器件(Generic C66xx Device)的情况下确实能编译不出错,如下图

    编译信息如下,只有19个warning

    Description Resource Path Location Type
    #172-D pointer points outside of underlying object GE_PktDMA_Init.c /GE/src line 74 C/C++ Problem
    #179-D variable "ullpData" was declared but never referenced GE_packets_process.c /GE/src line 69 C/C++ Problem
    #69-D integer conversion resulted in a change of sign K2_GE_Init_drv.c /GE/src line 98, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_Serdes_init.h C/C++ Problem
    #179-D variable "i" was declared but never referenced GE_packets_process.c /GE/src line 67 C/C++ Problem
    #69-D "/home/hjj/KE_STK_DSP_CCS5.5/K2_ST/K_hDoSmPe_/vh1j.j1//KcEo_mSmon/K2_Serdes_init.h integer conversion resulted in a change of sign GE_debug.c /GE/src line 98 C/C++ Problem
    #69-D integer conversion resulted in a change of sign K2_GE_Init_drv.c /GE/src line 121, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_Serdes_init.h C/C++ Problem
    #69-D integer conversion resulted in a change of sign GE_debug.c /GE/src line 121, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_Serdes_init.h C/C++ Problem
    #69-D integer conversion resulted in a change of sign GE_debug.c /GE/src line 98, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_Serdes_init.h C/C++ Problem
    #190-D enumerated type mixed with another type K2_GE_Init_drv.c /GE/src line 946 C/C++ Problem
    #69-D integer conversion resulted in a change of sign K2_DDR_Init.c /GE/src line 108 C/C++ Problem
    #179-D variable "i" was declared but never referenced GE_packets_process.c /GE/src line 37 C/C++ Problem
    #179-D variable "ullpData" was declared but never referenced GE_packets_process.c /GE/src line 39 C/C++ Problem
    #190-D enumerated type mixed with another type K2_common.c /GE/src line 2290 C/C++ Problem
    #69-D integer conversion resulted in a change of sign K2_DDR_Init.c /GE/src line 121, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_Serdes_init.h C/C++ Problem
    #179-D variable "uiDescriptor" was declared but never referenced GE_PktDMA_Init.c /GE/src line 243 C/C++ Problem
    #69-D integer conversion resulted in a change of sign K2_DDR_Init.c /GE/src line 98, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_Serdes_init.h C/C++ Problem
    #179-D variable "j" was declared but never referenced GE_PktDMA_Init.c /GE/src line 242 C/C++ Problem
    #172-D pointer points outside of underlying object GE_PktDMA_Init.c /GE/src line 85 C/C++ Problem
    #172-D pointer points outside of underlying object GE_PktDMA_Init.c /GE/src line 84 C/C++ Problem

    但如果我指定编译器件为66AK2E05时(我安装的emupack版本是1.1.1.0,板子U盘自带的1.0.0.4版本只有K2H系列的,没有K2E系列的),编译就会出错,如下图:

    编译信息如下:

    Description Resource Path Location Type
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly GE_vectors.asm /GE/src line 1995, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly GE_vectors.asm /GE/src line 1017, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly K2_Navigator_init_drv.c /GE/src line 1185, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_common.h C/C++ Problem
    #20 identifier "DNUM" is undefined K2_Navigator_init_drv.c /GE/src line 1260, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_common.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly GE_vectors.asm /GE/src line 1874, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    #20 /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1"/home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_Navigator_init_drv.h identifier "TSCL" is undefined K2_Navigator_init_drv.c /GE/src line 632 C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly GE_vectors.asm /GE/src line 1752, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    #20 identifier "TSCL" is undefined K2_Navigator_init_drv.c /GE/src line 682, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_Navigator_init_drv.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly GE_vectors.asm /GE/src line 1422, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly GE_vectors.asm /GE/src line 1142, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    #20 identifier "TSCL" is undefined GE_packets_process.c /GE/src line 217 C/C++ Problem
    #20 identifier "TSCL" is undefined GE_Interrupts.c /GE/src line 127 C/C++ Problem
    #20 identifier "TSCL" is undefined GE_packets_process.c /GE/src line 265 C/C++ Problem
    #20 identifier "DNUM" is undefined GE_Interrupts.c /GE/src line 34 C/C++ Problem
    #20 identifier "DNUM" is undefined K2_DDR_Init.c /GE/src line 1260, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_common.h C/C++ Problem
    #179-D variable "i" was declared but never referenced GE_packets_process.c /GE/src line 67 C/C++ Problem
    #179-D variable "ullpData" was declared but never referenced GE_packets_process.c /GE/src line 69 C/C++ Problem
    #179-D variable "i" was declared but never referenced GE_packets_process.c /GE/src line 37 C/C++ Problem
    #179-D variable "ullpData" was declared but never referenced GE_packets_process.c /GE/src line 39 C/C++ Problem
    #20 identifier "TSCL" is undefined GE_Interrupts.c /GE/src line 166 C/C++ Problem
    #20 identifier "TSCL" is undefined GE_Interrupts.c /GE/src line 162 C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly GE_Test.c /GE/src line 1752, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    #69-D integer conversion resulted in a change of sign K2_DDR_Init.c /GE/src line 108 C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly GE_debug.c /GE/src line 1874, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly GE_debug.c /GE/src line 895, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly GE_debug.c /GE/src line 1995, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly GE_Test.c /GE/src line 1422, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly GE_debug.c /GE/src line 1142, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly GE_Test.c /GE/src line 1142, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly GE_debug.c /GE/src line 1017, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly GE_Test.c /GE/src line 1017, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    #179-D variable "j" was declared but never referenced GE_PktDMA_Init.c /GE/src line 242 C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly GE_PktDMA_Init.c /GE/src line 245 C/C++ Problem
    #20 identifier "DNUM" is undefined GE_PktDMA_Init.c /GE/src line 150 C/C++ Problem
    #172-D pointer points outside of underlying object GE_PktDMA_Init.c /GE/src line 85 C/C++ Problem
    #172-D pointer points outside of underlying object GE_PktDMA_Init.c /GE/src line 84 C/C++ Problem
    #172-D pointer points outside of underlying object GE_PktDMA_Init.c /GE/src line 74 C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly GE_PktDMA_Init.c /GE/src line 332 C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly GE_PktDMA_Init.c /GE/src line 293 C/C++ Problem
    #179-D variable "uiDescriptor" was declared but never referenced GE_PktDMA_Init.c /GE/src line 243 C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly GE_packets_process.c /GE/src line 895, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly GE_packets_process.c /GE/src line 1874, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly GE_packets_process.c /GE/src line 1995, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    #20 identifier "DNUM" is undefined K2_Navigator_init_drv.c /GE/src line 463 C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly K2_Navigator_init_drv.c /GE/src line 449 C/C++ Problem
    #20 identifier "DNUM" is undefined K2_Navigator_init_drv.c /GE/src line 364 C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly GE_packets_process.c /GE/src line 1422, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly GE_packets_process.c /GE/src line 1752, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly K2_GE_Init_drv.c /GE/src line 1116, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_common.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly K2_GE_Init_drv.c /GE/src line 1130, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_common.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly K2_GE_Init_drv.c /GE/src line 1154, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_common.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly K2_GE_Init_drv.c /GE/src line 1092, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_common.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly K2_common.c /GE/src line 1185, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_common.h C/C++ Problem
    #20 identifier "DNUM" is undefined K2_common.c /GE/src line 1260, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_common.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly K2_common.c /GE/src line 1130, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_common.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly K2_common.c /GE/src line 1154, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_common.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly K2_common.c /GE/src line 1116, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_common.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1"/home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_common.h function declared implicitly common_test.c /GE/src line 1092 C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly common_test.c /GE/src line 449 C/C++ Problem
    #20 identifier "TSCL" is undefined common_test.c /GE/src line 478 C/C++ Problem
    #20 identifier "TSCL" is undefined common_test.c /GE/src line 545 C/C++ Problem
    #20 identifier "TSCL" is undefined common_test.c /GE/src line 583 C/C++ Problem
    #20 identifier "DNUM" is undefined GE_Test.c /GE/src line 452 C/C++ Problem
    #20 identifier "TSCL" is undefined GE_Test.c /GE/src line 180 C/C++ Problem
    #20 identifier "TSCL" is undefined K2_common.c /GE/src line 653 C/C++ Problem
    #20 identifier "TSCL" is undefined K2_common.c /GE/src line 631 C/C++ Problem
    #20 identifier "TSCH" is undefined K2_common.c /GE/src line 677 C/C++ Problem
    #20 identifier "TSCL" is undefined K2_common.c /GE/src line 676 C/C++ Problem
    #20 identifier "TSCH" is undefined K2_common.c /GE/src line 705 C/C++ Problem
    #20 identifier "TSCL" is undefined K2_common.c /GE/src line 704 C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> /usr/loc"/home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_common.h function declared implicitly common_test.c /GE/src line 1130 C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly K2_GE_Init_drv.c /GE/src line 701 C/C++ Problem
    #190-D enumerated type mixed with another type K2_GE_Init_drv.c /GE/src line 946 C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly K2_Board_Init.c /GE/src line 1116, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_common.h C/C++ Problem
    #20 identifier "IERR" is undefined K2_common.c /GE/src line 4030 C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly K2_Board_Init.c /GE/src line 1130, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_common.h C/C++ Problem
    #20 identifier "TSCL" is undefined K2_common.c /GE/src line 4102 C/C++ Problem
    #20 identifier "IERR" is undefined K2_common.c /GE/src line 3535 C/C++ Problem
    #20 identifier "TSR" is undefined K2_common.c /GE/src line 3538 C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly K2_Board_Init.c /GE/src line 1092, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_common.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly common_test.c /GE/src line 1017, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    #20 identifier "ECR" is undefined K2_common.c /GE/src line 3534 C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly common_test.c /GE/src line 895, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    #20 identifier "EFR" is undefined K2_common.c /GE/src line 3534 C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly common_test.c /GE/src line 1422, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly K2_Board_Init.c /GE/src line 1154, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_common.h C/C++ Problem
    #20 identifier "DNUM" is undefined K2_common.c /GE/src line 3420 C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly common_test.c /GE/src line 1142, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly K2_Board_Init.c /GE/src line 1185, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_common.h C/C++ Problem
    #20 identifier "TSCL" is undefined K2_common.c /GE/src line 3463 C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly common_test.c /GE/src line 1874, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    #190-D enumerated type mixed with another type K2_common.c /GE/src line 2290 C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly common_test.c /GE/src line 1752, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly K2_common.c /GE/src line 2803 C/C++ Problem
    #20 identifier "DNUM" is undefined K2_common.c /GE/src line 1536 C/C++ Problem
    #69-D integer conversion resulted in a change of sign common_test.c /GE/src line 98, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_Serdes_init.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly common_test.c /GE/src line 1995, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly K2_common.c /GE/src line 2283 C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly common_test.c /GE/src line 1092, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_common.h C/C++ Problem
    #20 identifier "TSCL" is undefined K2_common.c /GE/src line 1071 C/C++ Problem
    #20 identifier "DNUM" is undefined K2_common.c /GE/src line 1420 C/C++ Problem
    #69-D integer conversion resulted in a change of sign common_test.c /GE/src line 121, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_Serdes_init.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly common_test.c /GE/src line 1130, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_common.h C/C++ Problem
    #20 identifier "TSCL" is undefined K2_common.c /GE/src line 953 C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly common_test.c /GE/src line 1116, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_common.h C/C++ Problem
    #20 identifier "TSCL" is undefined K2_common.c /GE/src line 1022 C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly common_test.c /GE/src line 1154, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_common.h C/C++ Problem
    #20 identifier "DNUM" is undefined K2_common.c /GE/src line 4507 C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly common_test.c /GE/src line 1185, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_common.h C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly K2_common.c /GE/src line 4500 C/C++ Problem
    #20 identifier "DNUM" is undefined common_test.c /GE/src line 1260, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_common.h C/C++ Problem
    #20 identifier "TSR" is undefined K2_common.c /GE/src line 4259 C/C++ Problem
    #20 identifier "TSCL" is undefined common_test.c /GE/src line 632, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_Navigator_init_drv.h C/C++ Problem
    #20 identifier "ECR" is undefined K2_common.c /GE/src line 4234 C/C++ Problem
    #20 identifier "TSCL" is undefined common_test.c /GE/src line 682, external location: /home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_Navigator_init_drv.h C/C++ Problem
    #20 identifier "ITSR" is undefined K2_common.c /GE/src line 4217 C/C++ Problem
    #20 identifier "IERR" is undefined K2_common.c /GE/src line 4214 C/C++ Problem
    #69-D ../src/GE_Test"/home/hjj/KE_STK_DSP_CCS5.5/K2_STK_DSP_v1.1/common/K2_Serdes_init.h integer conversion resulted in a change of sign common_test.c /GE/src line 98 C/C++ Problem
    #20 identifier "EFR" is undefined K2_common.c /GE/src line 4212 C/C++ Problem
    #20 identifier "NTSR" is undefined K2_common.c /GE/src line 4210 C/C++ Problem
    #20 identifier "TSCH" is undefined K2_common.c /GE/src line 4201 C/C++ Problem
    #20 identifier "TSCL" is undefined K2_common.c /GE/src line 4200 C/C++ Problem
    #20 identifier "ECR" is undefined K2_common.c /GE/src line 4122 C/C++ Problem
    #20 identifier "ITSR" is undefined K2_common.c /GE/src line 4115 C/C++ Problem
    #20 identifier "EFR" is undefined K2_common.c /GE/src line 4111 C/C++ Problem
    #20 identifier "NTSR" is undefined K2_common.c /GE/src line 4109 C/C++ Problem
    #20 identifier "TSCH" is undefined K2_common.c /GE/src line 4104 C/C++ Problem
    <a href="file:/usr/local/program/ti/ccsv6/tools/compiler/dmed/HTML/225.html">#225-D</a> function declared implicitly GE_PktDMA_Init.c /GE/src line 895, external location: /usr/local/program/ccs5.5/ti/pdk_keystone2_3_01_01_04/packages/ti/csl/csl_cacheAux.h C/C++ Problem

    主要是说找不到DNUM、ECR、EFR、IERR、ITSR、NTSR、TSCH、TSCL、TSR这些定义,请问这该怎么解决?

  • 你好Allen,我在工程Properties-Build-C6000 Compiler-Processor Options里的Target processor version添加C6600,然后在Properties-General里把Output format改为eabi(ELF),编译就不出错了,产生以下warning:

    Description Resource Path Location Type
    #10210-D creating ".stack" section with default size of 0x400; use the -stack option to change the default size GE C/C++ Problem
    #10210-D creating ".sysmem" section with default size of 0x400; use the -heap option to change the default size GE C/C++ Problem
    #10247-D creating output section "PacketData" without a SECTIONS specification GE C/C++ Problem
    #10247-D creating output section "QMSS_Data" without a SECTIONS specification GE C/C++ Problem
    #10247-D creating output section "vecs" without a SECTIONS specification GE C/C++ Problem
    #172-D pointer points outside of underlying object GE_PktDMA_Init.c /GE/src line 74 C/C++ Problem
    #172-D pointer points outside of underlying object GE_PktDMA_Init.c /GE/src line 84 C/C++ Problem
    #172-D pointer points outside of underlying object GE_PktDMA_Init.c /GE/src line 85 C/C++ Problem
    #179-D variable "i" was declared but never referenced GE_packets_process.c /GE/src line 37 C/C++ Problem
    #179-D variable "i" was declared but never referenced GE_packets_process.c /GE/src line 67 C/C++ Problem
    #179-D variable "j" was declared but never referenced GE_PktDMA_Init.c /GE/src line 242 C/C++ Problem
    #179-D variable "uiDescriptor" was declared but never referenced GE_PktDMA_Init.c /GE/src line 243 C/C++ Problem
    #179-D variable "ullpData" was declared but never referenced GE_packets_process.c /GE/src line 39 C/C++ Problem
    #179-D variable "ullpData" was declared but never referenced GE_packets_process.c /GE/src line 69 C/C++ Problem
    #190-D enumerated type mixed with another type K2_GE_Init_drv.c /GE/src line 946 C/C++ Problem
    #190-D enumerated type mixed with another type K2_common.c /GE/src line 2290 C/C++ Problem
    #69-D "/home/hjj/K2_STK_DSP_v1.1/common/K2_Serdes_init.h integer conversion resulted in a change of sign GE_debug.c /GE/src line 98 C/C++ Problem
    #69-D integer conversion resulted in a change of sign .ccsproject /GE line 121, external location: /home/hjj/K2_STK_DSP_v1.1/common/K2_Serdes_init.h C/C++ Problem
    #69-D integer conversion resulted in a change of sign .ccsproject /GE line 98, external location: /home/hjj/K2_STK_DSP_v1.1/common/K2_Serdes_init.h C/C++ Problem
    #69-D integer conversion resulted in a change of sign K2_DDR_Init.c /GE/src line 108 C/C++ Problem

    后面的warning我都知道没影响,但我调试板子的时候出现以下错误:

    C66xx_0: Trouble Reading Memory Block at 0x400 on Page 0 of Length 0x4: (Error -1190 @ 0x400) Unable to access device memory. Verify that the memory address is in valid memory. If error persists, confirm configuration, power-cycle board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.14.5)
    C66xx_0: File Loader: Verification failed: Target failed to read 0x00000400
    C66xx_0: GEL: File: /home/hjj/K2_STK_DSP_v1.1/GE/LE/GE.out: Load failed.

    应该是以下这五条warning的影响吧?请问应该怎么修改?

    creating ".stack" section with default size of 0x400; use the -stack option to change the default size
    creating ".sysmem" section with default size of 0x400; use the -heap option to change the default size
    creating output section "PacketData" without a SECTIONS specification
    creating output section "QMSS_Data" without a SECTIONS specification

    creating output section "vecs" without a SECTIONS specification

  • 问题已解决,把K2.cmd放进工程targetConfigs目录下再编译即可消除那五条warning,板子也能正常调试

  • 问题没解决。。。虽然编译通过了,但调试时找不到main函数(No source available for "main() at /home/hjj/K2_STK_DSP_v1.1/GE/LE/GE.out:{3} 0xc08d5b4{4}"),虽然程序能跑起来,但是设置不了断点调试,我觉得应该是cmd的问题,原配的K2.cmd内容如下:

    -heap 0x800
    -stack 0x4000

    MEMORY
    {
    /* Local L2, 0.5~1MB*/
    VECTORS: o = 0x00800000 l = 0x00000200
    LL2_RW_DATA: o = 0x00800200 l = 0x0005FE00

    /* MSMC RAM 2~6MB*/
    MSMC_RAM: o = 0x0C000000 l = 0x00200000

    /* External DDR3, upto 2GB per core */
    DDR3_CODE: o = 0x80000000 l = 0x01000000
    DDR3_R_DATA: o = 0x81000000 l = 0x01000000
    DDR3_RW_DATA: o = 0x82000000 l = 0x0E000000
    }

    SECTIONS
    {
    vecs > VECTORS

    .text > MSMC_RAM
    .cinit > MSMC_RAM
    .const > MSMC_RAM
    .switch > MSMC_RAM

    .stack > LL2_RW_DATA
    GROUP
    {
    .neardata
    .rodata
    .bss
    } > LL2_RW_DATA
    .far > LL2_RW_DATA
    .fardata > LL2_RW_DATA
    .cio > LL2_RW_DATA
    .sysmem > LL2_RW_DATA
    QMSS_Data:linkingRAM1 > MSMC_RAM
    QMSS_Data:Descriptor_MSMC_RAM > MSMC_RAM
    PacketData:buffer_MSMC_RAM > MSMC_RAM
    QMSS_Data:Descriptor_LL2 > LL2_RW_DATA
    PacketData:buffer_LL2 > LL2_RW_DATA
    QMSS_Data:Descriptor_DDR > DDR3_RW_DATA
    PacketData:buffer_DDR > DDR3_RW_DATA

    }

    请问需要改动什么吗?