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.

TMS320F28379D: Copy project and Change workplace: cannot open source file "F2837xD_device.h"

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

Dear TI team,

When I copied and pasted an original project from the TI example library, and compile the new project: There are always errors with linking files. I guess that they can not link to their source files.

So my method is I export the project, so I am able to copy all the linking files and import the project again. And this method looks Okay.

However, now, I want to make a new workspace so that different computers can access this workspace (at home I use my Laptop, but at my office, I want to use a different workstation to work with CCS).

However, when I debug the project at a new workspace, there is always an error like: cannot open source file "F2837xD_device.h". I have tried to re-define the include path like in the below figure but It does not work.

My questions are:

(1) Could you please tell me if my above method for copying and pasting a new project is correct?

(2) Why when I change my workplace, the compiler does not work and debugging always has problems. What should I change so that I can use different computers for the same CCS project?

Thanks and regards,

  • I include the picture again as it looks invisible in the above post. Thanks.

  • VAN NGUYEN said:
    So my method is I export the project, so I am able to copy all the linking files and import the project again. And this method looks Okay.

    Yes, exporting the project is the best way to go.

    VAN NGUYEN said:
    However, now, I want to make a new workspace so that different computers can access this workspace (at home I use my Laptop, but at my office, I want to use a different workstation to work with CCS).

    I guess I don't understand what you are trying to achieve. If you replicate a workspace with one project you will have two copies of the same project. Changes you make to one project will not be reflected in the other. If you want to have independent copies of each project, you can just export the project from one workspace and import it to the other workspace. But I don't know how this serves you.

  • Hi Gus,

    Thank you very much for your answer. I have a problem when copy and paste a project on the CCS. Hope that you can help me.

    I right-click on an original project on CCS and select Copy and Paste on CCS. However, when I debug the new project there are always errors of "Cannot open source file F2837xD_device.h" as below.

    gmake: *** [F2837xD_PieVect.obj] Error 1
    "C:/ti/c2000/C2000Ware_3_03_00_00/device_support/f2837xd/common/source/F2837xD_SysCtrl.c", line 50: fatal error #1965: cannot open source file "F2837xD_device.h"

    "C:/ti/c2000/C2000Ware_3_03_00_00/device_support/f2837xd/examples/cpu1/epwm_deadband/cpu01/epwm_deadband_cpu01.c", line 77: fatal error #1965: cannot open source file "F28x_Project.h"

    gmake: *** [epwm_deadband_cpu01.obj] Error 1
    gmake: Target 'all' not remade because of errors.

    Could you please tell me what I should do? Thank you for your help.

  • Van,

    I am unable to reproduce your problem. Here is what I tried:

    1. Opened a CCS workspace which had multiple C2000ware projects already in it.

    2. Verified two projects built successfully.

    3. Right-clicked on Project Explorer window within CCS, selected each project, copied then pasted. This created a copy of each project.

    4. Re-built the copies of the projects and everything built fine, no errors.

    Can you list the steps you are following when you see the issue?

  • Hi Gus,

    Thank you for your answer. Yes, I did the same process with you. However, there is always an error "Cannot open source file F2837xD_device.h". The example I tried to copy and paste located at: C:\ti\c2000\C2000Ware_3_03_00_00\device_support\f2837xd\examples\cpu1\epwm_deadband

    Where is the location of the F2837xD_device file that the error mentions? Is there any specific requirement for the pathname to save the new project? I have tried different pathnames but that error always exists.

    Thank you a lot!

  • Hi Van,

    VAN NGUYEN said:
    Where is the location of the F2837xD_device file that the error mentions?

    It is located here: C:\ti\c2000\C2000Ware_3_03_00_00\device_support\f2837xd\headers\include

    VAN NGUYEN said:
    Is there any specific requirement for the pathname to save the new project? I have tried different pathnames but that error always exists.

    I'd recommend exporting a project and re-importing the project (do not copy-paste) when moving projects from workspace to workspace. Do you have c2000ware installed on your 2nd machine? If not, you'll have to install it there too.

  • Hello,

    I rectified my problem. 

    When I import projects into workspace, I need to select "Copy projects into workspace".

    If I do this, I can copy and paste projects with error-free.

    Thanks.