Sunday 4 October 2015

Building projects for DSK6713 on Code Composer Studio V5.5

The steps to install Code Composer Studio V5.5 on Windows 7 and the steps to build a project for DSK6713 board using CCS V5.5 are elaborated in this attachment.

Code Composer Studio can be downloaded from Texas  Instruments wiki

You will have to register/create an account for the free download

The best option would be to download an Off-line installer.

After installation, on first launch of CCS, choose licence type as free. This would serve most academic projects based on DSK6713.


You may also have to download the following files to work with DSK6713 and CCSV5.5 
Board support libraries

Chip support libraries

Support files provided with the text Digital Signal Processing and Applications with the TMS320C6713 and TMS320C6416 DSK (second edition)  by Rulph Chassaing and Donald Reay

Installing CCSV5.5 on Windows 7 for DSK6713 projects

1.      Installing CCSV5.5 on Windows 7
Choose the following options for a minimal installation for DSK6713 board (spectrum Digital)
CCS install folder E:\ti           (or any other drive , we  have used E: drive)
Setup Type: Custom
Processor Support: C6000 Single Core DSPs
Select Components :Select all options (Base installation)
Select Emulators:Spectrum Digital Emulators
2.      Install Board support libraries
Download the board support library (BSL), available at http://c6000.spectrumdigital.com/dsk6713/
Under the option Board Supprt Library and code examples.
extract the zip file  dsk6713revc_files and copy the folder  CCStudio to  E:\DSK6713
3.      Install chip support libraries
Download the board support library (BSL), available at http://www.ti.com/tool/sprc090
Extract the file sprc090 and install the CSL at E:\C6xCSL

4.      Download the Support files
Download the  updated Support files provided with the text Digital Signal Processing and Applications with the TMS320C6713 and TMS320C6416 DSK (second edition)  by Rulph Chassaing and Donald Reay from this location
Support files  (The files are the property of the above book authors) TI forum post  Link 2
Extract the Support files to E:\DSK6713\C6713

5.      Plug in the DSK and start up CCS v5
Connect the DSK6713 to the PC using USB cable and power up the board
you will see  "Spectrum Digital TMS320C6713 DSK" listed as an installed device

6.      Target Configuration
Double click the CCS icon from the desktop to launch CCS
In CCS v5, go to Window > Show View >Target Configurations
 Right click on the "User Defined" folder in the target configurations panel and select New Configuration
Name the configuration DSK6713.ccxml and click Finish.A new screen launches.
In the connection pulldown menu, select Spectrum Digital DSK-EVM-eZdsp onboard USB Emulator. In the device selector, select DSK6713. Click Save.

Now expand the User Defined" target configurations folder by clicking on the little triangle next to the folder. You should see the new DSK6713.ccxml target configuration in there. Right click on it and select "Launch Selected Configuration".

If you get an error, then either CCS v5 wasn't installed correctly or you haven't set up the target configuration correctly.
Now click on "Run->Connect Target"
The message "GEL StartUp Complete" in the Console means that CCS v5 is successfully talking with the DSK.

You are now ready to build your project using CCS V5.5

Tuesday 29 September 2015

Code composer studio 3.1 error

"Your Code Composer does not support the connected target. Device driver name: "C:\CCStudio_v3.1\drivers\sdgo6713dsk.dvr" 

If a the above message appears when CCS3.1 is launched in WinXp. Leftover registry entries of uninstalled CCS versions can conflict with and confuse existing or future CCS installations

To solve the issue follow these steps

  • Keep ready the installation CD to re install the CCS 3.1
  • Uninstall CCS 3.1 from the PC
  • Restart the PC
  • Go to run and type regedit  to launch system registry editor
  • Delete the following keys

         My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Texas Instruments

         My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\GODSP
  • Delete the Code composer installation folder C:\CCStudio_v3.1 from the PC
  • Restart the PC
  • Reinstall CCS 3.1
Reference
https://e2e.ti.com/support/dsp/tms320c6000_high_performance_dsps/f/115/p/371588/1307104#1307104





Template program

// Include support files from Chassaing's text edition 2
#include "DSK6713_AIC23.h" //codec support
Uint32 fs=DSK6713_AIC23_FREQ_8KHZ; //set sampling rate
#define DSK6713_AIC23_INPUT_MIC 0x0015          //
#define DSK6713_AIC23_INPUT_LINE 0x0011
Uint16 inputsource=DSK6713_AIC23_INPUT_LINE; // select LINE IN as input source

// *  Define global variables here *

// short k;
// short gain = 10;
// int i = 0;



interrupt void c_int11() //interrupt service routine
{
// * write your interrupt service routine code here
return;
}


void main() // Main Program
{
// write your main program below

comm_intr(); //init DSK, codec, McBSP
while (1);
}

Function comm_intr() in Sine wave generation using lookup table program

// Program to generate Sine wave
// Program uses the support files from Chassaing's text book

#include "dsk6713_aic23.h"                                //codec-dsk support file
Uint32 fs=DSK6713_AIC23_FREQ_16KHZ;      //set sampling rate
short sine_table[8] = {0,707,1000,707,0,-707,-1000,-707};
short gain = 10;
int i = 0;

interrupt void c_int11()                         //interrupt service routine
{
output_sample(gain*sine_table[i]);
i= i+1;
if(i >= 8)i=0;
return;
}

void main() // Main Program
{
 comm_intr(); //init DSK, codec, McBSP
 while (1);

}

// ===============================

The function comm_intr() initializes the DSK, AIC23 codec, and the McBSP (Multichannel Buffered Serial Ports)  on the DSK 6713 board. 

The function comm_intr() also sets up interrupts such that the AIC23 codec will sample the analog input signal and interrupt the C6713 processor, at the sampling frequency defined by the line 2 of the program.When the interrupt occurs at Ts =1/fs, the interrupt service routine executes and a value from the sine_table[i] is output to the LINE OUT of the DSK board

Chassaing's text Support files

Support files from the text Digital Signal Processing and Applications with the TMS320C6713 and TMS320C6416 DSK by Rulph Chassaing and Donald Reay

Files in folder Support\Chassaing1 for UG labs (Book edition 1 support files)
Files in folder Support\Chassaing1 for PG labs (Book edition 2 support files)