Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

"sine8_led.c", fatal errr: could't open sorce file

Status
Not open for further replies.

haydaa

Member level 3
Member level 3
Joined
Feb 21, 2006
Messages
54
Helped
4
Reputation
8
Reaction score
3
Trophy points
1,288
Location
turkey
Activity points
1,756
fatal error: could not open source file

I have started to study Dr. Chassaing book (DSP Appl. With The C6713 and c6416 DSK). But at the first example (sine8_LED) I have this type of errors:


--------------------------- sine8_LED.pjt - Debug ---------------------------
[sine8_led.c] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g -s -fr"C:/CCStudio_v3.1/MyProjects/sine8_LED/Debug" -d"CHIP_6713" -mv6710 -@"../../../sine8_LED/Debug.lkf" "sine8_led.c"
"sine8_led.c", line 2: fatal error: could not open source file "dsk6713_aic23.h"
1 fatal error detected in the compilation of "sine8_led.c".
Compilation terminated.

>> Compilation failure

[c6713dskinit.c] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g -s -fr"C:/CCStudio_v3.1/MyProjects/sine8_LED/Debug" -d"CHIP_6713" -mv6710 -@"../../sine8_LED/Debug.lkf" "c6713dskinit.c"
"c6713dskinit.c", line 3: fatal error: could not open source file "C6713dskinit.h"
1 fatal error detected in the compilation of "c6713dskinit.c".
Compilation terminated.

>> Compilation failure

[Vectors_poll.asm] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g -s -fr"C:/CCStudio_v3.1/MyProjects/sine8_LED/Debug" -d"CHIP_6713" -mv6710 -@"../../sine8_LED/Debug.lkf" "Vectors_poll.asm"

Build Complete,
2 Errors, 0 Warnings, 0 Remarks.




I have tried to different ways to include related .h files. But, no result.
Can anybody help me?
 

c6713dskinit.c

I have solved the first problem myself. The rule is(for now): copy related files where u insert source files.

Now I have following problem. I have searched that many people get same warnings but there is no reply. Pls help all of us(ex. 1.1 of R. Chassaing's DSP and Appl. with C6713 and C6416 DSK):

............
............
>> warning: creating output section .vecs without SECTIONS specification
>> warning: Detected a near (.bss section relative) data reference to the symbol
_DSK6713_AIC23_codecdatahandle defined in section .far. The
reference occurs in
C:\CCStudio_v3.1\MyProjects\myfirst\Debug\c6713dskinit.obj, section
.text, SPC offset 00000058. Either make the symbol near data by
placing it in the .bss section, or make the references to the
symbol far. For C/C++ code use 'far' or 'near' modifiers on the
type definition of the symbol or compile with the --mem_model:data
switch.
Build Complete,
0 Errors, 2 Warnings, 0 Remarks.
 
  • Like
Reactions: bee

    bee

    Points: 2
    Helpful Answer Positive Rating
fatal error could not open source file

I have solved the second problem myself, by setting

Build Options-->Compiler-->Category-Advanced-->
Memory Model== Far(--mem_model:data=far)
 
  • Like
Reactions: bee

    bee

    Points: 2
    Helpful Answer Positive Rating
programing code for sine8_led

Dear friend/Adviser haydaa,

I need your helps if you may. I am new learner of DSKC6713 and I am using Ralph's book as well to follow the examples. However, I am stuck on the very first one similar to yours. I can't seem to copy c6713dskinit.c to the right location and everytime I do it go straight under the documents. Also, I suppected that the file c6713dskinit.c also being corrupted. Is there any where I can get this file?

Many thanks in advance for you great help.

Best Regards,
Vince
 

dsk6713_aic23.h

Please add related error messages.
 

Re: "sine8_led.c", fatal errr: could't open sorce

Dear friend haydaa,

I need your helps if you may. I am new learner of DSKC6713 and I am using Ralph's book as well to follow the examples. However, I am stuck on the very first one similar to yours. I can't seem to copy c6713dskinit.c to the right location and everytime I do it go straight under the documents.I am getting this error
"sine8_LED.c", line 3 : fatal error : could not open source "dsk6713_aic23.h"
please help me
 

Those files come as part of the Board Support Library (BSL) that was shipped on the CD along with the DSK. You need to go to Build Options -> Compiler -> Preprocessor and add the path of that include directory to your search path.
 
  • Like
Reactions: bee

    bee

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top