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.

Problem specifying Rtsc configuration with -ccs.projectSpec

Other Parts Discussed in Thread: SYSBIOS

I have a question regarding the  -ccs.projectSpec usage. Is it not possible to specify an Rtsc configuration when using  -ccs.projectSpec ? I have tried the following command

./eclipsec.exe -noSplash  -data "d:/workspace2" -application com
.ti.ccstudio.apps.projectCreate  -rtsc.platform "" -rtsc.enableRtsc -rtsc.xdcVersion 3.16
.02.32 -rtsc.products "com.ti.rtsc.IPC:1.00.05.60;com.ti.rtsc.SYSBIOS:6.21.00.13;com.ti.r
tsc.XDAIS:6.25.01.08" -rtsc.setConfiguroOptions "-o configPkg -t ti.targets.C674 -p ti.pl
atforms.generic:plat -r whole_program -b \"t:/pa/f/s19/config.bld\" -c \"C:/Program Files
/Texas Instruments/C6000 Code Generation Tools 6.1.3\" -DProjName=pa_i12_evmda830 -DENABL
E_CPULOAD=true -DDSPLINK=true "  -ccs.projectSpec tmp.projectspec

The CCS project is getting created as per tmp.projectspec but it does not have any of the RTSC properties. If I remove the -ccs.projectSpec option, I can create a project with the RTSC properties enabled. Is there any way I can specify the RTSC properties within the tmp.projectspec file ?

I am using CCS v5.3

Regards and Thanks,

Maya Kamath

  • Maya,

    You can specify RTSC settings in a projectspec using additional <property> elements that augment your projectspec.  Here is an example projectspec:

    ---

    <project
         name="minimal"
         outputType="rtscApplication"
         linkerCommandFile="">
              <property name="products" value="com.ti.rtsc.SYSBIOS"/>
              <property name="buildProfile" value="release"/>
              <property name="configuroOptions" value="--compileOptions &quot;-g --optimize_with_debug&quot;"/>
              <file path="ti/sysbios/examples/generic/minimal/main.c"/>
              <file path="ti/sysbios/examples/generic/minimal/app.cfg/>
    </project>

    ---

    Here is a list of all the supported RTSC properties:

    ---

    /**
    * XDCtools version.
    * <p>
    * Applies only when the project {@link OutputType output-type}
    * is {@link RTSCManagedBuildCoreConstants#OUTPUT_TYPE__RTSC_APPLICATION rtscApplication}
    * or {@link RTSCManagedBuildCoreConstants#OUTPUT_TYPE__RTSC_CONFIGURATION rtscConfiguration}.
    */
    String PROP__XDCTOOLS_VERSION = "xdcToolsVersion";

    /**
    * Semicolon-separated list of RTSC Product-type IDs to enable for the project generated by
    * this template - eg. {@code "com.ti.rtsc.DSPBIOS[:<version>];com.ti.rtsc.RTDX[:<version>]"}.
    * <p>
    * Applies only when the project {@link OutputType output-type}
    * is {@link RTSCManagedBuildCoreConstants#OUTPUT_TYPE__RTSC_APPLICATION rtscApplication}
    * or {@link RTSCManagedBuildCoreConstants#OUTPUT_TYPE__RTSC_CONFIGURATION rtscConfiguration}.
    */
    String PROP__PRODUCTS = "products"; //$NON-NLS-1$

    /**
    * RTSC Target.
    * <p>
    * Applies only when the project {@link OutputType output-type}
    * is {@link RTSCManagedBuildCoreConstants#OUTPUT_TYPE__RTSC_APPLICATION rtscApplication}
    * or {@link RTSCManagedBuildCoreConstants#OUTPUT_TYPE__RTSC_CONFIGURATION rtscConfiguration}.
    */
    String PROP__TARGET = "target"; //$NON-NLS-1$

    /**
    * RTSC Platform.
    * <p>
    * Applies only when the project {@link OutputType output-type}
    * is {@link RTSCManagedBuildCoreConstants#OUTPUT_TYPE__RTSC_APPLICATION rtscApplication}
    * or {@link RTSCManagedBuildCoreConstants#OUTPUT_TYPE__RTSC_CONFIGURATION rtscConfiguration}.
    */
    String PROP__PLATFORM = "platform"; //$NON-NLS-1$

    /**
    * RTSC Build Profile.
    * <p>
    * Applies only when the project {@link OutputType output-type}
    * is {@link RTSCManagedBuildCoreConstants#OUTPUT_TYPE__RTSC_APPLICATION rtscApplication}
    * or {@link RTSCManagedBuildCoreConstants#OUTPUT_TYPE__RTSC_CONFIGURATION rtscConfiguration}.
    */
    String PROP__BUILD_PROFILE = "buildProfile"; //$NON-NLS-1$

    /**
    * If {@code true}, signifies that all RTSC settings should be hidden from the user
    * in the <b>New Project</b> wizard. Always generates a "hybrid" project.
    * <p>
    * Applies only when the project {@link OutputType output-type}
    * is {@link RTSCManagedBuildCoreConstants#OUTPUT_TYPE__RTSC_APPLICATION rtscApplication}.
    * <p>
    * Implies that {@link #PROP__TARGET target}, {@link #PROP__PLATFORM platform},
    * and {@link #PROP__BUILD_PROFILE buildProfile} must all be specified by the template.
    */
    String PROP__IS_OPAQUE = "isOpaque"; //$NON-NLS-1$

    /**
    * If {@code true} or unspecified, generates a "hybrid" project. A "hybrid" project is
    * a single project containing both the C/C++ sources and the RTSC configuration (.cfg)
    * file. If {@code false}, generates a project-pair - one project for the C/C++ sources,
    * and a second (reusable) project for the RTSC configuration (.cfg) file.
    * <p>
    * Applies only when the project {@link OutputType output-type}
    * is {@link RTSCManagedBuildCoreConstants#OUTPUT_TYPE__RTSC_APPLICATION rtscApplication}.
    */
    String PROP__IS_HYBRID = "isHybrid"; //$NON-NLS-1$

    /**
    * Allows to pass a string of options, other than {@code target}, {@code platform},
    * {@code build-profile}, or {@code xdcpath}, to the {@code configuro} tool.
    * Eg. {@code "—compileOptions=&quot;-opt1 –opt2&quot; -Dsymb –v -w"}
    * <p>
    * Applies only when the project {@link OutputType output-type}
    * is {@link RTSCManagedBuildCoreConstants#OUTPUT_TYPE__RTSC_APPLICATION rtscApplication}
    * or {@link RTSCManagedBuildCoreConstants#OUTPUT_TYPE__RTSC_CONFIGURATION rtscConfiguration}.
    */
    String PROP__CONFIGURO_OPTIONS = "configuroOptions"; //$NON-NLS-1$

    /**
    * This is a {@code <file>} property. If {@code true}, copies the file into the
    * created RTSC Configuration project. By default, only .cfg files are copied into
    * the RTSC Configuration project, while all other files are copied into the master
    * project.
    * <p>
    * Applies only when the project {@link OutputType output-type}
    * is {@link RTSCManagedBuildCoreConstants#OUTPUT_TYPE__RTSC_APPLICATION rtscApplication}.
    * and {@link #PROP__IS_HYBRID isHybrid} is {@code false}.
    */
    String FILEPROP__COPY_INTO_CONFIGURATION = "copyIntoConfiguration"; //$NON-NLS-1$

    ---

    - Baltasar

  • Baltasar,

    Thanks. I tried it but am not able to set the XDC version. I set the property as follows:

    <property name='xdcToolsVersion' value='3.16.02.32'/>

    but see the following output when running the projectCreate command.

    NOTE: XDCtools version not specified - defaulting to '3.24.5.48'.

    I am also setting remaining properties

    <property name="platform" value=""/>
    <property name="products" value="com.ti.rtsc.IPC:1.00.05.60;com.ti.rtsc.SYSBIOS:6.21.00.13;com.ti.rtsc.XDAIS:6.25.01.08"/>
    <property name="configuroOptions" value="-o configPkg -t ti.targets.C674 -p ti.platforms.generic:plat -r whole_program -b t:/pa/f/s19/config.bld -c C:/Program Files/Texas Instruments/C6000 Code Generation Tools 6.1.3 -DProjName=pa_i12_evmda830 -DENABLE_CPULOAD=true -DDSPLINK=true"/>

    I see the resulting project file does have these settings.

    Regards,

    Maya Kamath.

  • Baltasar,

    I dont think <property name="products" value="com.ti.rtsc.IPC:1.00.05.60;com.ti.rtsc.SYSBIOS:6.21.00.13;com.ti.rtsc.XDAIS:6.25.01.08"/> worked. On manually changing these values after opening the CCS project and using using Properties->General>RTSC I am able to build the project successfully.

    Regards,

    Maya Kamath.

  • Hi Maya,

    The ability to specify the XDCtools and RTSC product versions is a new feature implemented for the upcoming CCS v5.4.0.  You can try it out on the CCS v5.4 beta, which you can download at http://processors.wiki.ti.com/index.php/Code_Composer_Studio_Beta_Downloads .

    - Baltasar