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)