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.
Hello everybody,
I am working on a particular project that required to make a heavy customization of the Chip Support Library for the c5517 DSP in CCS 5.5.
To keep track of all the modifications I reorganized the CSL in subfolders, each one dedicated to a single peripheral. Each dedicated subfolder contains my customised functions' .c file, the header and the register structure definition header relative to the specific peripheral (cslr_xxx.h)
All these subfolders are placed in a parent folder called "custom CSL" which is inside the project folder itself.
Example:
Project_folder/Custom CSL/Custom PLL/Custom_pll.c
Project_folder/Custom CSL/Custom PLL/Custom_pll.h
Project_folder/Custom CSL/Custom PLL/cslr_pll.h
I would like to add just the folder "Custom CSL" to the search paths of the linker and have all the subdirectories included as well. When I do, though, the build is not successful because the linker doesn't find the files contained in the subfolders.
Is there a workaround to this situation? It is very important for me to keep this folder/sub-folder structure. Including every single subfolder would definitely be a sub-optimal solution.
Thank you in advance for your help
Hi,
Vittorio Pascucci said:I manually add every subfolder path to the compiler include options
In one way or another, you will have to explicitly pass the complete paths to the compiler/linker. However, you can try a few things:
- Add each include subdirectory directly to the compiler/linker include options;
- Add just the master include subdirectory (./Custom CSL) to the compiler/linker options and change the #include directives to point to the subpaths of each include file (similar to what SYSBIOS does):
#include <Custom PLL/Custom_pll.c>
- Create a compiler command file (a plain text file) that contains all the include parameters and subdirectories. Something similar to what I mention in the post below:
http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/397710/1407607#1407607
Hope this helps,
Rafael