Hello........
I have successfully done project on ccs v3.1 for the processor TMS320C6713.
But i need to convert it for ccs v4. So plese help me by proper guidence.
Thank you......
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello........
I have successfully done project on ccs v3.1 for the processor TMS320C6713.
But i need to convert it for ccs v4. So plese help me by proper guidence.
Thank you......
Hi,
There is a wiki topic to help you get started with this:
http://processors.wiki.ti.com/index.php/Importing_CCSv3_Projects_into_CCSv4
Thanks
ki
Thanks for your response. But still i am facing some problem.
I HAVE DONE THE FOLLOWING CODE AND SUCCESSFULLY RUN THIS IN CCS V3.1. BUT NOW I AM FACING PROBLEM TO RUN THIS IN CCS V4. IT SHOWING ME ERRORS THAT " CAN NOT OPEN dsk6713.h, tonecfg.h ETC"
SO HELP TO OVERCOME THE PROBLEM.
#include "tonecfg.h"
#include "stdio.h"
#include "stdlib.h"
#include "dsk6713.h"
#include "dsk6713_aic23.h"
#include "dsk6713_led.h"
#include "dsk6713_dip.h"
/* Codec configuration settings */
DSK6713_AIC23_Config config = {
0x0017, // 0 DSK6713_AIC23_LEFTINVOL Left line input channel volume
0x0017, // 1 DSK6713_AIC23_RIGHTINVOL Right line input channel volume
0x00d8, // 2 DSK6713_AIC23_LEFTHPVOL Left channel headphone volume
0x00d8, // 3 DSK6713_AIC23_RIGHTHPVOL Right channel headphone volume
0x0011, // 4 DSK6713_AIC23_ANAPATH Analog audio path control
0x0000, // 5 DSK6713_AIC23_DIGPATH Digital audio path control
0x0000, // 6 DSK6713_AIC23_POWERDOWN Power down control
0x0043, // 7 DSK6713_AIC23_DIGIF Digital audio interface format
0x0001, // 8 DSK6713_AIC23_SAMPLERATE Sample rate control
0x0001 // 9 DSK6713_AIC23_DIGACT Digital interface activation
};
#include "tonecfg.h"
/*
main() - Main code routine, initializes BSL and generates tone
*/
void main()
{
DSK6713_AIC23_CodecHandle hCodec;
Uint32 x,y,leftsample,rightsample;
//Int16 x,y;
/* Initialize the board support library, must be first BSL call */
DSK6713_init();
/* Start the codec */
hCodec = DSK6713_AIC23_openCodec(0, &config);
DSK6713_AIC23_setFreq(hCodec,DSK6713_AIC23_FREQ_48KHZ);
while(1)
{
/* Read a sample to the left channel */
while (!DSK6713_AIC23_read(hCodec,&leftsample));
/* Read a sample to the right channel */
while (!DSK6713_AIC23_read(hCodec,&rightsample));
x=leftsample;
y=rightsample;
/* Write a sample to the left channel */
while (!DSK6713_AIC23_write(hCodec,10*x));
/* Write a sample to the right channel */
while (!DSK6713_AIC23_write(hCodec,10*y));
}
/* Close the codec */
DSK6713_AIC23_closeCodec(hCodec);
}
PABAN SAHA said:CAN NOT OPEN dsk6713.h, tonecfg.h
For some reason, your v4 project doe snot have the location for these header files. You need to add the location to these files to your v4 header file path build options. Right-click on your project and select "Build Properties". Then expand the "C6000 Compiler" node in the "Tool Settings" tab and select "Include Options". In the second field, add your paths to where the header files are (dsk6713.h, tonecfg.h, etc).
SUBJECT: DSK6713 + ANALOG INPUT OUTPUT+ CCSV4
Dear Ti members,
The main problem in CCS3.1 , I was facing, was I did not able to make a new project, every time was trying to do so it shows different kind of errors like cannot open headers. If I specify the path then it shows can not open csl.h where in my code i did not use csl.h, but some other header may need that. if i specify the path for csl.h,error remains.
So what i did, I modified the example codes to serve my purpose (the example project was tone.pjt for demo of aic codec). Initially when the codes were simple & there was no problem. But the code complexity increased with time, & then I felt the need of 'printf()' function at different areas for debugging. But the printf function in that original/modified example code was not working it was not printing any thing at all, also no error was showing. Where some other examples(in V3.1) that uses print function runing successfully & printing every thing i want on those examples like a example project on average calculation.
The above stated story is for CCSV3.1.
Now I have shifted to CCSV4 for better performance & expecting some help from the forum regarding the same.
I have installed the CCSV4 successfully, but surprisingly I did not able to build any project for the below mentioned code yet. Your previous suggestion did not solve the problem, after specifying the path for the headers it is asking for csl.h, after that specifying path for csl.h did not make any change in error.In this context I want aware u that I want to aware u that I was specifying the path of the headers which was generated during installation of ccsv3.1. The initial purpose is very simple , I want to make a test program for analog input output. I want to build a new project for below mentioned code.Can u help me on
1.what are the headers do I need to include for the code given below. 2.from where will I get that header files is it same as ccsv3.1 3.moreover it will be very helpful for me if u can send me a example project for analog read & write which will successfully run in CCS4 for DSK6713.
for ccs3.1 the header files were
#include "stdio.h"
#include "stdlib.h"
#include "dsk6713.h"
#include "dsk6713_aic23.h" #include "tonecfg.h"
/* Codec configuration settings */
DSK6713_AIC23_Config config = {
0x0017, // 0 DSK6713_AIC23_LEFTINVOL Left line input channel volume
0x0017, // 1 DSK6713_AIC23_RIGHTINVOL Right line input channel volume
0x00d8, // 2 DSK6713_AIC23_LEFTHPVOL Left channel headphone volume
0x00d8, // 3 DSK6713_AIC23_RIGHTHPVOL Right channel headphone volume
0x0011, // 4 DSK6713_AIC23_ANAPATH Analog audio path control
0x0000, // 5 DSK6713_AIC23_DIGPATH Digital audio path control
0x0000, // 6 DSK6713_AIC23_POWERDOWN Power down control
0x0043, // 7 DSK6713_AIC23_DIGIF Digital audio interface format
0x0001, // 8 DSK6713_AIC23_SAMPLERATE Sample rate control
0x0001 // 9 DSK6713_AIC23_DIGACT Digital interface activation
};
#include "tonecfg.h"
// main() - Main code routine, initializes BSL and generates tone
void main()
{
DSK6713_AIC23_CodecHandle hCodec;
Uint32 x,y,leftsample,rightsample;
DSK6713_init(); // Initialize the board support library, must be first BSL call
hCodec = DSK6713_AIC23_openCodec(0, &config); //* Start the codec */
DSK6713_AIC23_setFreq(hCodec,DSK6713_AIC23_FREQ_48KHZ);
while(1)
{
while (!DSK6713_AIC23_read(hCodec,&leftsample)); // Read a sample to the left channel
while (!DSK6713_AIC23_read(hCodec,&rightsample)); // Read a sample to the right channel
x=leftsample;
y=rightsample;
while (!DSK6713_AIC23_write(hCodec,10*x)); // Write a sample to the left channel
while (!DSK6713_AIC23_write(hCodec,10*y)); // Write a sample to the right channel
}
DSK6713_AIC23_closeCodec(hCodec); //Close the codec
}
Since you have stated that you have successfully compiled and built your application code in CCSv3.x, you have a working base to reference.
The errors you indicate you are receiving is that CCSv4.x and its project settings have not completely specified in the include paths of all of the header files you are using in your project. Keep in mind, the header files you have stated in the above code example may themselves include other header files. It will be your responsibility to communicate to the compiler where those header files are located. This could be a recursive process until you have fully described the necessary paths to the compiler.
Furthermore, you may need to also do similar activity for the linker, if there are any libraries that are being used in your application code. You will need to properly describe the location of those files to the linker via its build options as well.
Since you have a working setup with CCSv3.x, you know you physically have these files on your machine. Its a matter of properly describing the location of these items to CCSv4.
Dear brandon
Thanks for the information.
I am actually facing problem to make a new project. So I am trying to open/build an example project tone.pjt which came with ccs v3.1 cd with DSK TMS320C6713 board.
The steps are as follows
OPEN CCSV4 - PROJECT - IMPORT LEGACY CCSV3.3 PROJECT - RESPECTIVE PATH - SELECT tone.pjt - OPEN
And then build the project
PROJECT - BUILD PROJECT
After that I am getting the error
errors encountered during linking; "C:/Documents and Settings/BIRU/Desktop/project ppp/tone/Debug/tone.out" not built tone line 0 1073205417234 174
unresolved symbol _MCBSP_open, first referenced in C:/CCSTUD~1.1/c6000/dsk6713/lib/dsk6713bsl.lib<dsk6713_aic23_opencodec.obj> tone line 0 1073205417234 172
unresolved symbol _MCBSP_start, first referenced in C:/CCSTUD~1.1/c6000/dsk6713/lib/dsk6713bsl.lib<dsk6713_aic23_opencodec.obj> tone line 0 1073205417234 173
code for this prjct
/*
* Copyright 2002 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*/
/*
* ======== tone.c ========
*
* This example uses the AIC23 codec module of the 6713 DSK Board Support
* Library to generate a 1KHz sine wave on the audio outputs for 5 seconds.
* The sine wave data is pre-calculated in an array called sinetable. The
* codec operates at 48KHz by default. Since the sine wave table has 48
* entries per period, each pass through the inner loop takes 1 millisecond.
* 5000 passes through the inner loop takes 5 seconds.
*
* Please see the 6713 DSK help file under Software/Examples for more
* detailed information.
*/
/*
* DSP/BIOS is configured using the DSP/BIOS configuration tool. Settings
* for this example are stored in a configuration file called tone.cdb. At
* compile time, Code Composer will auto-generate DSP/BIOS related files
* based on these settings. A header file called tonecfg.h contains the
* results of the autogeneration and must be included for proper operation.
* The name of the file is taken from tone.cdb and adding cfg.h.
*/
#include "tonecfg.h"
/*
* The 6713 DSK Board Support Library is divided into several modules, each
* of which has its own include file. The file dsk6713.h must be included
* in every program that uses the BSL. This example also includes
* dsk6713_aic23.h because it uses the AIC23 codec module.
*/
#include "dsk6713.h"
#include "dsk6713_aic23.h"
/* Length of sine wave table */
#define SINE_TABLE_SIZE 48
/* Codec configuration settings */
DSK6713_AIC23_Config config = {
0x0017, // 0 DSK6713_AIC23_LEFTINVOL Left line input channel volume
0x0017, // 1 DSK6713_AIC23_RIGHTINVOL Right line input channel volume
0x00d8, // 2 DSK6713_AIC23_LEFTHPVOL Left channel headphone volume
0x00d8, // 3 DSK6713_AIC23_RIGHTHPVOL Right channel headphone volume
0x0011, // 4 DSK6713_AIC23_ANAPATH Analog audio path control
0x0000, // 5 DSK6713_AIC23_DIGPATH Digital audio path control
0x0000, // 6 DSK6713_AIC23_POWERDOWN Power down control
0x0043, // 7 DSK6713_AIC23_DIGIF Digital audio interface format
0x0001, // 8 DSK6713_AIC23_SAMPLERATE Sample rate control
0x0001 // 9 DSK6713_AIC23_DIGACT Digital interface activation
};
/* Pre-generated sine wave data, 16-bit signed samples */
Int16 sinetable[SINE_TABLE_SIZE] = {
0x0000, 0x10b4, 0x2120, 0x30fb, 0x3fff, 0x4dea, 0x5a81, 0x658b,
0x6ed8, 0x763f, 0x7ba1, 0x7ee5, 0x7ffd, 0x7ee5, 0x7ba1, 0x76ef,
0x6ed8, 0x658b, 0x5a81, 0x4dea, 0x3fff, 0x30fb, 0x2120, 0x10b4,
0x0000, 0xef4c, 0xdee0, 0xcf06, 0xc002, 0xb216, 0xa57f, 0x9a75,
0x9128, 0x89c1, 0x845f, 0x811b, 0x8002, 0x811b, 0x845f, 0x89c1,
0x9128, 0x9a76, 0xa57f, 0xb216, 0xc002, 0xcf06, 0xdee0, 0xef4c
};
/*
* main() - Main code routine, initializes BSL and generates tone
*/
void main()
{
DSK6713_AIC23_CodecHandle hCodec;
Int16 msec, sample;
/* Initialize the board support library, must be called first */
DSK6713_init();
/* Start the codec */
hCodec = DSK6713_AIC23_openCodec(0, &config);
/* Generate a 1KHz sine wave for 5 seconds */
for (msec = 0; msec < 5000; msec++)
{
for (sample = 0; sample < SINE_TABLE_SIZE; sample++)
{
/* Send a sample to the left channel */
while (!DSK6713_AIC23_write(hCodec, sinetable[sample]));
/* Send a sample to the right channel */
while (!DSK6713_AIC23_write(hCodec, sinetable[sample]));
}
}
/* Close the codec */
DSK6713_AIC23_closeCodec(hCodec);
}
PABAN SAHA said:errors encountered during linking; "C:/Documents and Settings/BIRU/Desktop/project ppp/tone/Debug/tone.out" not built tone line 0 1073205417234 174
unresolved symbol _MCBSP_open, first referenced in C:/CCSTUD~1.1/c6000/dsk6713/lib/dsk6713bsl.lib<dsk6713_aic23_opencodec.obj> tone line 0 1073205417234 172
unresolved symbol _MCBSP_start, first referenced in C:/CCSTUD~1.1/c6000/dsk6713/lib/dsk6713bsl.lib<dsk6713_aic23_opencodec.obj> tone line 0 1073205417234 173
You are missing the CSL. Add the following library to your project:
"C:\CCStudio_v3.1\C6000\csl\lib\csl6713.lib"
Thanks
ki
Dear Ti members.
Now I have added "C:\CCStudio_v3.1\C6000\csl\lib\csl6713.lib" & 1 more lib "C:\CCStudio_v3.1\C6000\dsk6713\lib\dsk6713bsl.lib". But now it is showing the following warning & errors
warning: automatic RTS selection: could not resolve index library "libc.a" to
a compatible library
warning: entry-point symbol "_c_int00" undefined
undefined first referenced
symbol in file
--------- ----------------
__divd C:/CCStudio_v3.1/examples/dsk6713/bsl/tone/Debug/tone.obj
__fixdu C:/CCStudio_v3.1/examples/dsk6713/bsl/tone/Debug/tone.obj
__strasg C:/CCStudio_v3.1/examples/dsk6713/bsl/tone/tone/dsk6713bsl.lib<dsk6713.obj>
_atan C:/CCStudio_v3.1/examples/dsk6713/bsl/tone/Debug/tone.obj
_cos C:/CCStudio_v3.1/examples/dsk6713/bsl/tone/Debug/tone.obj
_sin C:/CCStudio_v3.1/examples/dsk6713/bsl/tone/Debug/tone.obj
error: unresolved symbols remain
error: errors encountered during linking;
"C:/CCStudio_v3.1/examples/dsk6713/bsl/tone/Debug/tone.out" not built
>> Compilation failure
gmake: *** [C:/CCStudio_v3.1/examples/dsk6713/bsl/tone/Debug/tone.out] Error 1
gmake: Target `all' not remade because of errors.
Build complete for project tone.
I want to inform you many of us facing problems regarding the migration of projects. Your wiki pages are not sufficient to resolve these issues. So plz do migrate a project from ccs3.1 to ccs4. after that suggest us how to do it . Bcoz in this way it takes 1day to resolve a issue, next day we get a new issue/error to resolve 1day waste againg, we do post at daytime& u reply at night as per Indian Standard time .
So I request you plz do this migration it by your own, if u get success then post step step procedure. Otherwise we will assume that it is beyond your capability.
Thanks
Dear Ti members.
Now I have added "C:\CCStudio_v3.1\C6000\csl\lib\csl6713.lib" & 1 more lib "C:\CCStudio_v3.1\C6000\dsk6713\lib\dsk6713bsl.lib". But now it is showing the following warning & errors
warning: automatic RTS selection: could not resolve index library "libc.a" to
a compatible library
warning: entry-point symbol "_c_int00" undefined
undefined first referenced
symbol in file
--------- ----------------
__divd C:/CCStudio_v3.1/examples/dsk6713/bsl/tone/Debug/tone.obj
__fixdu C:/CCStudio_v3.1/examples/dsk6713/bsl/tone/Debug/tone.obj
__strasg C:/CCStudio_v3.1/examples/dsk6713/bsl/tone/tone/dsk6713bsl.lib<dsk6713.obj>
_atan C:/CCStudio_v3.1/examples/dsk6713/bsl/tone/Debug/tone.obj
_cos C:/CCStudio_v3.1/examples/dsk6713/bsl/tone/Debug/tone.obj
_sin C:/CCStudio_v3.1/examples/dsk6713/bsl/tone/Debug/tone.obj
error: unresolved symbols remain
error: errors encountered during linking;
"C:/CCStudio_v3.1/examples/dsk6713/bsl/tone/Debug/tone.out" not built
>> Compilation failure
gmake: *** [C:/CCStudio_v3.1/examples/dsk6713/bsl/tone/Debug/tone.out] Error 1
gmake: Target `all' not remade because of errors.
Build complete for project tone.
I want to inform you many of us facing problems regarding the migration of projects. Your wiki pages are not sufficient to resolve these issues. So plz do migrate a project from ccs3.1 to ccs4. after that suggest us how to do it . Bcoz in this way it takes 1day to resolve a issue, next day we get a new issue/error to resolve 1day waste againg, we do post at daytime& u reply at night as per Indian Standard time .
So I request you plz do this migration it by your own, if u get success then post step step procedure. Otherwise we will assume that it is beyond your capability.
Thanks