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.

The first parameterof an xdc.useModule() call must be a string

Other Parts Discussed in Thread: SYSBIOS

hi all:

Please Don't move my post to other forum!!!!!

I tried to compile dsp project  image_processing_evmtci6638k2k_slave which  located mcsdk_bios_3_00_01_12\demos\image_processing\ipc\slave.but I failed.my toolschains

and error info were below.

By the way I didn't get any instruction about how to build  

image_processing_evmtci6638k2k_slave .I didn't get any infomation with this

in the MCSDK_User_Guide.pdf.

Any help will be appreciated.

 

tips:

Hardware: XTCIEVMK2X

Toolchains:

Xdctools  version  3.25.2.70

Framework components   3.23.2.16

IPC   3.0.2.26

IMGLIB   3.1.1.0

MCSDK  3.0.1.12

BIOS   6.35.4.50

Build Errors:

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

  • js: "C:/ti/framework_components_3_22_03_09/fctools/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/ipc_3_00_02_26/packages/ti/sdo/utils/List.xs", line 59
        "C:/ti/ipc_3_00_02_26/packages/ti/sdo/ipc/MessageQ.xs", line 73

  • Hi Steve Zhang,

    I am not able reproduce the issue reported by you. 

    What is the CCS Version you are using? I have checked with CCS 5.4.

    Also i am not able find framework components 03.22.03.09 in my installation directory. (C:/ti/)

    In Project Explorer, not able to fine Framework Components. Refer below screenshot.

    Please find the attached build log for your reference.

    **** Clean-only build of configuration Debug for project image_processing_evmtci6638k2k_slave ****
    
    "C:\\ti\\ccsv5\\utils\\bin\\gmake" -k clean 
    DEL /F  "configPkg\compiler.opt" "configPkg\linker.cmd"  "image_processing_evmtci6638k2k_slave.out"
    The system cannot find the file specified.
    RMDIR /S/Q  "configPkg\" 
    gmake: [clean] Error 1 (ignored)
    The system cannot find the file specified.
    gmake: [clean] Error 2 (ignored)
    DEL /F "slave\src\mcip_core.pp" "slave\src\mcip_core_task.pp" "slave\src\mcip_ddr_alloc.pp" "slave\src\mcip_slave_main.pp" 
    Could Not Find C:\ti\mcsdk_bios_3_00_01_12\demos\image_processing\ipc\evmtci6638k2k\slave\Debug\slave\src\mcip_core.pp
    DEL /F "slave\src\mcip_core.obj" "slave\src\mcip_core_task.obj" "slave\src\mcip_ddr_alloc.obj" "slave\src\mcip_slave_main.obj" 
    Could Not Find C:\ti\mcsdk_bios_3_00_01_12\demos\image_processing\ipc\evmtci6638k2k\slave\Debug\slave\src\mcip_core.obj
    'Finished clean'
    ' '
    
    **** Build Finished ****
    
    **** Build of configuration Debug for project image_processing_evmtci6638k2k_slave ****
    
    "C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all 
    'Building file: ../image_processing_evmtci6638k2k_slave.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_25_02_70/xs" --xdcpath="C:/ti/ipc_3_00_02_26/packages;C:/ti/ccsv5/ccs_base;C:/ti/imglib_c66x_3_1_1_0/packages;C:/ti/mcsdk_bios_3_00_01_12/demos;C:/ti/bios_6_35_04_50/packages;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evmTCI6638K2K -r release -c "C:/ti/ccsv5/tools/compiler/c6000_7.4.2" "../image_processing_evmtci6638k2k_slave.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring image_processing_evmtci6638k2k_slave.xe66 from package/cfg/image_processing_evmtci6638k2k_slave_pe66.cfg ...
    Program.cpu.deviceName = TMS320TCI6638
    Program.platformName = ti.platforms.evmTCI6638K2K
    cle66 package/cfg/image_processing_evmtci6638k2k_slave_pe66.c ...
    'Finished building: ../image_processing_evmtci6638k2k_slave.cfg'
    ' '
    'Building file: C:/ti/mcsdk_bios_3_00_01_12/demos/image_processing/ipc/slave/src/mcip_core.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.4.2/bin/cl6x" -mv6600 --abi=eabi -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include" --include_path="C:/ti/imglib_c66x_3_1_1_0/inc" --define=SLAVE_CORE --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="slave/src/mcip_core.pp" --obj_directory="slave/src" --cmd_file="./configPkg/compiler.opt"  "C:/ti/mcsdk_bios_3_00_01_12/demos/image_processing/ipc/slave/src/mcip_core.c"
    'Finished building: C:/ti/mcsdk_bios_3_00_01_12/demos/image_processing/ipc/slave/src/mcip_core.c'
    ' '
    'Building file: C:/ti/mcsdk_bios_3_00_01_12/demos/image_processing/ipc/slave/src/mcip_core_task.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.4.2/bin/cl6x" -mv6600 --abi=eabi -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include" --include_path="C:/ti/imglib_c66x_3_1_1_0/inc" --define=SLAVE_CORE --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="slave/src/mcip_core_task.pp" --obj_directory="slave/src" --cmd_file="./configPkg/compiler.opt"  "C:/ti/mcsdk_bios_3_00_01_12/demos/image_processing/ipc/slave/src/mcip_core_task.c"
    'Finished building: C:/ti/mcsdk_bios_3_00_01_12/demos/image_processing/ipc/slave/src/mcip_core_task.c'
    ' '
    'Building file: C:/ti/mcsdk_bios_3_00_01_12/demos/image_processing/ipc/slave/src/mcip_ddr_alloc.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.4.2/bin/cl6x" -mv6600 --abi=eabi -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include" --include_path="C:/ti/imglib_c66x_3_1_1_0/inc" --define=SLAVE_CORE --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="slave/src/mcip_ddr_alloc.pp" --obj_directory="slave/src" --cmd_file="./configPkg/compiler.opt"  "C:/ti/mcsdk_bios_3_00_01_12/demos/image_processing/ipc/slave/src/mcip_ddr_alloc.c"
    'Finished building: C:/ti/mcsdk_bios_3_00_01_12/demos/image_processing/ipc/slave/src/mcip_ddr_alloc.c'
    ' '
    'Building file: C:/ti/mcsdk_bios_3_00_01_12/demos/image_processing/ipc/slave/src/mcip_slave_main.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.4.2/bin/cl6x" -mv6600 --abi=eabi -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include" --include_path="C:/ti/imglib_c66x_3_1_1_0/inc" --define=SLAVE_CORE --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="slave/src/mcip_slave_main.pp" --obj_directory="slave/src" --cmd_file="./configPkg/compiler.opt"  "C:/ti/mcsdk_bios_3_00_01_12/demos/image_processing/ipc/slave/src/mcip_slave_main.c"
    'Finished building: C:/ti/mcsdk_bios_3_00_01_12/demos/image_processing/ipc/slave/src/mcip_slave_main.c'
    ' '
    'Building target: image_processing_evmtci6638k2k_slave.out'
    'Invoking: C6000 Linker'
    "C:/ti/ccsv5/tools/compiler/c6000_7.4.2/bin/cl6x" -mv6600 --abi=eabi -g --define=SLAVE_CORE --display_error_number --diag_warning=225 -z -m"image_processing_evmtci6638k2k_slave.map" -i"C:/ti/ccsv5/tools/compiler/c6000_7.4.2/lib" -i"C:/ti/imglib_c66x_3_1_1_0/lib" -i"C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include" --reread_libs --warn_sections --display_error_number --rom_model -o "image_processing_evmtci6638k2k_slave.out" -l"./configPkg/linker.cmd"  "./slave/src/mcip_slave_main.obj" "./slave/src/mcip_ddr_alloc.obj" "./slave/src/mcip_core_task.obj" "./slave/src/mcip_core.obj" -l"imglib.ae66" -l"libc.a" 
    <Linking>
    'Finished building target: image_processing_evmtci6638k2k_slave.out'
    ' '
    
    **** Build Finished ****
    

    Thanks.

  • CCS  Version: 5.4.0.00091 

    Another,Please look at the attached files

    From that .the ERRORS called "xdc.cfg.USE_MODULE_PARAMETER_ERROR: The first parameter of an xdc.useModule() call must be a string"   may be produced  on the location ""C:/ti/framework_components_3_22_03_09/fctools/packages/xdc/runtime/System.xs", line 52:"

    When I opened System.xs.liked below:


    /* necessary when useModule not called on System */
    if (this.SupportProxy) {
    xdc.useModule(this.SupportProxy.delegate$);
    }

    So. I thought the error told us  that “this.SupportProxy.delegate$” was not a string .

    so error came. I didn't know how to deal with the issues.

    I didn't know why the error was produced and how to resolve the problem.

    Any help will be appreciated. Thx!

  • Hi Steve,

    Could you please check the compiler version used for build?

    Open Window-> Preferences (I have used TI v7.4.2)

    Could you please share the complete build log for our reference?

    Thanks.

  • Hi Steve,

    Please ensure that Compilers and RTSC products are added in CCS.

    Please follow the instructions provided in the sections "Instructions to Add Compiler Path to CCS" & "Instructions to Add RTSC Products to CCS" in the attached document(Getting Started Guide). 

    The version numbers provided in the document is for MCSDK 2.x.

    3058.BiosMulticoreSDK_2.1_GettingStartedGuide.pdf

    Thanks.

  • Hi Steve,

    I just ran into this post while looking into another similar post (http://e2e.ti.com/support/embedded/bios/f/355/t/297553.aspx).  I see that you are using Framework Components and have fctools in your path.  I believe there is some compatibility issue with the fctools/xdc/runtime that may be causing your build error.  You probably don't need fctools/xdc/runtime for your build, since this is shipped for Linux builds that don't have an xdctools installation.

    You can try removing/renaming the xdc directory under fctools and see if the problem goes away.

    Best regards,

        Janet

  • Janet: My CCS 5.1 project used xdc tools.

  • Hi Steve,

    According to your first post, you are using Xdctools  version  3.25.2.70, correct?  The xdc/runtime shipped with Framework Components is a 3.23 version.  So I think if you remove or rename fctools/xdc and use the 3.25.2.70 xdctools instead, the problem should go away.

    Best regards,

        Janet

  • Hi Janet:

         You are wright.The xdctools in the C:\ti\framework_components_3_23_02_16\fctools\packages 

    was the reason why build errors produced.I followed your suggestion to remove the xdc from fctools

    and build successfully.

         I guessed that xdctools including in the framework_components_3_23_02_16 conficted with 

    that including in the xdctool 3.25.2.70.

         Anyway.I was so appreciated that you gave me a good advice.You knew that The problem

    confused me about one month.Thank you again.So exciting in the weekend.

  • Thanks Mr. Steve.

    I too facing this issue and by this single suggestion saved me lot of time and build went fine without any issue.

    Regards,

    Hemsbond.