Hi,
I am using CCS v6.2 with a Tiva C MCU and the Tivaware driver library, by linking with "driverlib.lib". I often want to jump to the ".c" source file of various driverlib functions, and I found no way to make this happen, even though I have the sources of that library which TI supplies.
For my own functions, pressing F3 (Open Declaration) once jumps to the .h file and a second F3 jumps to the definition, i.e. to the .c file. However, with the library functions, jumping to the .h files works but jumping again to the .c files does not work. This makes sense, since the indexer is not aware of those files. This is what I want to change.
I already tried the following methods, without success:
- adding the driverlib as a project in CCS and making sure it is open.
- adding the above project as a dependency to my own project, by Project --> Properties --> Project References --> adding a check-mark near "driverlib".
- Windows --> Preferences --> C/C++ --> Indexer --> Index source files not included in the build.
- rebuilding the index for both my project and the driverlib project.
The only thing that DOES work, but I don't want to do, is actually adding the various library ".c" files to the project by adding them as linked sources. However, this causes them to actually compile, and I don't want that - there's no reason for their binaries to end up in the flash memory of my MCU as the library binary is already linked and loaded there! It doesn't sound right, to actually change the end result of the build process just to make the IDE more helpful when I code...
p.s. this leads me to another thing I tried - linking library source files in the project but excluding them from the build. I briefly thought I succeeded but the indexer probably just noted the file before I managed to excluded it. once I excluded it and rebuilt the index, it no longer works.
I think this must be a rather common situation, both for CCS even for Eclipse users in general, so I expect there is SOME way to do that... anyone?
thanks,
Guy.