<< Chapter < Page Chapter >> Page >

Project setup

Make an empty dsp/bios project

To create a CCS project select File->New->CCS Project .

This will bring up a window where you can enter the name of the project. The location selected is the default location for project files. Press Next .

CCS Project name and location

Since the example uses the TMS320C67xx processor the project type selected is C6000 . The project configurations are Debug and Release . Select the Next button.

Type of CCS project

Select the Next button.

On the Project Settings Screen , select the items that pertain to the type of project to be created. Since the project will be executed select Output Type: Executable . The processor type is TMS320C67xx so the Device Variant is Generic C67xx Device . This project will use Little Endian . The code generation tools are the latest version (in this case TI v7.0.3). The runtime support library is selected to match the device variant and the endianness selected. Automatic will pick the correct library. Press Next .

Since the project will be based on DSP/BIOS an empty DSP/BIOS example project. This will set up project parameters for DSP/BIOS.

Copy files from zip file to project directory. When they are copied to the project directory the files may be added to the project automatically but you could add them manually.There should be 5 files added to the project.

Set up the csl

Some options in the project need to be changed in order to use the CSL. To get the the project properties select Project->Properties . Add the include files directory to the search path by selecting Include Options under C6000 Compiler and then clicking the green plus sign and typeing in the directory name. In the example the include directory is C:\Program Files\Texas Instruments\C6xCSL\include .

Project properties: Include search path

The CSL needs to know what chip is being used so the chip name needs to be defined. Click on Predefined Symbols under C6600 Compiler. Click the green plus sign and add the name CHIP_6713.

Project properties: Pre-defined name

Finally, include the chip support library file csl6713.lib which is in the directory C:\Program Files\Texas Instruments\C6xCSL\lib_3x .

Stack and heap sizes

To get the the project properties select Project->Properties. Change the stack and heap sizes to 0x400 by selecting Basic Options under C6000 Linker .

Heap and stack size

Target configuration

In order to load the code onto the DSK board a target configuration must be created. To make a target configuration for the C6713 DSK board select File->New->Target Configuation File and then select the connection and board as shown in the following figure. When done, click Save .

Target Configuration Setup

Debug/test the project

To start a debug session either select Target->Debug Active Project or press the debug icon in the menu bar.

Debug icon

When the debug session starts the code files are compiled and linked into an executable file and the file is loaded onto the target. The initialization code is executed and the program is halted at the beginning of the main function.

Debug session

Press the run button and the data should be input from the selected input port and output to the LINE OUT port. Connect an appropriate input sourse to the input port and connect the LINE OUT to speakers or an oscilloscope. Run the program and verify the I/O.

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Ti dsp/bios lab. OpenStax CNX. Sep 03, 2013 Download for free at http://cnx.org/content/col11265/1.8
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Ti dsp/bios lab' conversation and receive update notifications?

Ask