Reply by Jeff Brower August 4, 20102010-08-04
Khurram-

Pranav mentions the -I command-line option for TI's cl6x compiler. If you're not using Makefiles (e.g. Linux) then
it's also worth mentioning that you can access this in the CCS GUI:

-on CCS main menu bar , Project --> Build Options

-select Compiler tab

-select Preprocessor category

-enter location (path) of header files in the
"Include Search Path" field

Multiple search paths can be entered.

-Jeff

> On 8/2/2010 12:59 AM, p...@yahoo.com wrote:
>>
>> HI
>> Iam khurram
>> i have TI tms320c6713dsk hardware and code composer studio software
>> i have made a new projec test_dsk
>> the code is
>> ---
>> #include "aic23_6713.h"
>> Uint32 fs = DSK_6713_AIC23_FREQ_8KHZ;
>> short sint[8] = {0,707,1000,707,0,-707,-1000,-707};
>> short i=0;
>> #define gain 10
>> main()
>> {
>> comm_poll();
>> DSK6713_LED_init();
>> DSK6713_DIP_init();
>> while(1)
>> {
>>
>> if(DSK6713_DIP_get(0)==0)
>> {
>> DSK6713_LED_on(1);
>> output_left_sample(sint[i++]*gain);
>> if (i>=8) i=0;
>> }
>>
>> else
>>
>> DSK6713_LED_off(1);
>> }
>>
>> }
>> --------------
>> when i build it i get
>> -----------
>>
>> ---------------------------- test_dsk.pjt - Debug
>> ----------------------------
>> [c6713dskinit.asm] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g
>> -fr"C:/CCStudio_v3.1/MyProjects/test_dsk/Debug"
>> -i"C:/CCStudio_v3.1/C6000/dsk6713/include" -d"CHIP_6713" -mv6710
>> --mem_model:data -@"../test_dsk/Debug.lkf" "c6713dskinit.asm"
>> "c6713dskinit.asm", WARNING! at line 28: [W0003] COFF debug directives
>> cannot be
>> used in DWARF assembly-source
>> debug mode; ignoring all COFF
>> debug directives
>> .file "c6713dskinit.c"
>>
>> "c6713dskinit.asm", WARNING! at line 28: [W0003] To use COFF debug
>> directives,
>> you must invoke COFF
>> assembly-source debug mode by
>> specifying the --symdebug:coff
>> build option
>> .file "c6713dskinit.c"
>>
>> No Assembly Errors, 2 Assembly Warnings
>>
>> [c6713dskinit.c] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g
>> -fr"C:/CCStudio_v3.1/MyProjects/test_dsk/Debug"
>> -i"C:/CCStudio_v3.1/C6000/dsk6713/include" -d"CHIP_6713" -mv6710
>> --mem_model:data -@"../test_dsk/Debug.lkf" "c6713dskinit.c"
>>
>> [test_dsk.c] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g
>> -fr"C:/CCStudio_v3.1/MyProjects/test_dsk/Debug"
>> -i"C:/CCStudio_v3.1/C6000/dsk6713/include" -d"CHIP_6713" -mv6710
>> --mem_model:data
>> -@"C:/CCStudio_v3.1/MyProjects/test_dsk/Debug.lkf" "test_dsk.c"
>> "test_dsk.c", line 1: fatal error: could not open source file
>> "aic23_6713.h"
>>
> The error means that the compiler can't find the file "aic23_6713.h".
> Since, you are using "" to include the header, the header must in the
> same folder as the source file.
> Or you can include, the abs/relative path of the header file in compiler
> settings.
> Read about " -i " directive of the cl6x compiler
>
> Hope it helps.
>>
>> 1 fatal error detected in the compilation of "test_dsk.c".
>> Compilation terminated.
>>
>> >> Compilation failure
>>
>> Build Complete,
>> 1 Errors, 2 Warnings, 0 Remarks.
>> ----------------------
>> when i make any project there is the same error
>> please guide me thanks
> --
>
> Regards,
>
> Pranav Desai
> DSP Systems and Telecom Engineer
> Signalogic Inc.

_____________________________________
Reply by Pranav Desai August 4, 20102010-08-04
Hello Khurram,

On 8/2/2010 12:59 AM, p...@yahoo.com wrote:
>
> HI
> Iam khurram
> i have TI tms320c6713dsk hardware and code composer studio software
> i have made a new projec test_dsk
> the code is
> ---
> #include "aic23_6713.h"
> Uint32 fs = DSK_6713_AIC23_FREQ_8KHZ;
> short sint[8] = {0,707,1000,707,0,-707,-1000,-707};
> short i=0;
> #define gain 10
> main()
> {
> comm_poll();
> DSK6713_LED_init();
> DSK6713_DIP_init();
> while(1)
> {
>
> if(DSK6713_DIP_get(0)==0)
> {
> DSK6713_LED_on(1);
> output_left_sample(sint[i++]*gain);
> if (i>=8) i=0;
> }
>
> else
>
> DSK6713_LED_off(1);
> }
>
> }
> --------------
> when i build it i get
> -----------
>
> ---------------------------- test_dsk.pjt - Debug
> ----------------------------
> [c6713dskinit.asm] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g
> -fr"C:/CCStudio_v3.1/MyProjects/test_dsk/Debug"
> -i"C:/CCStudio_v3.1/C6000/dsk6713/include" -d"CHIP_6713" -mv6710
> --mem_model:data -@"../test_dsk/Debug.lkf" "c6713dskinit.asm"
> "c6713dskinit.asm", WARNING! at line 28: [W0003] COFF debug directives
> cannot be
> used in DWARF assembly-source
> debug mode; ignoring all COFF
> debug directives
> .file "c6713dskinit.c"
>
> "c6713dskinit.asm", WARNING! at line 28: [W0003] To use COFF debug
> directives,
> you must invoke COFF
> assembly-source debug mode by
> specifying the --symdebug:coff
> build option
> .file "c6713dskinit.c"
>
> No Assembly Errors, 2 Assembly Warnings
>
> [c6713dskinit.c] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g
> -fr"C:/CCStudio_v3.1/MyProjects/test_dsk/Debug"
> -i"C:/CCStudio_v3.1/C6000/dsk6713/include" -d"CHIP_6713" -mv6710
> --mem_model:data -@"../test_dsk/Debug.lkf" "c6713dskinit.c"
>
> [test_dsk.c] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g
> -fr"C:/CCStudio_v3.1/MyProjects/test_dsk/Debug"
> -i"C:/CCStudio_v3.1/C6000/dsk6713/include" -d"CHIP_6713" -mv6710
> --mem_model:data
> -@"C:/CCStudio_v3.1/MyProjects/test_dsk/Debug.lkf" "test_dsk.c"
> "test_dsk.c", line 1: fatal error: could not open source file
> "aic23_6713.h"
>
The error means that the compiler can't find the file "aic23_6713.h".
Since, you are using "" to include the header, the header must in the
same folder as the source file.
Or you can include, the abs/relative path of the header file in compiler
settings.
Read about " -i " directive of the cl6x compiler

Hope it helps.
>
> 1 fatal error detected in the compilation of "test_dsk.c".
> Compilation terminated.
>
> >> Compilation failure
>
> Build Complete,
> 1 Errors, 2 Warnings, 0 Remarks.
> ----------------------
> when i make any project there is the same error
> please guide me thanks
--

Regards,

Pranav Desai
DSP Systems and Telecom Engineer
Signalogic Inc.
Reply by pers...@yahoo.com August 3, 20102010-08-03
HI
Iam khurram
i have TI tms320c6713dsk hardware and code composer studio software
i have made a new projec test_dsk
the code is
---
#include "aic23_6713.h"
Uint32 fs = DSK_6713_AIC23_FREQ_8KHZ;
short sint[8] = {0,707,1000,707,0,-707,-1000,-707};
short i=0;
#define gain 10
main()
{
comm_poll();
DSK6713_LED_init();
DSK6713_DIP_init();
while(1)
{

if(DSK6713_DIP_get(0)==0)
{
DSK6713_LED_on(1);
output_left_sample(sint[i++]*gain);
if (i>=8) i=0;
}

else

DSK6713_LED_off(1);
}

}
--------------
when i build it i get
-----------

---------------------------- test_dsk.pjt - Debug ----------------------------
[c6713dskinit.asm] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g -fr"C:/CCStudio_v3.1/MyProjects/test_dsk/Debug" -i"C:/CCStudio_v3.1/C6000/dsk6713/include" -d"CHIP_6713" -mv6710 --mem_model:data -@"../test_dsk/Debug.lkf" "c6713dskinit.asm"
"c6713dskinit.asm", WARNING! at line 28: [W0003] COFF debug directives cannot be
used in DWARF assembly-source
debug mode; ignoring all COFF
debug directives
.file "c6713dskinit.c"

"c6713dskinit.asm", WARNING! at line 28: [W0003] To use COFF debug directives,
you must invoke COFF
assembly-source debug mode by
specifying the --symdebug:coff
build option
.file "c6713dskinit.c"

No Assembly Errors, 2 Assembly Warnings

[c6713dskinit.c] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g -fr"C:/CCStudio_v3.1/MyProjects/test_dsk/Debug" -i"C:/CCStudio_v3.1/C6000/dsk6713/include" -d"CHIP_6713" -mv6710 --mem_model:data -@"../test_dsk/Debug.lkf" "c6713dskinit.c"

[test_dsk.c] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g -fr"C:/CCStudio_v3.1/MyProjects/test_dsk/Debug" -i"C:/CCStudio_v3.1/C6000/dsk6713/include" -d"CHIP_6713" -mv6710 --mem_model:data -@"C:/CCStudio_v3.1/MyProjects/test_dsk/Debug.lkf" "test_dsk.c"
"test_dsk.c", line 1: fatal error: could not open source file "aic23_6713.h"
1 fatal error detected in the compilation of "test_dsk.c".
Compilation terminated.

>> Compilation failure

Build Complete,
1 Errors, 2 Warnings, 0 Remarks.
-------------------------
when i make any project there is the same error
please guide me thanks

_____________________________________