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.

NDK Helloworld example project

Other Parts Discussed in Thread: MATHLIB, CCSTUDIO

Hi,
I am trying to build the NDK Helloworld example project for K2L board. I am getting the following prints while building:


"E:\\TI_folder\\ccsv6\\utils\\bin\\gmake" -k all

'Building file: ../helloWorld.cfg'

'Invoking: XDCtools'

"E:/TI_folder/xdctools_3_31_02_38_core/xs" --xdcpath="E:/TI_folder/pdk_k2l_4_0_1/packages;E:/TI_folder/ctoolslib_1_1_1_0/packages;E:/TI_folder/ctoolslib_1_1_1_0/packages/ti;E:/TI_folder/dsplib_c66x_3_4_0_0/packages;E:/TI_folder/edma3_lld_2_12_01_23/packages;E:/TI_folder/msp430/MSPWare_3_30_00_18/fram_utilities/packages;E:/TI_folder/msp430/MSPWare_3_30_00_18/fram_utilities;E:/TI_folder/framework_components_3_40_01_04/packages;E:/TI_folder/framework_components_3_40_01_04/examples;E:/TI_folder/imglib_c66x_3_1_1_0/packages;E:/TI_folder/ipc_3_42_00_02/packages;E:/TI_folder/mathlib_c66x_3_1_1_0/packages;E:/TI_folder/mcsdk_bios_3_01_04_07/demos;E:/TI_folder/msp430/MSPWare_3_30_00_18/driverlib/packages;C:/ti/msp430/MSPWare_3_30_00_18/driverlib/packages;C:/ti/msp430/MSPWare_3_30_00_18/driverlib;E:/TI_folder/ndk_2_25_00_09/packages;E:/TI_folder/openmp_dsp_2_01_17_01/packages;E:/TI_folder/bios_6_45_01_29/packages;E:/TI_folder/uia_2_00_03_43/packages;E:/TI_folder/xdais_7_24_00_04/packages;E:/TI_folder/xdais_7_24_00_04/examples;E:/TI_folder/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evmTCI6630K2L -r debug -c "E:/TI_folder/ccsv6/tools/compiler/c6000_7.4.16" "../helloWorld.cfg"

configuring helloWorld.xe66 from package/cfg/helloWorld_pe66.cfg ...

js: "E:/TI_folder/mcsdk_bios_3_01_04_07/examples/ndk/helloWorld/evmk2l/helloWorld.cfg", line 112: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: E:\TI_folder\pdk_k2l_4_0_1\packages\ti\platform\evmk2l\package.xdc found along the package path, but no schema file was found. Ensure that the package 'ti.platform.evmk2l' is completely built.

"./package/cfg/helloWorld_pe66.cfg", line 188

xdctools_3_31_02_38_core\gmake.exe: *** [package/cfg/helloWorld_pe66.xdl] Error 1

Warning: directory "E:/TI_folder/msp430/MSPWare_3_30_00_18/fram_utilities" on package path has a "packages" subdirectory - did you mean this instead?

Warning: directory "C:/ti/msp430/MSPWare_3_30_00_18/driverlib" on package path has a "packages" subdirectory - did you mean this instead?

js: "E:/TI_folder/xdctools_3_31_02_38_core/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.

gmake: *** [configPkg/linker.cmd] Error 1

gmake: Target `all' not remade because of errors.



Error is highlighted in Red.
Could someone help me gain some information to remove this error.

Thanks,
Kushal

  • Dear Kushal,

    "E:/TI_folder/xdctools_3_31_02_38_core/xs" --xdcpath="E:/TI_folder/pdk_k2l_4_0_1/packages;E:/TI_folder/ctoolslib_1_1_1_0/packages;E:/TI_folder/ctoolslib_1_1_1_0/packages/ti;E:/TI_folder/dsplib_c66x_3_4_0_0/packages;E:/TI_folder/edma3_lld_2_12_01_23/packages;E:/TI_folder/msp430/MSPWare_3_30_00_18/fram_utilities/packages;E:/TI_folder/msp430/MSPWare_3_30_00_18/fram_utilities;E:/TI_folder/framework_components_3_40_01_04/packages;E:/TI_folder/framework_components_3_40_01_04/examples;E:/TI_folder/imglib_c66x_3_1_1_0/packages;E:/TI_folder/ipc_3_42_00_02/packages;E:/TI_folder/mathlib_c66x_3_1_1_0/packages;E:/TI_folder/mcsdk_bios_3_01_04_07/demos;E:/TI_folder/msp430/MSPWare_3_30_00_18/driverlib/packages;C:/ti/msp430/MSPWare_3_30_00_18/driverlib/packages;C:/ti/msp430/MSPWare_3_30_00_18/driverlib;E:/TI_folder/ndk_2_25_00_09/packages;E:/TI_folder/openmp_dsp_2_01_17_01/packages;E:/TI_folder/bios_6_45_01_29/packages;E:/TI_folder/uia_2_00_03_43/packages;E:/TI_folder/xdais_7_24_00_04/packages;E:/TI_folder/xdais_7_24_00_04/examples;E:/TI_folder/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evmTCI6630K2L -r debug -c "E:/TI_folder/ccsv6/tools/compiler/c6000_7.4.16" "../helloWorld.cfg"

    Why did you use the MSP430 package in K2L NDK example ?

    Are you using latest processor SDK package and able to create NDK hello world example ?

    This is the NDK hello world example from Processor SDK of K2L.
    C:\ti\pdk_k2l_4_0_1\packages\MyExampleProjects\NIMU_emacExample_EVMK2LC66BiosExampleProject


    Also, it seems you are using the MCSDK version of NDK example, you can just import and rebuild the project, no need to change any settings.

    C:\ti\mcsdk_bios_3_01_04_07\examples\ndk\helloWorld\evmk2l
  • Hi Titus,

    I am using the MCSDK version of NDK example. That is showing the above mentioned build error. I have simply imported the project without any changes.

    Secondly, I am not able to get any projects in ti\pdk_k2l_4_0_1\packages\MyExampleProjects directory. I have tried  pdkProjectCreate.bat but I was getting errors and was not able to generate any example projects.

    Detected Test Project: cppiK2LArmBiosTestProject
    Exception in thread "Loading device information" java.lang.NoClassDefFoundError:
     Could not initialize class com.ti.utility.filesystem.DirectoryService$Singleton
    Holder
            at com.ti.utility.filesystem.DirectoryService.instance(DirectoryService.
    java:49)
            at com.ti.debug.engine.xpcom.Runtime.getAppDataDir(Runtime.java:286)
            at com.ti.ccstudio.debug.server.internal.XPCOMRuntimeAdapter.getApplicat
    ionDataDir(XPCOMRuntimeAdapter.java:21)
            at com.ti.ccstudio.core.PathManager.getSystemSetupUserDir(PathManager.ja
    va:184)
            at com.ti.ccstudio.core.CCStudioPlugin.getSystemSetupWriter(CCStudioPlug
    in.java:106)
            at com.ti.ccstudio.devicemodel.DeviceModelLoader$SetupModelCache.load(De
    viceModelLoader.java:314)
            at com.ti.ccstudio.devicemodel.DeviceModelLoader.loadRealDevices(DeviceM
    odelLoader.java:1068)
            at com.ti.ccstudio.devicemodel.DeviceModelLoader.access$1(DeviceModelLoa
    der.java:1060)
            at com.ti.ccstudio.devicemodel.DeviceModelLoader$InitializationJob.run(D
    eviceModelLoader.java:817)


    Please let me know what could be done, either to remove the build errors or generate example projects after removing the errors highlighted in Red.

    Thanks,
    Kushal

  • Dear Kushal,

    Secondly, I am not able to get any projects in ti\pdk_k2l_4_0_1\packages\MyExampleProjects directory. I have tried pdkProjectCreate.bat but I was getting errors and was not able to generate any example projects.

    Its for latest processor SDK package of K2L.

    Processor SDK K2L package download link for Linux,RT-Linux,and RTOS.
    www.ti.com/.../PROCESSOR-SDK-K2L

    Processor SDK K2L package download link for RTOS which has NDK example and much more.
    software-dl.ti.com/.../index_FDS.html

    Refer to this wiki page for creating PDK projects for K2L.
    processors.wiki.ti.com/.../Processor_SDK_-_Create_PDK_projects
  • Hi Titus,
    I got the project. It is running fine.
    Thanks a lot for the help.

    Thanks,
    Kushal
  • Sounds good.
    Thanks for the update.