CCS TivaWare
CCS TivaWare
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 1/26
Requirements
This tutorial explains about how to install and use Code Composer Studio for the
evaluation of Tiva C Series board LaunchPad EK-TM4C123GXL.
The requirements for the CCS are:
PC with a USB interface, running Microsoft Windows XP, Windows 7, or
Windows 8, or Windows 10 operating systems (OSs).
Minimum 2GB RAM.
Tiva C Series Development Kit Software downloaded and extracted kit
software (found on www.ti.com/tool/sw-hkit namei).
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 2/26
CCS Installation
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 3/26
Tivaware
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 4/26
Tivaware Installation
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 5/26
Blink LED Example
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 6/26
Start Code Composer Studio and Open a Workspace
Start the Code Composer Studio IDE by selecting it from the Windows Start
menu or double-clicking the icon installed on the desktop.
When the IDE loads, it asks where to open the workspace folder:
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 7/26
Create New Project
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 8/26
Create New Project
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 9/26
Create New Source File
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 10/26
Create New Source File
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 11/26
Adding the ini file
Open the .ini file from C:\TI RTOS folder and edit the targets path to match
your actual tools location in your file system and delete the other variables you
dont need. And save vars.ini.
The .ini file is used:
To make the projects portable, it is important to at least be exposed to the
concept of using variables for paths.
To avoid mismatches in what the author used as the default path vs. a
students installation of the tools.
Note: If .ini file is not available, skip to slide 15 (Not recommended).
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 12/26
Adding the ini file
Goto Import option from File menu.
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 13/26
Adding the ini file
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 14/26
Adding the ini file
Goto Preferences from Windows Menu
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 15/26
Add Library Files
Right-Click on the project and goto Add Files...
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 16/26
Add Library Files
If the path variables are not correct or if TIVAWARE INSTALL is not available,
you can create the path variables as follows...
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 17/26
Add Library Files
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 18/26
Add Library Files
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 19/26
Add Library Files
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 20/26
Add directory
Right-Click on the project and goto Properties
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 21/26
Add directory
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 22/26
Add directory
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 23/26
Add directory
Open main.c and copy the sample code, from C:\TI RTOS\TM4C\Lab 02\Files.
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 24/26
Build and Debug Project
Connect the Tiva Board in the Debug mode(As mentioned in the Tiva C Board
Manual).
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 25/26
Build and Debug Project
Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 26/26