This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Creating CCS Project from a Model

You can create a Code Composer Studio project from a model. To create CCS project and open the project, follow the steps given.

  1. Install the TI C2000 support package and complete the additional setup tasks mentioned in Install Support for Texas Instruments C2000 Processors .

  2. Open the model c28x_LedBlink_ert.slx.

    This model is configured for a default target hardware (TI Piccolo F28035). To select a different target hardware, go to Configuration Parameters > Hardware Implementation > Hardware board.

  3. If you select a different processor, make sure to replace the GPIO blocks and the GPIO pins connected to the LED with the GPIO blocks of the selected processor.

  4. By default, the model is configured with the Texas Instruments Code Composer Studio (C2000) toolchain to build, load, and run.

  5. Click Build Model to build, load, and run the program and to create the CCS project.

  6. Click ‘View Diagnostics’ to open the Diagnostic Viewer.

  7. Under the Code Composer Studio Project section in the Diagnostic Viewer, click the link 'Open Project in Code Composer Studio'.

    The Code Composer Studio IDE launches with the generated project.

  8. Open the 'Project Explorer' from View tab in CCS.

  9. Right-click the Target Configuration File (.ccxml) and click 'Set as Active Target Configuration'.

  10. On Project Explorer pane, right-click the project in CCS and click 'Build Project' to start the build process.

    Make sure that the target hardware is connected to the host computer.

  11. Click Run in CCS and click Debug (F11) to start the debug session.

  12. Click the Play icon in the Debug mode to execute the code on the target hardware.

Note

  • CCS project creation feature is not supported with CCS v3.3 and CCS v4.

  • For CCS v5, the compiler and linker settings are not reflected in the CCS GUI, even though these flags are visible in the ‘Summary of flags set’ section. However, these flags are considered while building the CCS project.

  • Compiler tools that are installed outside the CCS Installation directory are not detected automatically. Add the Code generation tool path manually from the CCS GUI path:

    Window > Preferences > Code Composer Studio> Build > Compilers > Tool Discovery.

  • You can open only one instance of CCS at a time. To open a new project in CCS, use the ‘Restart CCS’ option in the MATLAB prompt that shows while clicking the diagnostic Viewer link. The current instance is closed and a fresh instance of CCS with the new project is opened.