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.

USE_MODULE_PARAMETER_ERROR: The first parameter of an xdc.useModule() call must be a string

Other Parts Discussed in Thread: OMAPL138, SYSBIOS

 

I am facing a problem in the Universal copy codec engine example..

I am using OMAPL138LCDK...

I am using CCSv5

codec Engine 3.21

sysbios- 6.35

I copied my 'universal_copy' example files to the ccs workspace and tried to build.

the Following Error Came

Can anyone help me please...

I followed the procedure mentioned in the wiki link

http://processors.wiki.ti.com/index.php/Creating_CCS_Project_for_Codec_Engine_app

 

 

**** Build of configuration Debug for project UNIV_COPY ****


"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all

'Building file: ../app.c'

'Invoking: C6000 Compiler'

 

"C:/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6740 --abi=coffabi -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.4.4/include" --define=omapl138 --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="app.pp" --cmd_file="./configPkg/compiler.opt"  "../app.c"

'Finished building: ../app.c'

' '

'Building file: ../main_bios_local.c'

'Invoking: C6000 Compiler'

 

"C:/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6740 --abi=coffabi -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.4.4/include" --define=omapl138 --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="main_bios_local.pp" --cmd_file="./configPkg/compiler.opt"  "../main_bios_local.c"

 

'Finished building: ../main_bios_local.c'

'Building file: ../hello.cfg'

'Invoking: XDCtools'

"C:/ti/xdctools_3_25_03_72/xs" --xdcpath="C:/ti/codec_engine_3_21_02_25/packages;C:/ti/ipc_1_25_03_15/packages;C:/ti/bios_6_35_04_50/packages;C:/ti/uia_1_03_01_08/packages;C:/ti/xdais_7_21_01_07/packages;C:/ti/codec_engine_3_21_02_25/cetools/packages;C:/ti/xdais_7_21_01_07/examples;C:/ti/codec_engine_3_21_02_25/examples;C:/ti/ccsv5/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.C674 -p ti.platforms.evmOMAPL138 -r release -c "C:/ti/ccsv5/tools/compiler/c6000_7.4.4" "../hello.cfg"

making package.mak (because of .xdcenv.mak) ...

configuring hello.x674 from package/cfg/hello_p674.cfg ...

js: "C:/ti/codec_engine_3_21_02_25/cetools/packages/xdc/runtime/System.xs", line 52: xdc.services.global.XDCException: xdc.cfg.USE_MODULE_PARAMETER_ERROR: The first parameter of an xdc.useModule() call must be a string

    "C:/ti/bios_6_35_04_50/packages/ti/sysbios/xdcruntime/Settings.xs", line 93

    "C:/ti/bios_6_35_04_50/packages/ti/sysbios/BIOS.xs", line 230

    "C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/c64p/Hwi.xs", line 98

    "C:/ti/bios_6_35_04_50/packages/ti/sysbios/hal/Hwi.xs", line 59

    "C:/ti/bios_6_35_04_50/packages/ti/sysbios/knl/Queue.xs", line 59

    "C:/ti/bios_6_35_04_50/packages/ti/sysbios/knl/Semaphore.xs", line 60

    "C:/ti/bios_6_35_04_50/packages/ti/sysbios/xdcruntime/ThreadSupport.xs", line 46

    "C:/ti/codec_engine_3_21_02_25/cetools/packages/ti/sdo/utils/loggers/LoggerSysTID.xs", line 60

 

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

 

js: "C:/ti/xdctools_3_25_03_72/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.

**** Build Finished ****

  • Hi Sanju,

    Could you please post your hello.cfg file that is causing this error to show up?  I'd like to reproduce this problem.  Line 93 of ti/sysbios/xdcruntime/Settings.xs is showing a string being passed to xdc.useModule:

        System = xdc.useModule('xdc.runtime.System');

    so I'm not sure why you would be getting this error.  Could you also try cleaning and rebuilding your project, in case it is in some inconsistent state?

    Best regards,

        Janet

  • Hi Janet,

    please find the attachment.

    This is My Default package repositories in the Build properties/xdcTools  

    /*Build properties/XDCTools*/

    ${BIOS_CG_ROOT}/packages

    ${CODEC_ENGINE_CG_ROOT}/packages

    ${CODEC_ENGINE_CG_ROOT}/examples

    ${CODEC_ENGINE_CG_ROOT}/cetools/packages

    ${FRAMEWORK_COMPONENTS_CG_ROOT}/packages ${FRAMEWORK_COMPONENTS_CG_ROOT}/examples ${FRAMEWORK_COMPONENTS_CG_ROOT}/fctools/packages

    ${IPC_CG_ROOT}/packages ${XDAIS_CG_ROOT}/packages

    ${XDAIS_CG_ROOT}/examples

     

    I cleared this problem by adding  "C:\ti\xdctools_3_25_03_72\packages"  manually. Still don't know what exactly happened.

    /*Build properties/XDCTools*/

     

    ${BIOS_CG_ROOT}/packages

     "C:\ti\xdctools_3_25_03_72\packages"

    ${CODEC_ENGINE_CG_ROOT}/packages

     ${CODEC_ENGINE_CG_ROOT}/examples

     ${CODEC_ENGINE_CG_ROOT}/cetools/packages

     ${FRAMEWORK_COMPONENTS_CG_ROOT}/packages ${FRAMEWORK_COMPONENTS_CG_ROOT}/examples ${FRAMEWORK_COMPONENTS_CG_ROOT}/fctools/packages

    ${IPC_CG_ROOT}/packages

     ${XDAIS_CG_ROOT}/packages

     ${XDAIS_CG_ROOT}/examples

    The Codec Engine CE tools also having  "xdc.runtime" which was creating the issue.

    Can you tell me what is happening here????????

    Thanks for your response.

     

     

     

    Regards

    Sanju5280.hello.cfg

     

     

     

     

     

     

     

     

  • Hi Sanju,

    I am able to reproduce the problem.  I think what is happening is that there is a conflict with the older version of xdc/runtime in cetools that is causing the build to fail.  I tried renaming cetools/xdc to cetools/xdc_ and rebuilding, and the build went ok.  The cetools/xdc/runtime directory is shipped for Linux builds only, so you shouldn't need it for building a BIOS Codec Engine app.  Hopefully this work-around will be ok for you.

    Best regards,

        Janet

  • Hi Janet,

    Thank You for the information.

    Regards

    Sanju