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.

CCS/TMS320F28388D: TMS320F28388D - Issue with ethernet_ipc_ex1_basic_cm

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Hi,

I am using  ethernet_ipc_ex1_basic_c28x1 and ethernet_ipc_ex1_basic_cm on FF28388D. I am having following build error while building ethernet_ipc_ex1_basic_cm:

error #24011-D: argument to option --protect_volatile (nops) is out of range

I am trying to do IPC communication between 2 CPUs.

Thanks,

Khushali M.

  • Hi Khushali,

    Can you post your console log when you try to compile:

    Here is mine where it goes well. I do not see --protect_volatile option used anywhere: 

    C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -Ooff --include_path="C:/Users/sudhar/workspace_v9/ethernet_ipc_ex1_basic_cm" --include_path="C:/Users/sudhar/workspace_v9/ethernet_ipc_ex1_basic_cm/device" --include_path="C:/ti/c2000/C2000Ware_2_00_00_03/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include" --define=DEBUG --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="device/cm.d_raw" --obj_directory="device" "../device/cm.c"
    Finished building: "../device/cm.c"

    Building target: "ethernet_ipc_ex1_basic_cm.out"
    Invoking: ARM Linker
    "C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -Ooff --define=DEBUG --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on -z -m"ethernet_ipc_ex1_basic_cm.map" --heap_size=1024 --stack_size=512 -i"C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/lib" -i"C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="ethernet_ipc_ex1_basic_cm_linkInfo.xml" --rom_model -o "ethernet_ipc_ex1_basic_cm.out" "./ethernet_ipc_ex1_basic_cm.obj" "./startup_cm.obj" "./device/cm.obj" "../2838x_RAM_lnk_cm.cmd" "C:/ti/c2000/C2000Ware_2_00_00_03/driverlib/f2838x/driverlib_cm/ccs/Debug/driverlib_cm.lib" -llibc.a
    <Linking>
    Finished building target: "ethernet_ipc_ex1_basic_cm.out"

    Regards,

    Sudharsanan

  • Hi Sudarsanan,

    Following is my log:

    Building file: "../ethernet_ipc_ex1_basic_cm.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs901/ccs/tools/compiler/ti-cgt-c2000_18.12.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu64 --idiv_support=idiv0 --tmu_support=tmu0 -Ooff --include_path="C:/Users/mehtak/workspaceUDCTest/ethernet_ipc_ex1_basic_cm" --include_path="C:/Users/mehtak/workspaceUDCTest/ethernet_ipc_ex1_basic_cm/device" --include_path="C:/ti/C2000Ware_2_00_00_03_Software/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/ccs901/ccs/tools/compiler/ti-cgt-c2000_18.12.1.LTS/include" --define=DEBUG --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --protect_volatile=7M4 --preproc_with_compile --preproc_dependency="ethernet_ipc_ex1_basic_cm.d_raw"  "../ethernet_ipc_ex1_basic_cm.c"
    subdir_rules.mk:9: recipe for target 'ethernet_ipc_ex1_basic_cm.obj' failed
    error #24011-D: argument to option --protect_volatile (nops) is out of range
    gmake: *** [ethernet_ipc_ex1_basic_cm.obj] Error 1
    Building file: "../startup_cm.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs901/ccs/tools/compiler/ti-cgt-c2000_18.12.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu64 --idiv_support=idiv0 --tmu_support=tmu0 -Ooff --include_path="C:/Users/mehtak/workspaceUDCTest/ethernet_ipc_ex1_basic_cm" --include_path="C:/Users/mehtak/workspaceUDCTest/ethernet_ipc_ex1_basic_cm/device" --include_path="C:/ti/C2000Ware_2_00_00_03_Software/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/ccs901/ccs/tools/compiler/ti-cgt-c2000_18.12.1.LTS/include" --define=DEBUG --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --protect_volatile=7M4 --preproc_with_compile --preproc_dependency="startup_cm.d_raw"  "../startup_cm.c"
    subdir_rules.mk:9: recipe for target 'startup_cm.obj' failed
    error #24011-D: argument to option --protect_volatile (nops) is out of range
    gmake: *** [startup_cm.obj] Error 1
    Building file: "../device/cm.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs901/ccs/tools/compiler/ti-cgt-c2000_18.12.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu64 --idiv_support=idiv0 --tmu_support=tmu0 -Ooff --include_path="C:/Users/mehtak/workspaceUDCTest/ethernet_ipc_ex1_basic_cm" --include_path="C:/Users/mehtak/workspaceUDCTest/ethernet_ipc_ex1_basic_cm/device" --include_path="C:/ti/C2000Ware_2_00_00_03_Software/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/ccs901/ccs/tools/compiler/ti-cgt-c2000_18.12.1.LTS/include" --define=DEBUG --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --protect_volatile=7M4 --preproc_with_compile --preproc_dependency="device/cm.d_raw" --obj_directory="device"  "../device/cm.c"
    device/subdir_rules.mk:9: recipe for target 'device/cm.obj' failed
    error #24011-D: argument to option --protect_volatile (nops) is out of range
    gmake: *** [device/cm.obj] Error 1
    gmake: Target 'all' not remade because of errors.

  • Hi,

    What is the version of CCS you are using?

    Regards,

    Sudharsanan

  • Hi, 

    I am using CCS 9.0.1 version

    Thanks,

    Khushali 

  • Hi,

    Thanks for confirming the version. In the CCS Edit Perspective after importing the project, can you do a right click and click build options -> ARM Compiler ->Processor options 

    Please confirm if you you see it similar to the attached image of the settings at my end? 

    Regards,

    Sudharsanan

  • Hi,

    Following is what I am having when I right click and click on build options -> c2000 Compiler ->Processor options 

    Also, I am having issues when I am trying to import the library from resource explorer:

    Thanks,

    Khushali Mehta.

  • Hi Khushali,

    Can you install the TI ARM compiler tools, relaunch the CCS. It should not be taking C2000 Compiler for the CM core. 

    Regards,

    Sudharsanan

  • Hi Sudharsanan,

    I am able to build successfully  ethernet_ipc_ex1_basic_c28x1 project and not ethernet_ipc_ex1_basic_cm program. Also, all other programs I am using c2000 compiler and it is working fine. Can you please elaborate why I will need to install TI ARM compiler?

    Thanks,

    Khushali Mehta

  • Hi Khushali,

    The Communication manager(CM) has an ARM Cortex M4 processor. Hence the CM side code should be compiled with ARM Compiler.

    Regards,

    Sudharsanan

  • Hi Sudharsanan,

    Khushali does have the ARM compiler and it is used if we try and compile the enet_lwip library. However when we look at the properties for the  ethernet_ipc_ex1_basic_cm it already has the C2000 compiler defined and it will not allow us to change it. Is there a way that we can change it?

    Thanks,

    Hector Leon