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.

fatal error could not open source file

I've been following Chassaing's book to learn how to program DSK 6713, but I`ve been having problems so far because everytime I try to create my own project, writing the .c file using notepad and then adding the necessary support files, which are c6713dskinit.c, vectors_intr.asm, rts6700.lib,dsk6713.lib,csl6713.lib, c6713dsk.cmd, I get the following error:

"ejemplo.c", line1:fatal error:could not open source file "dsk6713_aic23.h"

this happens even after I have carefully done all the steps on pages 11 and 12, and used project, scan all file dependencies to make sure the .h files appear. They are shown in CCS interface but if I double click on any of them the program says that the files is not found. Even after I manually add them I get the error. This is the code I have been trying to implement:

#include "dsk6713_aic23.h"
Uint32 fs= DSK6713_AIC23_FREQ_8KHZ;
#define DSK6713_AIC23_INPUT_MIC 0x0015
#define DSK6713_AIC23_INPUT_LINE 0X0011
Uint16 inputsource=DSK6713_AIC23_INPUT_MIC;
#define LOOPLENGTH 8
short loopindex =0;
short gain=10;
short sine_table[LOOPLENGTH]={0,707,1000,707,0,-707,-1000,-707};

void main()
{
comm_poll();
DSK6713_LED_init();
DSK6713_DIP_init();
while(1)
{
if (DSK6713_DIP_get(0)==0)
{
DSK6713_LED_on();
output_left_sample(sine_table[loopindex++]*gain);
if (loopindex>=LOOPLENGTH) loopindex=0;
}
else DSK6713_LED_off(0);
}
}

  • Have you tried using Windows' search feature to find the file?  The header file "dsk6713_aic23.h" should be located in the folder DSK6713\c6000\dsk6713\include which was created somewhere when you installed the software (look in C: and C:\Program Files).  If not, get a copy from the CD-ROM or Spectrum Digital's Web site (which has it as DSK6713.ZIP).  You should include that folder in your compiler's "include search path", compiler -i option; although you could also just copy the header to your project folder, that becomes burdensome as you start using more of the BSL and CSL headers.

  • Well, thanks for the suggestions but I happened to solve the problem last week, it was all my fault. Maybe for someone gets the same error message the following information might come in handy: it is absolutely necessary to go to build options and select correctly the path to the libraries wich are going to be used in the project, as well as some other linker options. After I did this the message was no longer shown.