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.

TMS320C6713 + ccv6



/*
* main.c
*/

#include "dsk6713.h"
#include "dsk6713_aic23.h"
#include "stdlib.h"
#include "math.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 */\
0x01f9, /* 2 DSK6713_AIC23_LEFTHPVOL Left channel headphone volume */ \
0x01f9, /* 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 */ \
};

void main()
{
DSK6713_AIC23_CodecHandle hCodec;
Int16 OUT_L, OUT_R;
Uint32 IN_L;

// Initialize BSL
DSK6713_init();

//Start codec
hCodec = DSK6713_AIC23_openCodec(0, &config);

// Set frequency to 48KHz
DSK6713_AIC23_setFreq(hCodec, DSK6713_AIC23_FREQ_48KHZ);

for(;;)
{
// Read sample from the left channel
while (!DSK6713_AIC23_read(hCodec, &IN_L));

// Feeding the input directly to output you can add effects here
OUT_L = IN_L;
OUT_R = IN_L;

// Send sample, first left next right channel
while (!DSK6713_AIC23_write(hCodec, OUT_L));
while (!DSK6713_AIC23_write(hCodec, OUT_R));
}

//DSK6713_AIC23_closeCodec(hCodec); // Codec close is unreachable
}

ERROR

Description Resource Path Location Type
Unknown main.c Unknown Unknown org.eclipse.core.internal.resources.Marker@b6539622 is not of a displayable type
Unknown c6713_audio Unknown Unknown org.eclipse.core.internal.resources.Marker@a443c6c3 is not of a displayable type
Unknown c6713_audio Unknown Unknown org.eclipse.core.internal.resources.Marker@a443c6c4 is not of a displayable type
Invalid project path: Include path not found (C:\ti\C6xCSL\include). c6713_audio pathentry Path Entry Problem
Invalid project path: Include path not found (C:\ti\DSK6713\c6000\dsk6713\include). c6713_audio pathentry Path Entry Problem
Unknown c6713_audio Unknown Unknown org.eclipse.core.internal.resources.Marker@a443c6c1 is not of a displayable type

console


**** Build of configuration Debug for project c6713_audio ****

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../main.c'
'Invoking: C6000 Compiler'
"C:/ti/ccsv6/tools/compiler/c6000_7.4.18/bin/cl6x" -mv6700 -g --define=c6713 --define=CHIP_6713 --include_path="C:/ti/ccsv6/tools/compiler/c6000_7.4.18/include" --include_path="C:/C6713/c6713_audio/include" --include_path="C:/DSK6713/DSK6713/c6000/dsk6713/include" --include_path="C:/TI/DSK6713/c6000/dsk6713/include" --include_path="C:/TI/C6xCSL/include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="main.d" "../main.c"

>> Compilation failure
subdir_rules.mk:7: recipe for target 'main.obj' failed
"C:/C6713/c6713_audio/include/dsk6713.h", line 20: fatal error #5: could not open source file "csl.h"
1 fatal error detected in the compilation of "../main.c".
Compilation terminated.
gmake: *** [main.obj] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

Project EXplorer

c6713_audio

Includes

"C:\C6713\c6713_audio\include"
"C:\DSK6713\DSK6713\c6000\dsk6713\include"
"C:\TI\C6xCSL\include"

Debug

Include

C6713.cmd

main.c

TMS320C6713.ccxml

 

 

i inclide path but error  not remove

 

  • There are two indications that the include path is not correct.

    The first is this message which says that this path is invalid: Invalid project path: Include path not found (C:\ti\C6xCSL\include).

    The second is the compiler error that indicates that it cannot find csl.h: "C:/C6713/c6713_audio/include/dsk6713.h", line 20: fatal error #5: could not open source file "csl.h"


    Make sure that you specify the correct path to csl.h in the Compiler's Include Option.

  • thanks for your response 

    yes this problem is solved.

    now another error is

    Description Resource Path Location Type
    #10010 errors encountered during linking; "c6713_audio.out" not built c6713_audio C/C++ Problem

    in this Example 'c6713_audio' there is no "c6713_audio.out" 

    how i generate this.

  • atal tewari said:
    #10010 errors encountered during linking; "c6713_audio.out" not built c6713_audio C/C++ Problem

    This means that there are still some build (linker) errors remaining so the executable has not built successfully. Check the CCS build console to see what errors remain.

    Please see this wiki page for common build errors or search the forums for the specific build error to get more details and solutions. Many errors have been discussed multiple times on the forums and you will very likely find the solution by doing a search.

  • thanks for your help.

    i read the wiki page but i not able to remove error.

    can you give me some basic(small) example or video how i make project in CCCv6 with TMS320C6713.

  • The DSK6713 is a very old product and was designed to work with CCSv3, which is no longer supported. I don't think we have any out-of-box examples for it with CCSv6. However this post has several good references to help you get going.