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.

TMS320F2812 in CCS V5.3 throws a fatal error #5 could not open source file

Hi,

I am new to TMS320F2812 eZDSP.

To start with i tried to do the LED blink program.

It has the header saying - " #include "DSP281x_Device.h"     // DSP281x Headerfile Include File "

I copied the source file for the same to my project.

But during the build of the program, i get an error saying #5 Could not open source file "DSP281x_Device.h".

there are 2 errors, one pointing to the main.c file, and the other to the source file i have copied.

Please find attached the zip file of my project.

Please help me to resolve the error.

Thank you

Regards,

Vaishnav

/cfs-file/__key/communityserver-discussions-components-files/171/LED.zip

  • Hi Vaishnav,

    Is this the example project from TI? If not download it from here: http://www.ti.com/tool/sprc097

    Regards,
    Gautam
  • Hi Gautam,

    Thanks a lot for the reply. The project is not an example from TI.
    I successfully installed the setup file for headers that was present in the link.
    The setup created a folder named ticds and installed everything there. Whereas my ccs is installed in a separate folder named ti in the same disk drive.
    So, what should be my path of installation of the header setup file??
    I tried copying the header file to my project, but the error comes up at a different line which has "#include "DSP281x_SysCtrl" "written.

    Whereas the example projects when imported to the workspace are working fine without any errors.

    Thank you
    Regards,
    Vaishnav

  • Directly import the project to your workspace. Don't copy any individual files.
  • Hi Gautam,

    Thanks a lot for your reply. Yes!
    It worked. Now i am able to build the project successfully without any errors.
    Now am facing difficulty in debugging it. I am using the XDS510USB Plus Emulator by Spectrum Digital.
    All the resources i referred to said that the drivers for the Emulator was integrated in CCS v5.3. But while debugging, CCS throws an error.
    In the device manager of my laptop, it is being recognized as XDS510USB, but says that the device driver was not found.
    Could you please help me with this?

    Thanks & Regards,
    Vaishnav
  • While installing CCS did you tick on the Spectrum digital drivers? If not, please re-install CCS by including these drivers.
  • Hi Gautam,

    Thanks a lot for your reply.

    Yes i have checked the spectrum digital drivers field while installing CCS. Please find attached the images of build settings domain of my project, the error encountered while debugging the project and the device manager dialogue box.

    I am using a windows 7 laptop! Read few other posts in the forum that this might be causing the problem. I tried disabling my firewall and anti-virus, Run CCS in the administrator mode, also checked the compatibility for windows XP SP3 field in properties.

    But no improvements.

    Could you please help me resolve the issue?


    Thanks & Regards,

    Vaishnav

  • Hi Gautam :)

    Looks like its working fine now!!

    The JTAG Emulator is being recognized by my system!

    I manually run the application file of the driver that was installed by CCS in this location: C:\Program Files\SpectrumDigital\Emulation\Drivers\amd64

    This link helped me in finding the solution -

    I shall post here if any other problems!

    Thanks a lot for your time :)

    Regards,

    Vaishnav

  • Perfect!

    Goodluck & Regards,
    Gautam