introduction to code composer studio

           To start API level programming on the TIVA C series launchpad we required two main software: Code Composer Studio (IDE) and TivaWare Peripheral API library. Download files from the link provided below. Also, download driver for the EX-TM4C123GXL launchpad.


Installation guide for code composer studio is provided here 
Note: During Installation make sure to select TM4C12x ARM cortex M4F based MCU 

Functional overview of code composer studio:

  
Editor: It is used to write or edit source code in a suitable programming language. 
Compiler: It is used to convert source code from higher-level programming language i.e C-code to assembly language code
Assembler: It is used to convert assembly language code into machine code. It takes commands from assembly language and converts them into binary code.
Standard runtime library: it consists of  standard predefined names and headers use in a particular language.
SYS/BIOS config: It is used to manage hardware interrupt related priorities.
SYS/BIOS Libraries: SYS/BIOS library is used to handle hardware and software interrupts, task threads, and background threads.
Linker:It is used to combine standard libraries and commands with the main program file and convert them into a single executable file.
Debugger: It is used to identify coding errors at various stages. It produces the conditions in which error has occurred
Simulator: Simulator is used to test the program on software. 

Code composer studio Editing GUI:


Editor pane: It is used as an editorial pane for source code.
Console pane: Console pane shows information related to debugging of source code. 
Problems pane: It is used to show errors present in source code.
Project Explorer: It is used to manage project documents here.

How to build project on code composer studio:

1. Select the workspace directory:
    The workspace directory is used to store code composer studio projects, settings, and preferences related to it. Select the location of the directory here.


2.  Create a new project:
    To create new projects click on Project - New CCS project... and then fill projects related details.


1. Select target microcontroller TIVA TM4C123GH6PM from the list given below.
2. In connection, select the Stellaris In-Circuit Debug Interface.
3. Enter the name of a project.
4. Select the location to store the project file. Use default location in workspace or select customize             location from the browse button.
5. In next the section select empty project with main.c for embedded c programming. 

3. Add new files to the project:
    After creating a new project we need to add main.c files in it (If already added when creating project then no need to add these files again). Along with this copy source file and linked library file with it.

How to add files in the project:
Select project - Right-click on it - Add files option - select location of the file - click on ok - select copy or link option - click OK.

Link TivaWare driverlib.lib file to project: This file is available at location: 
c:\TI\TivaWare_C_Series-2.2\driverlib\ccs\Debug\driverlib.lib 

4. Add include search paths to project:
    a. Click on project open and open project properties or press (alt + enter). In properties window open Build-ARM Compiler-Include Options. Click on the ADD button and browse the following path and them press apply and close.
    


Short step intro:
1. Select the workspace for the project.
2. Create a new project and add main.c file in it.
3. link driverlib.lib file from the add file menu.
4. link header from include option.




Comments