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.

Compiler/TMS320F28374S: Compile the project through cmd, instead of CCS

Part Number: TMS320F28374S

Tool/software: TI C/C++ Compiler

Hi,

Is there any way to call some commands, to compile a project? The project was compiled successfully in CCS.

The propertities of the project are kept the same, no need to change.

Thanks a lot.

Br, Jordan

  • Hi Jordon,

    If I understood correctly, you are looking for a way to compile the project from command-line. If this is correct, then 

    if you have XDC tools installed then you can use XDC gmake to compile the project.

    e.g.

    C:\ti\C2000\my_ccs_workspace\ccs_v10_wrkspc\led_ex1_blinky\CPU1_RAM>c:\ti\xdctools_3_55_02_22_core\gmake.exe all

    When you build project, in CCS, it should generate a makefile.

  • Santosh,

    Yes, you are right.

    With the command-line, 

    1) go to the direction: c:\ti\xdctools_3_55_02_22_core

    2) call: gmake.exe all C:\ti\C2000\my_ccs_workspace\ccs_v10_wrkspc\led_ex1_blinky\CPU1_RAM

    Is it correct?

    Another doubt:

    What about the compiler version and settings?

    Will gmake automatically regonize the compiler info and compile it with the same settings as CCS?

    Thanks a lot.

    Br, Jordan

  • Hi Jordon,

    The makefile will have details on Compiler Version, and Compiler path. If you open the Makefile, you can see something like this.

    CG_TOOL_ROOT := /Users/a0132919/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS

    gmake is just the tool to compile Makefile.

  • Missed first question:

    You can use command like this:

    C:\ti\C2000\my_ccs_workspace\ccs_v10_wrkspc\led_ex1_blinky\CPU1_RAM>c:\ti\xdctools_3_55_02_22_core\gmake.exe all

    or 

    1) go to the direction: c:\ti\xdctools_3_55_02_22_core

    2) call: gmake.exe all -C C:\ti\C2000\my_ccs_workspace\ccs_v10_wrkspc\led_ex1_blinky\CPU1_RAM

  • Let me ask customer to try. 

    Our laptop can't run the gmake, because of security issue.

    When runing: C:\Jordan\Code\FFT\cfft_f32\RAM_EABI>c:\ti\xdctools_3_55_02_22_core\gmake.exe all

    It failed with this info:

    'C:\Jordan\Code\FFT\cfft_f32\RAM_EABI' is not recognized as an internal or external command,
    operable program or batch file.

  • Jordon,

    Jordan Zhou said:
    'C:\Jordan\Code\FFT\cfft_f32\RAM_EABI' is not recognized as an internal or external command,
    operable program or batch file.

    Can you check if you have right path on your laptop?

  • The path is correct, as they are copied from folder.

    The command is running from C:\>

    C:\>C:\Jordan\Code\FFT\cfft_f32\RAM_EABI>C:\TI\xdctools_3_51_03_28_core\gmake.exe all
    'C:\Jordan\Code\FFT\cfft_f32\RAM_EABI' is not recognized as an internal or external command,
    operable program or batch file.

    Br, Jordan

  • Jordan,

    There is an issue in the command. Please go to the folder first then run the command.

    • cd C:\Jordan\Code\FFT\cfft_f32\RAM_EAB  
    • C:\TI\xdctools_3_51_03_28_core\gmake.exe all

    Please make sure you have xdctools 3.51.03.28 is installed at that path.

  • Got it with many thanks. 

    This is the right way to call gmake.

    My laptop can't run gmake:(

    Thanks again.

    Br, Jordan

  • Ok, Jordan.

    I will close the thread. Feel free to open again after customer try that or create a new thread.