0% found this document useful (0 votes)
193 views26 pages

CCS TivaWare

This document provides instructions for installing Code Composer Studio (CCS) and Tivaware software to develop programs for the Tiva C Series microcontroller. It describes downloading and installing CCS and Tivaware, creating a project in CCS, adding library and source files to the project, and debugging a sample blink LED program on the Tiva C board. The goal is to set up the development environment and execute a basic program to blink an LED.

Uploaded by

Joginder Yadav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
193 views26 pages

CCS TivaWare

This document provides instructions for installing Code Composer Studio (CCS) and Tivaware software to develop programs for the Tiva C Series microcontroller. It describes downloading and installing CCS and Tivaware, creating a project in CCS, adding library and source files to the project, and debugging a sample blink LED program on the Tiva C board. The goal is to set up the development environment and execute a basic program to blink an LED.

Uploaded by

Joginder Yadav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 26

Code Composer Studio for TivaTM C Series

Development and Evaluation Kit

Wadhwani Electronics Lab


Compiled by: Reshma Roshan

Department of Electrical Engineering


Indian Institute of Technology Bombay
December 31, 2015

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

1 Download Code Composer Studio (CCS) Integrated Development


Environment (IDE) for TM4x ARM MCUs from TM4C123G LaunchPad .
2 You will be asked to fill in a form, after which you can download the software.
3 Follow the instructions in the Code Composer Studio installation program.
Select the Complete Feature option and set Install.
4 For all of the other options, keep the default values.

Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 3/26
Tivaware

Tivaware software is used to simplify and speed development of Tiva C Series


based applications.
The complete software includes:
Peripheral, USB, Graphics, Sensor libraries.
Kit-and peripheral-specific code examples for TM4C123x devices.
Everything you need to use your Tiva C Series kits or boards.
Release notes and related documentation.

Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 4/26
Tivaware Installation

1 Download TivaTM C Series LaunchPad Evaluation Board Software from


TM4C123G LaunchPad.
2 You will be asked to fill in a form, after which you can download the software.
3 Run the TivaWare installer.
The installer is a self-extracting zip file that is located in the Tools/TivaWare
directory.
A zip file extraction utility such as WinZip can be used to manually extract
the contents.

Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 5/26
Blink LED Example

Download TI RTOS labs sols rev 2.30.zip from WEL EE712.


Copy the extracted folders under C:\TI RTOS.
Check for the Labs and solutions in the TM4C folder.

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

The library files will be added to the workspace.

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

The project will look like below:

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

The sample program will be executed.


The resume, pause and stop button in the toolbar can be used to control the
execution.
Step controls are also provided for debugging.

Wadhwani Electronics Lab Compiled by: Reshma Roshan Dept. of EE, IIT-Bombay 26/26

You might also like