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.

Error while compilation

Dear TI team,

I am using Zeiss DM6446-wifi Evaluation Module with CCS v5.3. The projects for the same processor is available from Spectrum Digital Website. I have downloaded the projects,they are built using CCS v3.3.I am trying to import the project in CCSv5.3. The project gets imported succesfully. Screenshot is as follows

                                            

If I try to load .out file for this project, it works fine, But if I Rebuild the project, it shows compilation failure.

The errors are

The console displays


**** Build of configuration Debug for project video_loopback ****

"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all
'Building file: ../main.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv5/tools/compiler/arm_5.0.1/bin/armcl" -mv5e --code_state=32 --abi=ti_arm9_abi -me -O1 -g --include_path="C:/ti/ccsv5/tools/compiler/arm_5.0.1/include" --include_path="C:/ti/xdais_7_21_01_07/packages/ti/xdais" --include_path=".." --include_path="C:/Users/saraswati/Desktop/BIG_DATA/DM6446_DATA/dm6446/davincievm/davincievm/include" --include_path="C:/Users/saraswati/Desktop/BIG_DATA/DM6446_DATA/dm6446/davincievm/davincievm/csl/arm/inc" --define="_DEBUG" --define="ARM_SIDE" --define=dm6446 --quiet --display_error_number --preproc_with_compile --preproc_dependency="main.pp" "../main.c"
"../main.c", line 38: warning #1119-D: this assembly directive potentially unsafe inside a function
"../main.c", line 62: warning #1119-D: this assembly directive potentially unsafe inside a function
'Finished building: ../main.c'
' '
'Building file: ../video_test.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv5/tools/compiler/arm_5.0.1/bin/armcl" -mv5e --code_state=32 --abi=ti_arm9_abi -me -O1 -g --include_path="C:/ti/ccsv5/tools/compiler/arm_5.0.1/include" --include_path="C:/ti/xdais_7_21_01_07/packages/ti/xdais" --include_path=".." --include_path="C:/Users/saraswati/Desktop/BIG_DATA/DM6446_DATA/dm6446/davincievm/davincievm/include" --include_path="C:/Users/saraswati/Desktop/BIG_DATA/DM6446_DATA/dm6446/davincievm/davincievm/csl/arm/inc" --define="_DEBUG" --define="ARM_SIDE" --define=dm6446 --quiet --display_error_number --preproc_with_compile --preproc_dependency="video_test.pp" "../video_test.c"
'Finished building: ../video_test.c'
' '
'Building target: video_loopback.out'
'Invoking: ARM Linker'
"C:/ti/ccsv5/tools/compiler/arm_5.0.1/bin/armcl" -mv5e --code_state=32 --abi=ti_arm9_abi -me -O1 -g --define="_DEBUG" --define="ARM_SIDE" --define=dm6446 --quiet --display_error_number -z --stack_size=0x800 -m"video_loopback.map" --heap_size=0x800 -i"C:/ti/ccsv5/tools/compiler/arm_5.0.1/lib" -i"C:/ti/ccsv5/tools/compiler/arm_5.0.1/include" -i"C:/Users/saraswati/Desktop/DM644x/video_loopback" -i"C:/Users/saraswati/Desktop/BIG_DATA/DM6446_DATA/dm6446/davincievm/davincievm/examples/video_loopback" --reread_libs --warn_sections --display_error_number --rom_model -o "video_loopback.out" "./video_test.obj" "./main.obj" -l"rts32e.lib" "../video.cmd"
error #10008-D: cannot find file "..\..\csl\arm\lib\Debug\csl_davinciArm9.lib"
error #10008-D: cannot find file "..\..\lib\davincievmbsl.lib"

undefined first referenced
symbol in file
--------- ----------------
_DAVINCIEVM_I2C_read ./video_test.obj
_DAVINCIEVM_I2C_write ./video_test.obj
_DAVINCIEVM_init ./main.obj
_DAVINCIEVM_waitusec ./video_test.obj

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "video_loopback.out" not
built
gmake: *** [video_loopback.out] Error 1
gmake: Target `all' not remade because of errors.

>> Compilation failure

**** Build Finished ****

NOW,as per my understanding even if I sppecify both the library paths in the project properties it shows error.

kindly suggest.

Thank you

  • I am not familiar enough with this example project from Spectrum Digital to comment with certainty on whether it will compile successfully with CCS 5.3 or not, but simply looking at the error I can tell that it is unable to find csl_davinciArm9.lib and davincievmbsl.lib. I suspect the paths to these are specified in the linker command file video.cmd. If so, comment out those lines in the .cmd file and add the libraries directly under Project Properties->Build->Linker->File Search Path. Make sure to either add the library along with the entire path under --lbrary option or add just the library name under --library option and the path to it under --search_path option. Hope this helps!