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/TMS570LS20216: Downloading the .out file without entire project

Part Number: TMS570LS20216

Tool/software: Code Composer Studio

Hello,

How is it possible to download the .out file from CCS 5.3.0 to the TMS570LS20216 device if other folders and files of the workspace are not available?

I want to send only the .out file to my clients because I don't want to share source codes.  

Best regards,

Vitalij Stepin

  • Hi Vitalij,

    Yes. The .out file that is output from the build process is the file that can be loaded and executed on a target device. It can be directly loaded and debugged using CCS or can be converted to a different format, such as a hex format and programmed to the target using a hex programmer.
  • Hello,

    What is the exact procedure to directly load the .out file to the device? I'm using the XDS100v2 programmer.

    I usually do it through Run/Debug for complete projects.

    Is it necessary to specify the microcontroller and the .out file in Run/Debug Configurations...?

  • Hi Vitalij,

    You need to know what device is the out file built for. The out file built for TMS570LS2x can not be loaded into RM48 device since different endianess.

    1. launch target configuration for your device (TMS570LS20x),
    2. In debug panel, click "TI XDS100V2 debg prob", then connect it
    3. Click "Load" under "Run" drop down meanu
    4. Select the out file to load
  • Hello QJ Wang,

    Is it necessary to create a new workspace and project in the beginning? CCS always suggests to select a workspace when it's being launched.

    The TMS570LS20216SPGE and XDS100V2 were selected during creation of a new project.

    "Load" under "Run" offers only an inactive option "Verify Program..." . I don't see a way to select the required out file there. What is the problem?

    Best regards,

    Vitalij Stepin

  • Hi Vitalij ,

    1. Open Target Configuration

    2. click "new target configuration" under "User Defined"

    3. Give a name for config file: "TMS570LS20x_XDS100V2"

    4. Check "TMS570LS20216SPGE" under "Board and Device", then click "save" to save the config file

    5. the launch the config file:TMS570LS20x_XDS100V2"

    6. Connect the target

    7. load the out file:

    If the target is not connected, some options under "load" are inactive.

  • Hi QJ Wang,

    I did it finally after several attempts.

    How does the sys_main.c file (main source code) appear after loading of the out file?

    This file wasn't supposed to be revealed to end users. Otherwise the whole procedure is useless. Why does it leak? Is it possible to hide the .c file?

    Best regards,

    Vitalij Stepin 

  • Hi Vitalij,

    The CCS will find and open the sys_main() file when you load the project to the flash. If the source files of the project are not located in your computer, the CCS will show:

    Can't find a source file at "C:\workspace_v7\test\Debug/../source/sys_main.c"
  • Yes, the CCS can't find it on another computer.

    As I understand, it is necessary to create and save the configuration file only once.

    For subsequent sessions, the first step is to launch the existing config file. 

    The problem is resolved. 

    Thank you for your help.

    Best regards,

    Vitalij Stepin