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.

如何在ccs9.3下新建一个带NDK的c6678的工程?



我购买了6678的开发板,但开发板的demo工程是基于CCS5.5制作的,现在CCS升级到了CCS9.3.0.00012_win64,我下载安装到C:\ti,并且也安装了ti-processor-sdk-rtos-c667x-evm-06.01.00.08-Windows-x86-Install。导入c6678的demo工程后(C:\ti\processor_sdk_rtos_c667x_6_01_00_08\demos\image_processing\ipc\evmc6678l)

最开始编译报错,后来修改了路径后编译通过了。然后我又尝试新建一个6678的工程,把ndk选上后编译就报错了,错误如下

Description Resource Path Location Type
gmake: *** [build-687233551] Error 2 test6678    C/C++ Problem
gmake: Target 'all' not remade because of errors. test6678    C/C++ Problem
gmake[1]: *** [build-687233551-inproc] Error 1 test6678    C/C++ Problem
Library not found: C:/ti/pdk_c667x_2_0_15/packages/ti/transport/ndk/nimu/./lib/c66/release/ti.transport.ndk.nimu.ae66 .xdchelp /test6678 line 111 C/C++ Problem
xdctools_3_60_02_34_core\gmake.exe: *** [package/cfg/app_pe66.xdl] Deleting file 'package/cfg/app_pe66.c' test6678    C/C++ Problem
xdctools_3_60_02_34_core\gmake.exe: *** [package/cfg/app_pe66.xdl] Deleting file 'package/cfg/app_pe66.h' test6678    C/C++ Problem
xdctools_3_60_02_34_core\gmake.exe: *** Deleting file 'package/cfg/app_pe66.xdl' test6678    C/C++ Problem

还有一个常见错误就是启用了ndk后,编译出下面的错误

undefined       first referenced                                                  
  symbol             in file                                                       
 ---------       ----------------                                                  
 NIMUDeviceTable C:\ti\ndk_3_61_01_01\packages\ti\ndk\stack\lib\stk6.ae66<nimu.oe66>
 

假设我自己新做了一个c6678的板子,如何重新做一个工程和我的硬件相匹配?我会用到网络,SRIO,e2prom,spi flash等资源。我感觉现在的ccs怎么这么不好用呢,新建的demo工程都能编译不过去

  • Library not found: C:/ti/pdk_c667x_2_0_15/packages/ti/transport/ndk/nimu/./lib/c66/release/ti.transport.ndk.nimu.ae66
    我看上面的报错是找不到ti.transport.ndk.nimu.ae66 这个库文件,建议你可以先去该文件夹下找一下有没有这个库,没有话编译一下库文件看看。
    pdksetupenv.bat
    gmake board_lib
  • C:\ti\pdk_c667x_2_0_15\packages\ti\transport\ndk\nimu\lib\c6678\c66\release 这个路径下有ti.transport.ndk.nimu.ae66文件,但我怎么修改库的路径呢?
  • 能否推荐个C6678的开发环境,到底用哪个版本最成熟稳定
  • 在.cfg文件中添加以下的语句
    var NdkTransport = xdc.loadPackage('ti.transport.ndk');
    具体参考:
    e2e.ti.com/.../1573546
    也可以通过以下的方式运行NDK的例程:
    How to run Processor SDK Based NDK Examples on C6678 and C6657 KeyStone™ I Devices :
    www.ti.com/.../sprac57.pdf
    跟ccs版本应该没关系,你之前在CCSV5上运行工程也是基于哪个版本的SDK?
  • 这个好像是针对老版本的,新版本这个方法不灵了

    Description Resource Path Location Type
    can't locate the package 'ti.transport.ndk' along the path: 'C:/ti/bios_6_76_03_01/packages;C:/ti/openmp_dsp_c667x_2_06_03_00/packages;C:/ti/pdk_c667x_2_0_16/packages;C:/ti/ctoolslib_2_2_0_0/packages;C:/ti/linalg_1_2_0_0/packages;C:/ti/edma3_lld_2_12_05_30E/packages;C:/ti/framework_components_3_40_02_07/packages;C:/ti/framework_components_3_40_02_07/examples;C:/ti/imglib_c66x_3_1_1_0/packages;C:/ti/ipc_3_50_04_07/packages;C:/ti/libarch_1_0_0_0/packages;C:/ti/ndk_3_61_01_01/packages;C:/ti/uia_2_30_01_02/packages;C:/ti/xdais_7_24_00_04/packages;C:/ti/xdais_7_24_00_04/examples;C:/ti/ccs930/xdctools_3_60_02_34_core/packages;..;'. Ensure that the package path is set correctly. .xdchelp /test6678 line 113 C/C++ Problem
    gmake: *** [build-687233551] Error 2 test6678 C/C++ Problem
    gmake: Target 'all' not remade because of errors. test6678 C/C++ Problem
    gmake[1]: *** [build-687233551-inproc] Error 1 test6678 C/C++ Problem
    xdc.PACKAGE_NOT_FOUND: can't locate the package 'ti.transport.ndk' along the path: 'C:/ti/bios_6_76_02_02/packages;C:/ti/openmp_dsp_c667x_2_06_03_00/packages;C:/ti/pdk_c667x_2_0_15/packages;C:/ti/ctoolslib_2_2_0_0/packages;C:/ti/linalg_1_2_0_0/packages;C:/ti/edma3_lld_2_12_05_30E/packages;C:/ti/framework_components_3_40_02_07/packages;C:/ti/framework_components_3_40_02_07/examples;C:/ti/imglib_c66x_3_1_1_0/packages;C:/ti/ipc_3_50_04_07/packages;C:/ti/libarch_1_0_0_0/packages;C:/ti/ndk_3_61_01_01/packages;C:/ti/uia_2_30_01_02/packages;C:/ti/xdais_7_24_00_04/packages;C:/ti/xdais_7_24_00_04/examples;E:/ccs_workspace/test6678/.config/;C:\ti\ccs930\xdctools_3_60_02_34_core\packages;'. Ensure that the package path is set correctly. app.cfg /test6678 Configuration Validation XDCTools Configuration Marker
  • 可否详细描述一下你的操作步骤,你是在哪边把NDK选上的?我这边测试一下看看。