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.

Code composer cannot open source file

Other Parts Discussed in Thread: TM4C129XNCZAD

I am new to the software (using code composer 6.1) and was trying to learn to make a new project, I planned to modify some of the code from the hibernate example once I got it working.

To start out I selected the board (TM4C129XNCZAD) and then copied the entire code from the hibernate.c example into the main.c of the new project and tried to build it (I have successfully used the hibernate example itself before). I got the error [cannot open source file "inc/hw_gpio.h" ].

After some looking I fixed this error by adding the ti\TivaWare_C_Series-2.0.1.11577 folder as a directory, but instead got the same error, but this time for frame.h.

I tried adding the frame.c (and all the other files in the drivers folder for the hibernate example) manually through the add files but that failed as well (lots of errors).

I'm really stuck here and don't know what I'm doing wrong.

  • If you imported and built the hibernate example from TivaWare as provided, you would have noticed that the project includes several source files other than hibernate.c. These files are all "linked", (ie) they physically reside within the TivaWare folder and are not "copied" over with the project when the project is imported. 

    If you want to have a copy of the entire project such that you can modify any source file or header file (and not just hibernate.c), then check this wiki page for some tips on how to do that.

    http://processors.wiki.ti.com/index.php/Creating_copy_of_example_project

    The content is a bit old (it refers to Stellarisware instead of TivaWare) and some of the project files may be different (for instance, .cdtbuild was for CCSv4) but should get you on the right track.