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.

I am getting this error........

Hi,

so far i gone through some of the examples of eZdspf28335 DSC.Buy when I am creating a new programe to generate EPWm wave forms, I am getting some errors.

( I added files directly from examples)

<red>"Example_2833xEpwm1DeadBand.c", line 21: fatal error: could not open source file "DSP2833x_Device.h"
1 fatal error detected in the compilation of "Example_2833xEpwm1DeadBand.c".
Compilation terminated.

>> Compilation failure

Compile Complete,
  1 Errors, 0 Warnings, 0 Remarks.
</red>

 

how to write a new program using this F28335,and when i am writing can i included alredy written C code files from the examples? please give me the answer.and is it enough to write programes by studying all peripheral refernce guides?

and give me some details how to approch to write coding what are the other important documents needed to study(other than peripheral's reference guides)..

Thanks & Regards,

Naveen Rangu

 

  • One way to get familiar with this setup is to use the example projects which come with header files. You can start with any one of those example projects as provided and run the code to see whether everything work as described or not. Once you are familiar with the setup then you can start changing the existing files to implement few of uor own features. For example, if you are using PWM example then try to change the PWM frequency, interrupt functions etc. The next step will be to combine two example projects. For example you can pick the PWM & ADC project and have PWM frequency dependent on an ADC input - basically you will vary the PWW frequency by varying an input DC voltage. Most of these if not all, projects are written in "C" and therefore any "C" experience will help.

    Basically, like any other new setup, you will have to go through the learning process to get familiar with C2000 platform. But fortunately there are many examples available for you to download from TI site. Finally, it will be beneficial if you can attend any TI training (online or live) on C2000 platform. Good luck.

  • Thank u Arefeen Mohanned,

    right now i am doing what u have said in u r mail.I am not getting  any  errors when i am doing some modifications in the already downloaded examples.But main issue is when i want to write the same by creating a new  project in the same example folders but i am facing the above error.You did not answered  me for  that error.what might be the error ? with that i am not moving forward,and finally please tel me the details of the online training on C2000 platform.is there anyway that i can learn on my own


    Thanks & Regards,

    Naveen Rangu

  • You can create a new project using the format of an example project or just convert an example project to your application project. Please contact TI hotline for the latest information on training material.

  • Naveen Rangu said:

    I am not getting  any  errors when i am doing some modifications in the already downloaded examples.But main issue is when i want to write the same by creating a new  project in the same example folders but i am facing the above error.You did not answered  me for  that error.what might be the error ? with that i am not moving forward,and finally please tel me the details of the online training on C2000 platform.is there anyway that i can learn on my own

    It appears that you have not specified to the compiler where the DSP2833x_Device.h file is located.  It is found in the ..\..\DSP2833x_headers\include directory, which is relative to the epwm_deadband project you are using.  If you look at the Example_2833xEPwm_DeadBand.pjt file with a text editor, you will see the compiler options -i"" which indicate an include path to the compiler.

    This functionality is not specific to the C2000 compiler.  It wouldn't be a stretch to say that all compilers have this functionality.

    The error code itself should give a decent clue as to what is going on.  It mentioned it can not find a file.  So therefore, we need to give it a "map" to find the file.