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.

CCS/TMS320F28379D: #Cannot open source file error

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

I am a new user in "CODE COMPOSER" application and I have to generate PWM and use ADC using TMS320F28379D processor. When I "build" the codes I wrote for my project, I encounter the e rror I mentioned in the visual. I would be grateful if anyone helps

  • Hi,

    F28x_project.h file is included in C2000ware install package.

    C:\ti\\C2000Ware_2_01_00_00\device_support\f2837xd\common\include

    You need to add the include path in the project setting

    C:\ti\C2000Ware_2_01_00_00\device_support\f2837xd\common\include

    C:\ti\C2000Ware_2_01_00_00\device_support\f2837xd\headers\include

  • Hello Santosh, i did what you said and i downloaded the C2000ware software and added F28x_Project.h commons and headers but i got new error with defining CPU1 or CPU2. I searched the forums about that but I can't find the CPU1_RAM etc. I reached to Processor Options, but Configuration didn't contain CPU1_RAM instead there was

    Debug {Active}

    Release

    {All configurations}

     

     


  • Hi,

    You need to define CPU1 in cpu1_project and CPU2 in the cpu2_project

  • Hi Oguz,

    It will be easier if you import one of the example project and (C:\ti\C2000Ware_2_01_00_00\device_support\f2837xd\examples\cpu1\blinky)

    and then build it. It should build successfully, and then you can compare the project settings.

  • Are you able to resolve the issue?

  • Sorry for my late replying Santosh, i couldn't spend time on CCS because of coronavirus preqautions. If we come to our main subject, I really don't know much about this importing or adding paths smh. But i imported an example from C2000Ware example blinky_cpu01. I compared everything with my empty main.c.The empty project which is mine, has no CPU1 or CPU2 named configuration only debug or release. When i ignored it and added the new predefined symbols named CPU1 the builded code gave errors about naming the codes. The screenshots that i add in below can give info about my knowledge problem about CCS and my troubles about can't filling the blanks on first step to final steps of your comments. I added header and common include paths also. Lots of thanks for spending your valuable time for my big problems but i hope it will take little time of yours :) I think our problem will be end soon.

  • When you imported the example (blinky_led), are you able to build for cpu1 and cpu2? If the imported example can build successfully, then you can compare the working and non-working projects. 

    Another way you can do is that you can import empty_project, rename it to whatever you want and then add your files.