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.
I'm using CCS 4. I am in the process of porting a CCS 3.3 project over. I need to include the chip support libraries, and am having trouble doing so. I have downloaded and installed them from TI's website. I have updated the compiler "include options" to include the path with the new path for the CSL include. I also added the .lib file to the linker options.
The CSL header files now show up in my project's include folder, as well as the compiler options screen. But when I build the project, the compiler does not look in the specified directory, and I end up with errors that it can't find the specified header files.
I have tried cleaning the workspace, that didn't help.
IDE is CCS 4.0.1.01001
Code generation tools 4.3.2
DSP/BIOS 5.40.02.22
I was trying to say that I have done that, and applied the changes. Then if you click on the "C5500 Compiler" icon you can view the updated options. The updated include path appears there.
However, when I build the project, I can read in the console that the desired reference path is missing, and the compiler produces errors that it cannot find the header files.
-Becky
Can you post your complete compiler build command as it appears on the build console window, as well as the error reported by the compiler?
Here is what the above says: -v5510A -g --define="_DEBUG" --define="CHIP_5510PG_2" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c5500/include" --include_path="C:/Program Files/C55xxCSL/include" --include_path="H:/SRC - Phase 2 - Production/TMS320V5510A/Source" --include_path="../waveforms/wf001" --quiet --diag_warning=225 --sat_reassoc=off --large_memory_model --ptrdiff_size=32 --fp_reassoc=off --memory_model=large --asm_source=mnemonic &(GEN_OPTS_QUOTED)
EDIT: Sorry, I accidentally circled the wrong path in that above screenshot. I should have circled the next include path.It's the C55xxCSL/include path that is not correctly being referenced. Here is a shot of the error in the console while I build:
The desired Chip support library path does not appear in the include list.
-Becky
Backy,
That is very odd that the CSL include path is getting removed.
I just tested converting a CSL example from CCS 3.3 to 4 and I did not run into this issue. I added my include path similar to what you have and it builds fine. I am using 4.0.2 though while I see you are using 4.0.1. It might be worth updating to 4.0.2.
You could also email your project to TI support or attach it to your Profile and I could take a look at it and try it out with 4.0.2 to see if I can reproduce the error.
Company policy may make it difficult for me to release this code to TI. I will have to check some rules before doing that.
The system I am running CCS v.4.0.1 on is not internet-connected, but I can move files to it manually. However, without the internet connection, CCS cannot do automatic updates. How do I update to 4.0.2?
Thanks,
Becky
You can download a full install of 4.0.2 from a separate machine and bring it over to this machine. Then uninstall v4.0.1 and install v4.0.2.
http://tiexpressdsp.com/index.php/Download_CCS
I have inspected the problem further and it gets better..... The CSL library sometimes gets correctly include, but usually gets included as --include_path="/include"
Here is an example from the console. The first and third files have the CSL file getting included as "/include" and the one in the middle has the correct format for the include:
'Building file: ../waveforms/wf003/wf003_format.c'
'Invoking: C5500 Compiler'
"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c5500/bin/cl55" -v5510A -g --define="_DEBUG" --define="CHIP_5510PG2_2" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c5500/include" --include_path="H:/SRC - Phase 2 - Production/TMS320VC5510A/Source/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_40_02_22/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_40_02_22/packages/ti/rtdx/include/c5500" --include_path="/packages/ti/xdais" --include_path="/include" --include_path="H:/SRC - Phase 2 - Production/TMS320VC5510A/Source" --include_path="../waveforms/wf003" --quiet --diag_warning=225 --sat_reassoc=off --large_memory_model --ptrdiff_size=32 --fp_reassoc=off --memory_model=large --asm_source=mnemonic --preproc_with_compile --preproc_dependency="waveforms/wf003/wf003_format.pp" --obj_directory="waveforms/wf003" "../waveforms/wf003/wf003_format.c"
'Finished building: ../waveforms/wf003/wf003_format.c'
' '
'Building file: ../waveforms/wf001/wf001.c'
'Invoking: C5500 Compiler'
"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c5500/bin/cl55" -v5510A -g --define="_DEBUG" --define="CHIP_5510PG2_2" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c5500/include" --include_path="H:/SRC - Phase 2 - Production/TMS320VC5510A/Source/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_40_02_22/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_40_02_22/packages/ti/rtdx/include/c5500" --include_path="/packages/ti/xdais" --include_path="H:/SRC - Phase 2 - Production/TMS320VC5510A/Source" --include_path="../waveforms/wf001" --include_path="C:/Program Files/C55xxCSL/include" --quiet --diag_warning=225 --sat_reassoc=off --large_memory_model --ptrdiff_size=32 --fp_reassoc=off --memory_model=large --asm_source=mnemonic --preproc_with_compile --preproc_dependency="waveforms/wf001/wf001.pp" --obj_directory="waveforms/wf001" "../waveforms/wf001/wf001.c"
"../waveforms/wf001/wf001.c", line 107: warning: function declared implicitly
"../waveforms/wf001/wf001.c", line 172: warning: function declared implicitly
"../waveforms/wf001/wf001.c", line 216: warning: function declared implicitly
'Finished building: ../waveforms/wf001/wf001.c'
' '
'Building file: ../utils/atoi_hex.c'
'Invoking: C5500 Compiler'
"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c5500/bin/cl55" -v5510A -g --define="_DEBUG" --define="CHIP_5510PG2_2" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c5500/include" --include_path="H:/SRC - Phase 2 - Production/TMS320VC5510A/Source/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_40_02_22/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_40_02_22/packages/ti/rtdx/include/c5500" --include_path="/packages/ti/xdais" --include_path="/include" --include_path="H:/SRC - Phase 2 - Production/TMS320VC5510A/Source" --include_path="../utils" --quiet --diag_warning=225 --sat_reassoc=off --large_memory_model --ptrdiff_size=32 --fp_reassoc=off --memory_model=large --asm_source=mnemonic --preproc_with_compile --preproc_dependency="utils/atoi_hex.pp" --obj_directory="utils" "../utils/atoi_hex.c"
'Finished building: ../utils/atoi_hex.c'
We read the makefiles associated with each directory. The makefiles reflect the same thing as the results from the console. There is one directory where the includes were generated properly in it's makefile. The other directories have makefiles where the includes were improperly generated.
-Becky
Since the options being passed to some source files appear to be different than others, could you highlight the specific source files, right-click and go to Properties->C/C++ Build->Include Options, and compare the include paths for each source file. I'm wondering if the file specific option is different than the project level option for certain source files thereby causing it to not find certain header files.
Just saw that I never updated on this problem.
Our solution was to re-make the project from scratch instead of importing it through the ccs 3.3 conversion wizard. All the include options worked great and would update once we stopped trying to import the project through the wizard.