• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » C6000 Single Core DSP » C67x Single Core DSP Forum » fatal error could not open source file
Share
C6000 Single Core DSP
  • Forums
  • Announcements
Options
  • Subscribe via RSS

fatal error could not open source file

fatal error could not open source file

This question is answered
Carlos Palma
Posted by Carlos Palma
on Jun 05 2012 12:30 PM
Prodigy110 points

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);
}
}

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Douglas Gwyn
    Posted by Douglas Gwyn
    on Jun 10 2012 17:31 PM
    Verified Answer
    Verified by RandyP
    Expert2060 points

    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.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Carlos Palma
    Posted by Carlos Palma
    on Jun 10 2012 20:27 PM
    Verified Answer
    Verified by RandyP
    Prodigy110 points

    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.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use