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

PDK下的例程pdk_C6678_1_0_0_16\packages\ti\drv\exampleProjects每次编译都有错???

        我试着去跑MCSDK下PDK里面多核的一些例子,比如exampleProjects\cppiExampleProject,结果每次都会出现下面的错误:

       "F:/Texas Instruments/ccsv5/tools/compiler/c6000/bin/cl6x" -mv64+ -g –define=INTERNAL_LINKING_RAM –undefine=L2_CACHE –include_path="F:/Texas Instruments/ccsv5/tools/compiler/c6000/include" –include_path="F:/Texas Instruments/pdk_C6678_1_0_0_16/packages" –include_path="F:/Texas Instruments/pdk_C6678_1_0_0_16/packages/ti/drv/cppi/example/sample"  –diag_warning=225 –abi=eabi –preproc_with_compile –preproc_dependency="sample.pp" –cmd_file="./configPkg/compiler.opt"  "F:/Texas Instruments/pdk_C6678_1_0_0_16/packages/ti/drv/cppi/example/sample/sample.c"
"F:/TEXASI~1/ccsv5/xdctools_3_20_08_88/packages/xdc/cfg/global.h", line 39: fatal error: could not open source file "F:/Texas Instruments/pdk_C6678_1_0_0_16/packages/ti/drv/exampleProjects/cppiExampleProject/Debug/configPkg/package/cfg/sample_xe66.h"
1 fatal error detected in the compilation of "F:/Texas Instruments/pdk_C6678_1_0_0_16/packages/ti/drv/cppi/example/sample/sample.c".
Compilation terminated.

       sample_xe66.h这个我确实没有找到,但是听一位学长说他是直接编译这里面的工程都可以跑通的,麻烦给位给解答一下~~初学者希望的得到各位的帮助~~谢谢!!

Yue Cao:

你好,

不知道你之前是否成功跑通过PDK的其他例子,如果没有,你先跑下这个例子,在如下位置

\pdk_C6678_1_0_0_21\packages\ti\platform\evmc6678l\platform_test

给程序是板子的测试程序,详细说明见文件夹的README.txt文件

tracyou:

回复 Yue Cao:

谢谢你的回答,我现在的问题是还没有拿到EVM的板子,只能做软件上面的仿真~我试了下这个\pdk_C6678_1_0_0_21\packages\ti\platform\evmc6678l\platform_test,并把NewTargetConfiguration.ccxml设置为6678的软件功能仿真,可以debug通过,但是在运行的时候在if (platform_init(&init_flags, &init_config) != Platform_EOK) {

    printf("Platform failed to initialize, errno = 0x%x \n", platform_errno);

   }这个地方就一直running,我想是软件仿真不适合这个的原因吧。以前用F:\Texas Instruments\pdk_C6678_1_0_0_16\packages\ti\csl\example\edma里面的程序是自己新建的工程,是可以跑通的。现在想试着跑多核的程序,就是F:\Texas Instruments\pdk_C6678_1_0_0_16\packages\ti\drv\exampleProjects下面的例子,听别人说是直接导入ccs下就可以跑的,我导入后就遇到了最上面的问题。其实在导入的时候有的时候#include <ti/drv/qmss/qmss_drv.h>前面显示?,我就在properties》Include Option里面把"F:\Texas Instruments\pdk_C6678_1_0_0_16\packages"加上?就可以消失,但是仍然编译不过,期待你们的解答,谢谢!!

tracyou:

回复 tracyou:

专家您好,我试了下

F:\Texas Instruments\pdk_C6678_1_0_0_16\packages\ti\drv\exampleProjects\qmInfraExampleProject这个例子,过程是:

1、在ccs下project》import  

2、导入后在#include <ti/drv/qmss/qmss_drv.h>前面显示“?”,我就在properties》Include Option里面把"F:\Texas Instruments\pdk_C6678_1_0_0_16\packages"加上,“?”消失 。

3、build,此时会出现:

configuring infrastructure_mode.xe66 from package/cfg/infrastructure_mode_xe66.cfg …

js: "F:/Texas Instruments/pdk_C6678_1_0_0_16/packages/ti/drv/qmss/example/InfrastructureMode/infrastructure_mode.cfg", line 27: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: can't locate the package 'ti.csl' along the path: 'F:/TEXASI~1/ccsv5/ipc_1_22_03_23/packages;F:/TEXASI~1/ccsv5/bios_6_31_04_27/packages;F:/packages;F:/TEXASI~1/ccsv5/xdctools_3_20_08_88/packages;..;'. Ensure that the package path is set correctly.

   "./package/cfg/infrastructure_mode_xe66.cfg", line 763

   "./package/cfg/infrastructure_mode_xe66.cfg", line 818

   "./package/cfg/infrastructure_mode_xe66.cfg", line 750

gmake.exe: *** [package/cfg/infrastructure_mode_xe66.xdl] Error 1

4、忽略上面,在一次点击build就会出现

"F:/Texas Instruments/ccsv5/tools/compiler/c6000/bin/cl6x" -mv64+ -g –define=CONFIG_ACC –define=INTERNAL_LINKING_RAM –include_path="F:/Texas Instruments/ccsv5/tools/compiler/c6000/include" –include_path="F:/Texas Instruments/pdk_C6678_1_0_0_16/packages" –include_path="F:/Texas Instruments/pdk_C6678_1_0_0_16/packages/ti/drv/qmss/example/InfrastructureMode"  –diag_warning=225 –abi=eabi –preproc_with_compile –preproc_dependency="infrastructure_mode.pp" –cmd_file="./configPkg/compiler.opt"  "F:/Texas Instruments/pdk_C6678_1_0_0_16/packages/ti/drv/qmss/example/InfrastructureMode/infrastructure_mode.c"

"F:/TEXASI~1/ccsv5/xdctools_3_20_08_88/packages/xdc/cfg/global.h", line 39: fatal error: could not open source file "F:/Texas Instruments/pdk_C6678_1_0_0_16/packages/ti/drv/exampleProjects/qmInfraExampleProject/Debug/configPkg/package/cfg/infrastructure_mode_xe66.h"

1 fatal error detected in the compilation of "F:/Texas Instruments/pdk_C6678_1_0_0_16/packages/ti/drv/qmss/example/InfrastructureMode/infrastructure_mode.c".

Compilation terminated.

>> Compilation failure

不知道这样讲专家能够定位到我的问题吗?我打开cfg文件。里面现在错误定位在var Csl = xdc.loadPackage('ti.csl'); 是不是要设置下路径什么的?对于cfg文件不了解,希望得到解答,谢谢~~

赞(0)
未经允许不得转载:TI中文支持网 » PDK下的例程pdk_C6678_1_0_0_16\packages\ti\drv\exampleProjects每次编译都有错???
分享到: 更多 (0)