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.

Live Image processing with CCS

Hai all,

             I am using ccsv4 with c64x+imglib.I followed  the stepsgiven by getting started guide come along with the ti's imglib.

i have done the following,

1.i installed ccs on C:/Pro...files/Texas inst../ccsv4/.........

2.i installed img lib on C:/ti/....

3.then i hav created new ccs project and then add two source files and copied the one of the example program from C:/ti?C6400/Example/img_bound..

then i add the header file and copy the related header file from C:ti/C6400/include

4.when i created the new ccs project  i add rts6400.lib(C:/prog................./tools/compiler/lib/rts6400.lib) in the run time support library tab,link.cmd file in the linker command tab(link.cmd-i created this file with the following command(-lrts6400.lib,-limglib64x.lib)and saved in my desktop)

5.Then i set the target config to c64x+.....,little endian.

6.After that i build the project which gives the error

**** Build of configuration Debug for project conval ****

C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake -k all

'Building file: ../img_conv_3x3_c.c'

'Invoking: Compiler'

"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv64+ -g --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="img_conv_3x3_c.pp" "../img_conv_3x3_c.c"

'Finished building: ../img_conv_3x3_c.c'

' '

'Building file: ../img_conv_3x3_d.c'

'Invoking: Compiler'

"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv64+ -g --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="img_conv_3x3_d.pp" "../img_conv_3x3_d.c"

'Finished building: ../img_conv_3x3_d.c'

' '

'Building target: conval.out'

'Invoking: Linker'

"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv64+ -g --diag_warning=225 --abi=coffabi -z -m"conval.map" --warn_sections -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/lib" -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --reread_libs --rom_model -o "conval.out" "./img_conv_3x3_d.obj" "./img_conv_3x3_c.obj" -l"rts64plus.lib" "C:/Users/ams/Desktop/link.cmd"

<Linking>

"C:\\Users\\ams\\AppData\\Local\\Temp\\059243", line 13: fatal error:

unrecognized file: "C:/Users/ams/Desktop/link.cmd"

>> Compilation failure

gmake: *** [conval.out] Error 1

gmake: Target `all' not remade because of errors.

Build complete for project conval

7.Then i delete the link.cmd,debug  from the project and link the two file (rts6400.lib,img64x+.lib)using link file to project command ,and build the project again.

it give me the following error(here i changed the project name too)

**** Build of configuration Debug for project mypro ****

C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake -k all

'Building file: ../img_conv_3x3_c.c'

'Invoking: Compiler'

"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv64+ -g --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="img_conv_3x3_c.pp" "../img_conv_3x3_c.c"

'Finished building: ../img_conv_3x3_c.c'

' '

'Building file: ../img_conv_3x3_d.c'

'Invoking: Compiler'

"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv64+ -g --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="img_conv_3x3_d.pp" "../img_conv_3x3_d.c"

'Finished building: ../img_conv_3x3_d.c'

' '

'Building target: mypro.out'

'Invoking: Linker'

"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv64+ -g --diag_warning=225 --abi=coffabi -z -m"mypro.map" --warn_sections -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/lib" -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --reread_libs --rom_model -o "mypro.out" "./img_conv_3x3_d.obj" "./img_conv_3x3_c.obj" -l"rts6400.lib" "C:/ti/C6400/imglib/lib/img64x.lib" "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/lib/rts6400.lib"

<Linking>

warning: creating ".stack" section with default size of 0x400; use the -stack

option to change the default size

warning: creating ".sysmem" section with default size of 0x400; use the -heap

option to change the default size

undefined first referenced

symbol in file

--------- ----------------

_mem_compare ./img_conv_3x3_d.obj

error: unresolved symbols remain

error: errors encountered during linking; "mypro.out" not built

>> Compilation failure

gmake: *** [mypro.out] Error 1

gmake: Target `all' not remade because of errors.

Build complete for project mypro

 Please give the solution to solve this problem.

thanks in advance.

Nathiya.A

  • Hello Nathiya.A,

    It appears that this post has been accidently posted on Stellaris E2E forum. I am moving it to DSP C64x forum.

    Warm Regards,

    Ashish Ahuja

  • Nathiya.A,

    It is hard to tell exactly what you are doing and why, but the errors are all different.

    nathiya amose said:
    unrecognized file: "C:/Users/ams/Desktop/link.cmd"

    This seems pretty clear. That file at that path does not exist. Where did you place the linter command file?

    nathiya amose said:

    warning: creating ".stack" section with default size of 0x400; use the -stack

    option to change the default size

    warning: creating ".sysmem" section with default size of 0x400; use the -heap

    option to change the default size

     

    undefined first referenced

    symbol in file

    --------- ----------------

    _mem_compare ./img_conv_3x3_d.obj

    In this case, you do not have a linker command file, so defaults are being used.

    For now, my recommendation is to try to get one of the existing examples running. Try the CCSv4 Import Legacy feature to copy as much as possible from the CCS 3.3 example and build that.

    One thing that is a bit confusing is the mixture of C6400 libraries and C64x+ (or 64xplus, etc.). The C6400 ones should work with the C64x+, but if the example project is designed for C6400 (no +), then try just getting it to build for the C6400, like the C6416. If you can build it and get all references resolved, then you can make smaller steps to get to where you want to be.

    Regards,
    RandyP