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.

RTOS: not able to find the .cmd file for building usb_code control suite

Other Parts Discussed in Thread: SYSBIOS, CONTROLSUITE, TMS320F28377D

Tool/software: TI-RTOS

Hi

team

I am trying to create a sysbios project by combining the usb_to_serial project from ti provided in the control suite.

I am not able to add the corresponding files .cmd to the mapping section

Kindly please help out for adding the file and building it to get the .out

I have attached the screen shot of the directory and the error that I am getting so that let me know what files are actually missing

--include_path="C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_headers/include" -g --define=CPU1 --define=ccs --diag_warning=225 --diag_warning=255 --display_error_number --diag_wrap=off --gen_func_subsections=on --preproc_with_compile --preproc_dependency="usb_serial_structs.pp" --cmd_file="./configPkg/compiler.opt" "../usb_serial_structs.c"

"C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_common/usblib/usblib.h", line 257: error #1167: invalid attribute for "struct <unnamed>"

"C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_common/usblib/usblib.h", line 379: error #1167: invalid attribute for "struct <unnamed>"

"C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_common/usblib/usblib.h", line 468: error #1167: invalid attribute for "struct <unnamed>"

"C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_common/usblib/usblib.h", line 590: error #1167: invalid attribute for "struct <unnamed>"

"C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_common/usblib/usblib.h", line 649: error #1167: invalid attribute for "struct <unnamed>"

"C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_common/usblib/usblib.h", line 722: error #1167: invalid attribute for "struct <unnamed>"

"C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_common/usblib/usblib.h", line 772: error #1167: invalid attribute for "struct <unnamed>"

"C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_common/usblib/usblib.h", line 846: error #1167: invalid attribute for "struct <unnamed>"

"C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_common/usblib/usblib.h", line 876: error #1167: invalid attribute for "struct <unnamed>"

>> Compilation failure

"C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_common/usblib/usbcdc.h", line 904: error #1167: invalid attribute for "struct <unnamed>"

10 errors detected in the compilation of "../usb_serial_structs.c".

gmake: *** [usb_serial_structs.obj] Error 1

'Building file: ../ustdlib.c'

'Invoking: C2000 Compiler'

"C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include" --include_path="C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_common" --include_path="C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_common/include" --include_path="C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_headers/include" -g --define=CPU1 --define=ccs --diag_warning=225 --diag_warning=255 --display_error_number --diag_wrap=off --gen_func_subsections=on --preproc_with_compile --preproc_dependency="ustdlib.pp" --cmd_file="./configPkg/compiler.opt" "../ustdlib.c"

"../ustdlib.c", line 1380 (col. 20): remark #2614-D: Use --fp_mode=relaxed to enable TMU hardware support for FP division.

'Finished building: ../ustdlib.c'

' '

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

**** Build Finished ****

Thank you

Deepak R

 

  • Hi Deepak,

    I suspect 2837xD_RAM_lnk_cpu01_USB.cmd and TMS320F28377D.cmd contain conflicting sections (assuming you haven't edited them). Try removing 2837xD_RAM_lnk_cpu01_USB.cmd from the project and see if that makes a difference.

    Whitney
  •  Hi

    Whitney

    thanks for your reply

    I tried removing the file that u specified

    Finally stuck with error relating to mapping that is structure to some memory location added the screen shot and logs kindly pls help out

    >> Compilation failure

    gmake: *** [usb_hal.obj] Error 1

    'Building file: ../usb_serial_structs.c'

    'Invoking: C2000 Compiler'

    "C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include" --include_path="C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_common" --include_path="C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_common/include" --include_path="C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_headers/include" -g --define=CPU1 --define=ccs --diag_warning=225 --diag_warning=255 --display_error_number --diag_wrap=off --gen_func_subsections=on --preproc_with_compile --preproc_dependency="usb_serial_structs.pp" --cmd_file="./configPkg/compiler.opt" "../usb_serial_structs.c"

    "C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_common/usblib/usblib.h", line 257: error #1167: invalid attribute for "struct <unnamed>"

    "C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_common/usblib/usblib.h", line 379: error #1167: invalid attribute for "struct <unnamed>"

    "C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_common/usblib/usblib.h", line 468: error #1167: invalid attribute for "struct <unnamed>"

    "C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_common/usblib/usblib.h", line 590: error #1167: invalid attribute for "struct <unnamed>"

    "C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_common/usblib/usblib.h", line 649: error #1167: invalid attribute for "struct <unnamed>"

    "C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_common/usblib/usblib.h", line 722: error #1167: invalid attribute for "struct <unnamed>"

    "C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_common/usblib/usblib.h", line 772: error #1167: invalid attribute for "struct <unnamed>"

    "C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_common/usblib/usblib.h", line 846: error #1167: invalid attribute for "struct <unnamed>"

    "C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_common/usblib/usblib.h", line 876: error #1167: invalid attribute for "struct <unnamed>"

    "C:/ti/controlSUITE/device_support/F2837xD/v130/F2837xD_common/usblib/usbcdc.h", line 904: error #1167: invalid attribute for "struct <unnamed>"

    thank you

    Deepak R

     

  • I suspect PACKED is being defined as __attribute__((packed)) instead of nothing. The original USB examples appear to prevent this by putting ccs_c2k in the predefined symbols of the project. Have you done that?

    Thanks,

    Whitney

  • Hi
    Thanks
    whitney your suggestion worked!

    Deepak R