The "echo" command is not recognized by TI CCSv4 or CCSv5.1. In order to make a Build and Execute work with this IDE, the appropriate CCSv4 or CCSv5.1 configuration can be cloned using the XMAKEFILESETUP command
This procedure is outlined in the steps below:
1. Type "xmakefilesetup" at the MATLAB Command Window and uncheck the "Display operational configurations only" checkbox.
2. Select the appropriate CCS configuration for your target from the Configuration drop-down menu.
3. To the right of this drop-down menu, click on the "New..." button and make a name for the cloned configuration. This configuration will be a MATLAB file that will be saved in the "User Configurations" directory as shown in the XMAKEFILESETUP GUI.
You may be asked to point to your install directory for CCS.
3. Select this new configuration. You will see an "Execute" tab. Under "Execute tool" you will see "echo". This is the configuration that is causing the issue.
Select the "Browse..." button next to "Execute Tool" and look for the file "$CCSINSTALL\ccsv4\scripting\bin\dss.bat". Here, $CSSINSTALL is the installation directory for your CCSv4 IDE.
4. The "Arguments" box needs to be populated with three arguments in quotation marks separated by spaces. The box should be filled out as follows:
The three arguments are:
ARG1: $MATLABROOT\toolbox\idelink\extensions\ticcs\ccsdemos\runProgram.js
Here, $MATLABROOT refers to your MATLAB installation directory (for example, C:\Program Files\MATLAB\R2011a). This is a JavaScript file that is shipped with the product.
ARG2: This should be the path to a ".ccxml" configuration file generated from CCSv4.
In order to get this, you can open CCSv4 and go to "File > New > Target Configuration File". You can then specify the name, location and fill in the appropriate hardware information.
ARG3: [|||MW_XMK_GENERATED_TARGET_REF[E]|||]
So, the contents of the "Arguments" text box should at the end look like this, for example:
"C:\Program Files\MATLAB\R2011a\toolbox\idelink\extensions\ticcs\ccsdemos\runProgram.js" "C:\Users\johnsmith\user\CCSTargetConfigurations\myconfigname.ccxml" "[|||MW_XMK_GENERATED_TARGET_REF[E]|||]"
After taking these steps, you should be able to use this xmakefile configuration to directly do a "Build and Execute" from the Simulink model.
This process has to be done only once, and the configuration will be saved when running XMAKEFILESETUP in the future. That is, it will show up under the Configuration drop down menu.
Best Answer