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.

[FAQ] Automate the process of code execution through CCS

Hi,


For running a executable through CCS following steps needs to be performed.

  • Open the Code Composer Studio(CCS).
  • Launch the target configuration file.
  • Load the executable to the desired core.

  • Execute the main() function.

To simplify the above task, I want to automate the process of executing code from CCS.

Thanks

  • For automation of the process, you can use `loadti` tool. The DSS Generic Loader (loadti) is a DSS (Debug Server Scripting) JavaScript example that functions as a command-line loader which can load/run an executable .out file on TI targets.

    Steps:

    • Create a batch file and open it with any editor.
    •  Enter the following command (please edit below command with appropriate path values)
      <CCS installation path>\css\ccs_base\scripting\examples\loadti\loadti.bat -c <path to Target Configuration File> -cpu=<CORE_NAME> <path to executable binary file>
      
      e.g. - C:\ti\ccs1210\ccs\ccs_base\scripting\examples\loadti\loadti.bat -c C:\ti\AM64x.ccxml -cpu=MAIN_Cortex_R5_0_0 C:\Users\User\Test\test.out
    • Save the file and double click to run the program.

    Regards,

    Tushar