How to create and open a Code Composer Studio(CCS) project for TI C2000 boards from Simulink in R2017a ?

40 views (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 13 Apr 2023
Edited: MathWorks Support Team on 13 Apr 2023
The following sections explain how to create, open and execute a CCS project in  MATLAB R2017a.
Note that this feature is not available in MATLAB versions prior to R2017a 
After installing the TI C2000 Support package and completing the additional setup tasks mentioned here, follow the steps below:
  • ​Open the attached model c28x_LedBlink_ert.slx in Simulink 
  • The 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 
  • If a different processor is selected, make sure that the GPIO blocks are replaced with the corresponding processor's GPIO block from the Simulink library. Also, the GPIO Pins to which the LED is connected will vary with the processor being used.
 
  • By default, the model is configured with the CCSv6 Toolchain to build, load and run. To change the version of Toolchain, go to Model Configuration Parameters > Code Generation > Build process > Toolchain and select the appropriate Toolchain matching your Code Composer Studio(CCS) installation.
 
  • Note that CCS project creation is not supported with CCSv3.3 and CCSv4 toolchains 
  • Click Build Model to build, load and run the program and to create the CCS project. 
  • Click on ‘View Diagnostics’ to open the Diagnostic Viewer 
  • Under the Code Composer Studio Project section in the Diagnostic Viewer, click on the hyperlink that says 'Open Project in Code Composer Studio'
 
  • This will open the Code Composer Studio IDE with the generated project 
  • Now open the 'Project Explorer' from 'View' Tab in CCS 
  • Right click on the Target Configuration File (.ccxml) and click on 'Set as Active Target Configuration'
 
  • Inside the Project Explorer pane, right click on the project in CCS and click on 'Build Project' to start the build process 
  • Make sure that the target hardware is connected to the host PC 
  • Go to Run tab in CCS and click on Debug (F11) to start the debug session 
  • Click on the Play-button icon within the Debug mode to execute the code on the target

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!