Docsity

Using Code Composer Studio-Network Programming-Lecture Slides, Slides of Network Programming

Partial preview of the text

Download Using Code Composer Studio-Network Programming-Lecture Slides and more Slides Network Programming in PDF only on Docsity!

Using Code Composer Studio

Chapter 2

C6000 Integration Workshop

Technical TrainingOrganization.

T TO

Outline

 Code Composer Studio (CCS)

 Projects

 Build Options

 Build Configurations

 Configuration Tool

 C – Data Types and Header Files

 Lab 2

Technical TrainingOrganization

T TO

Outline

 Code Composer Studio (CCS)

 Projects

 Build Options

 Build Configurations

 Configuration Tool

 C – Data Types and Header Files

 Lab 2

Technical TrainingOrganization

T TO

What is a Project?

Project (.PJT) file contain:

References to files:

SourceLibrariesLinker, etc …

Project settings:

Compiler OptionsDSP/BIOSLinking, etc …

Technical TrainingOrganization Let’s look more closely at Build Options and Configurations …

T TO

-g -fr“$(Proj_dir)\Debug" -d"_DEBUG" -mv

Build Options GUI

GUI has 8 pages of options for code generation tools

Default build options for a new project are shownBasic page defaults are -g -mv

Technical Training^ To make options easier, TI recommends using … Organization

T TO

docsity.com

Build Configurations

For new projects, CCS automatically creates two build configurations:Debug (unoptimized)Release (optimized)

-g -fr“$(Proj_dir)\Debug" -d"_DEBUG" -mv

-o3 -fr“$(Proj_dir)\Release" -mv

Two Default Build Configurations

For new projects, CCS automatically creates two build configurations:Debug (unoptimized)Release (optimized)

Use the drop-down to quickly select build config.

-g -fr“$(Proj_dir)\Debug" -d"_DEBUG" -mv

-o3 -fr“$(Proj_dir)\Release" -mv

Two Default Build Configurations

For new projects, CCS automatically creates two build configurations:Debug (unoptimized)Release (optimized)

Use the drop-down to quickly select build config.

Add/Remove build config's with Project Configurations dialog (on project menus)

Edit a configuration:

**1. Set it active

  1. Modify build options** **(shown previously)
  2. Save project**

-g -fr“$(Proj_dir)\Debug" -d"_DEBUG" -mv

-o3 -fr“$(Proj_dir)\Release" -mv

Technical TrainingOrganization

T TO

Outline

 Code Composer Studio (CCS)

 Projects

 Build Options

 Build Configurations

 Configuration Tool

 C – Data Types and Header Files

 Lab 2

Technical TrainingOrganization

T TO

DSP/BIOS Configuration Tool

Simplifies system design by:

Automatically includes the appropriate runtime support libraries

Automatically handles interrupt vectors and system reset

Handles system memory configuration (builds CMD file)

Generates 5 files when CDB file is saved:C file, Asm file, 2 header files and a linker command (.cmd) file

More to be discussed later … Technical TrainingOrganization

T TO

„C6000 C Data Types

Type Bits Representation

char 8 ASCII

short 16 Binary, 2's complement

int 32 Binary, 2's complement

long (^40) Binary, 2's complement

long long 64 Binary, 2's complement

float 32 IEEE 32-bit

double 64 IEEE 64-bit

long double 64 IEEE 64-bit

pointers 32 Binary

Technical TrainingOrganization

T TO

Including Header Files in C

*** ======== Include files ======== /*

#include <csl.h>

#include <csl_edma.h>

#include "sine.h"

#include "edma.h"

1. What is #include used for?

2. What do header (.h) files contain?

It adds the contents of the header file to your C file at the point of the #include statement.

Let's look at a header file...docsity.com

Including Header Files in C

*** ======== Include files ======== /*

#include <csl.h>

#include <csl_edma.h>

#include "sine.h"

#include "edma.h"

1. What is #include used for?

2. What do header (.h) files contain?

3. What is the difference between <.h> and “.h”?

It adds the contents of the header file to your C file at the point of the #include statement.

They can contain any C statements. Usually, they contain code that would otherwise need to be entered into every C file. They’re a shortcut.

Angle brackets <.h> tell the compiler to look in the specified include path.Quotes “.h” indicate the file is located in the same location as the file which includes it. docsity.com

Outline

 Code Composer Studio (CCS)

 Projects

 Build Options

 Build Configurations

 Configuration Tool

 C – Data Types and Header Files

 Lab 2

Technical TrainingOrganization

T TO