Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed the week of November 23.

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.

TMS320F28P650DK: CLI Toolchain creation on Ubuntu

Part Number: TMS320F28P650DK
Other Parts Discussed in Thread: SYSCONFIG, C2000WARE

How do I build a custom command-line toolchain on Linux using Makefiles, with full control over compilation, linking, dependencies, and the overall build process?

 

  • Hi Parthiv,

    You can follow this general process

    1. Install the TI C2000 Code Generation Tools (CGT) and ensuring that the compiler binaries like cl2000, hex2000 are available in your PATH

    2. Next organize your project into folders like src/ (for source files), include/ (for headers), lib/ (for libraries) etc.

    3. Then create a Makefile where you define variables for compiler, linker, flags include paths, libraries and target executable. Here you can add rules to cimple each .c file into an .obj file  (there should be plenty of examples of makefiles in the sdk)

    4. After compilation, link all the object files together using the F28P65 linker command to generate the .out executable which contains the memory layout for FLASH or RAM.

    This gives you compete control over compilation, linking, memory placement etc without relying on CCS.

    Thnkas,

    Ira

  • I created the SysConfig configuration using the GUI and now I'd like to automate updates using the SysConfig CLI. Is there a standalone SysConfig CLI that supports the F28P65x LaunchPad?

    When I try to run the CLI, I receive the following error:

    Invalid argument '--product': No product with name "C2000WARE" and version "26.01.00.00" found

     Am I missing a required C2000Ware installation or product registration for the CLI? The error typically indicates that the CLI cannot locate the specified C2000Ware SDK version referenced by the project.

  • Hi Parthiv,

    Which SysConfig version are you using?

    Thanks,

    Ira

  • Syscfg 1.28.0+4696

  • Hi Parthiv,

    Can you try the following

    run "export TI_SDK_PATH=/path/to/c2000ware # adjust path as needed"

    Or edit the CLI config file (~/.ti/sysconfig/config.json) to include { "sdkPath": "/path/to/c2000ware" }

    Verify the registration by listing supported devices:
    ti sysconfig --list-devices | grep F28P65x

    If the device appears, the CLI is correctly linked to the SDK.

    If you still see the “Invalid argument '--product'” error after these steps, double‑check that the TI_SDK_PATH points to the exact root folder of the C2000Ware installation and that the version directory matches the required.

    Thanks,

    Ira

  • Hi Ira,

    Thanks for the pointer. My tool doesn't expose a ti command ..... I'm invoking the standalone SysConfig CLI directly (sysconfig_cli.sh, from ccs2100/ccs/utils/sysconfig_1.28.0). I checked its --help output and there's no --list-devices equivalent exposed there, so I couldn't verify registration that way.

    I did test the core of your suggestion though ......set TI_SDK_PATH to my C2000Ware root, then reran the exact invocation that was failing:

    bash
    export TI_SDK_PATH=~/ti/ccs2100/C2000Ware_26_01_00_00
    sysconfig_cli.sh --product "C2000WARE@26.01.00.00" --board "/boards/LAUNCHXL_F28P65X" \
      --script launchxl_led.syscfg --output <out> --device "F28P65x" \
      --part "F28P65x_169NMR" --package "169NMR" --context "CPU1"

    Same result as before:

    Invalid argument '--product': No product with name "C2000WARE" and version "26.01.00.00" found
  • Can you try running this command

    export SYSCONFIG_PRODUCT_SEARCH_PATH=~/ti/ccs2100/

    ./sysconfig_cli.sh --product "C2000WARE@26.01.00.00" --board "/boards/LAUNCHXL_F28P65X" \ --script launchxl_led.syscfg --output <out> --device "F28P65x" \ --part "F28P65x_169NMR" --package "169NMR" --context "CPU1"

    If that doesn't work then can you confirm that the c2000ware product is named C2000WARE@26.01.00.00 only and not C2000WARE@26_01_00_00 by any chance?

    Here's how to confirm

    1. Open CCS.
    2. Go to Window $\rightarrow$ Preferences.
    3. Navigate to Code Composer Studio $\rightarrow$ Products.
    4. Look at the Product Discovery section. It will list all detected products, their exact names, and their Installation Path.

    Once you have the path (let's say it's actually at
    ~/ti/C2000Ware_26_01_00_00
    ), you must do two things:
    A. Set the Search Path to the PARENT of the SDK: If the folder is ~/ti/C2000Ware_26_01_00_00, you must set the variable to: export SYSCONFIG_PRODUCT_SEARCH_PATH=~/ti/
    B. Match the --product bstring to the folder name: The CLI often derives the product name from the folder name. If your folder is named
    C2000Ware_26_01_00_00, try changing your command to:
    --product "C2000WARE@26_01_00_00"

    Thanks,
    Ira