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: Example to command-line for create.TargetConfiguration

Other Parts Discussed in Thread: CCSTUDIO, TMS320F28388D

Tool/software: Code Composer Studio

Hi! I am trying to configure target configuration through the eclipsec ccs command-line to target C28xx_CPU1, C28xx_CPU2 and Cortex_M4_0 so that I can connect to the MCU063A- board to load/flash the unit with a file with the following command line commands: 

eclipsec -noSplash -data /ccsws/ -application com.ti.ccstudio.apps.createTargetConfiguration -ccs.device "/Project/M2020/NewTargetConfiguration.ccxml"

But got the following error: 

  !ERROR: Device '/Project/M2020/NewTargetConfiguration.ccxml' cannot be found!
  • Hello,

    That command is to create a target configuration file. Is that what you are looking to do? If so then you need to pass the correct device ID and connection ID to the command.

    Example for creating a ccxml file for a F28388D target using an XDS100v2 in the default directory 

    > eclipsec -noSplash -data C:\Temp\wstest -application com.ti.ccstudio.apps.createTargetConfiguration -ccs.device "Cortex M.TMS320F28388D" -ccs.connection "Texas Instruments XDS100v2 USB Debug Probe"

    Thanks

    ki

  • Actually I want to flash/load the device with a file via command-line. Usually when I do it through CCS IDE I had to create new target configuration in the Debug view, group it, connect to it. Then selecting 0x00001510 and load program on to it. Is there a command-line to load/flash the 0x00001510unit? Have only found com.ti.ccstudio.apps.runScript command, not sure if that is the correct command to achieve equivalent results as with the load program via CCS IDE.

    Thanks!

  • sthlmj said:
    Actually I want to flash/load the device with a file via command-line.

    You have two options, the first is the simplest and requires a full installation of CCS (which you have). That is the loadti utility:

    http://dev.ti.com/tirex/explore/node?node=APTlbjPVSx2Y60AlJCPW8A__FUz-xrs__LATEST

    The second is to use the UniFlash command-line interface:

    http://software-dl.ti.com/ccs/esd/uniflash/docs/v5_0/quick_start_guide/uniflash_quick_start_guide.html#command-line-interface

    Neither option will allow you to create a ccxml file from the command line so you can continue use the com.ti.ccstudio.apps.createTargetConfiguration command for that.

    Thanks

    ki

  • Thanks! I tried loadti utility: 

    loadti -c c:\workspace\project\TargetConf.ccxml c:\workspace\project\Debug\FILE.out
    
    
    ***** DSS Generic Loader *****
    
    START: 11:49:13 GMT+0200 (CEST)
    
    Configuring Debug Server for specified target...
    Done
    TARGET: Texas Instruments XDS100v2 USB Debug Probe_0
    Connecting to target...
    C28xx_CPU1: GEL Output:
    Memory Map Initialization Complete
    
    C28xx_CPU1: GEL Output:
    ... DCSM Initialization Start ...
    
    C28xx_CPU1: GEL Output:
    ... DCSM Initialization Done ...
    
    C28xx_CPU1: GEL Output:
    CPU2 is out of reset and configured to wait boot.
    (If you connected previously, may have to resume CPU2 to reach wait boot loop.)
    
    C28xx_CPU1: GEL Output:
    FILE is out of reset and configured to wait boot.
    (If you connected previously, may have to resume FILE to reach wait boot loop.)
    
    C28xx_CPU1: GEL Output:
    ... DCSM Initialization Start ...
    
    C28xx_CPU1: GEL Output:
    ... DCSM Initialization Done ...
    
    C28xx_CPU1: GEL Output:
    CPU2 is out of reset and configured to wait boot.
    (If you connected previously, may have to resume CPU2 to reach wait boot loop.)
    
    C28xx_CPU1: GEL Output:
    FILE is out of reset and configured to wait boot.
    (If you connected previously, may have to resume FILE to reach wait boot loop.)
    
    C28xx_CPU1: If erase/program (E/P) operation is being done on one core, the other core should not execute from shared-RAM (SR) as they are used for the E/P code. User code execution from SR could commence after both flash banks are programmed.
    
    C28xx_CPU1: Only CPU1 on-chip Flash Plugin can configure clock for CPU1, CPU2 and FILE Flash operations. Plugin automatically configures PLL when CPU1 Flash operations are invoked. However, if users want to do only CPU2 or FILE Flash operations without doing a prior CPU1 operation in the current session, they should click on 'Configure Clock' button in CPU1's on-chip Flash Plugin before invoking CPU2 and FILE Flash operations. When this button is used, Flash Plugin will configure the clock for CPU1/CPU2 at 190MHz and FILE at 95MHz using INTOSC2 as the clock source. Plugin will leave PLL config like this and user application should configure the PLL as required by application.
    
    testEnv.outFiles: c:\workspace\project\FILE\Debug\FILE.out
    Loading c:\workspace\project\FILE\Project\FILE\Debug\FILE.out
    C28xx_CPU1: GEL Output:
    ... DCSM Initialization Start ...
    
    C28xx_CPU1: GEL Output:
    ... DCSM Initialization Done ...
    
    C28xx_CPU1: GEL Output:
    CPU2 is out of reset and configured to wait boot.
    (If you connected previously, may have to resume CPU2 to reach wait boot loop.)
    
    C28xx_CPU1: GEL Output:
    FILE is out of reset and configured to wait boot.
    (If you connected previously, may have to resume FILE to reach wait boot loop.)
    
    SEVERE: C28xx_CPU1: GEL: File: c:\workspace\project\FILE\Debug\FILE.out Does not match the target type, not loaded.
    
    SEVERE: File: c:\workspace\project\FILE\Project\FILE\Debug\FILE.out
    Does not match the target type, not loaded.
    SEVERE: Error loading "c:\workspace\project\Debug\FILE.out": File: c:\workspace\project\FILE\Project\FILE\Debug\FILE.out
    Does not match the target type, not loaded.
    Error code #4011, c:\workspace\project\FILE\Project\FILE\Debug\FILE.out load failed!
    Aborting!
    
    END: 11:49:33 GMT+0200 (CEST)

    Usually when I do it through the CCS GUI I group only C28xx_CPU1, C28xx_CPU2 and Cortex_M4_0 and then connect to it.

  • sthlmj said:
    Usually when I do it through the CCS GUI I group only C28xx_CPU1, C28xx_CPU2 and Cortex_M4_0 and then connect to it.

    Note that loadti is pretty basic and designed to connect to just CPU at a time. Note that there is an additional option "-cpu <CPU NAME>". This allows you to specify which CPU to load the out file to. Without that option, the default behavior is to the load to the first CPU on the scan chain. Make sure the correct CPU is specified for the out file you are trying to load

    Thanks

    ki

  • Succeeded I assume... Haven't verified it yet. By the way, where did you get the information about -cpu flag when running loadti? Could not find in documented anywhere. 

    Loading c:\workspace....
    
    Done
    
    Target running...
    
    Interrupt to abort . . .

  • Yes the output looks as expected for a non-terminating program.

    Note that if you just want to flash the program without running it, you can use the -l option.

    sthlmj said:
    By the way, where did you get the information about -cpu flag when running loadti? Could not find in documented anywhere. 

    It is actually documented in the readme.txt for loadti. The readme.txt is in the same directory as the loadti bat/sh script.

    However, I see that the documentation online is out of date. I'll remedy that asap.

    Thanks

    ki