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.

CCS/TMS320C5535: Compilation Error could not find source file

Part Number: TMS320C5535

Tool/software: Code Composer Studio

hello When I am working on code composer studio I am getting error as below


/home/user/ti/ccsv6/utils/bin/gmake -k codec_aic3254.obj
Building file: /home/user/ti/c55_lp/c55_csl_3.07/demos/TIesr/c5535/TIesr_C55_demo/build/TIesrDemoC55.tcf
Invoking: TConf
"/home/user/ti/bios_5_42_00_07/xdctools/tconf" -b -Dconfig.importPath="/home/user/ti/bios_5_42_00_07/packages;" "/home/user/ti/c55_lp/c55_csl_3.07/demos/TIesr/c5535/TIesr_C55_demo/build/TIesrDemoC55.tcf"
Finished building: /home/user/ti/c55_lp/c55_csl_3.07/demos/TIesr/c5535/TIesr_C55_demo/build/TIesrDemoC55.tcf
 
Building file: /home/user/ti/c55_lp/c55_csl_3.07/demos/TIesr/c5535/TIesr_C55_demo/src/codec_aic3254.c
Invoking: C5500 Compiler
"/home/user/ti/ccsv6/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=huge -g --include_path="/home/user/ti/ccsv6/tools/compiler/c5500_4.4.1/include" --include_path="/home/user/ti/c55_lp/c55_csl_3.07/demos/TIesr/c5535/TIesr_C55_demo/build/ccsv5" --include_path="/home/user/ti/c55_lp/c55_csl_3.07/demos/TIesr/c5535/TIesr_C55_demo/TIesrEngineC55/ccsv5" --include_path="/home/user/ti/c55_lp/c55_csl_3.07/demos/TIesr/c5535/TIesr_C55_demo/build/ccsv5/Debug" --include_path="/home/user/ti/bios_5_42_00_07/packages/ti/bios/include" --include_path="/home/user/ti/bios_5_42_00_07/packages/ti/rtdx/include/c5500" --include_path="/home/user/ti/c55_lp/c55_csl_3.07/inc" --include_path="/home/user/ti/c55_lp/c55_csl_3.07/demos/TIesr/c5535/TIesr_C55_demo/inc" --include_path="/home/user/ti/c55_lp/c55_csl_3.07/demos/TIesr/c5535/TIesr_C55_demo/C55/TIesrEngine/src" --preinclude="/home/user/trial/BF_rt_bios/codec_pcm186x.h" --preinclude="/home/user/ti/c55_lp/c55_csl_3.07/demos/TIesr/c5535/TIesr_C55_demo/src/codec_aic3254.c" --define=c5515 --define=C55x --define=PF_C5535_EZDSP --undefine=PF_C5515_EVM --display_error_number --diag_warning=225 --gen_func_subsections=on --ptrdiff_size=32 --algebraic --preproc_with_compile --preproc_dependency="codec_aic3254.d"  "/home/user/ti/c55_lp/c55_csl_3.07/demos/TIesr/c5535/TIesr_C55_demo/src/codec_aic3254.c"

>> Compilation failure
subdir_rules.mk:42: recipe for target 'codec_aic3254.obj' failed
"/home/user/ti/c55_lp/c55_csl_3.07/demos/TIesr/c5535/TIesr_C55_demo/src/codec_aic3254.c",

line 54: fatal error #5: could not open source file "codec_pcm186x.h"
1 fatal error detected in the compilation of "/home/user/ti/c55_lp/c55_csl_3.07/demos/TIesr/c5535/TIesr_C55_demo/src/codec_aic3254.c".
Compilation terminated.
gmake: *** [codec_aic3254.obj] Error 1

**** Build Finished ****

I added path in include options and I also see that .h file is in correct path I cannot understand Why it is not able to find .h file exactly

Can anyone help to reduce this error

Thanks in advance

Thanks and Regards

K.T.R.Sarath Chandra

  • Hello
    Can Anyone help to this issue immediately
    Thanks and Regards
    K.T.R. Sarath
  • Hi,

    Looking at the directory structure, I see you work on a linux machine.

    By the look at the bellow lines of your log:
    /home/user/ti/c55_lp/c55_csl_3.07/demos/TIesr/c5535/TIesr_C55_demo/src/codec_aic3254.c",

    line 54: fatal error #5: could not open source file "codec_pcm186x.h"

    I'd suggest you start by checking the permissions of the c55_lp directory and all other subdirectories & files... make sure they are accessible for all users and do not require root access (use chown command).

    Best Regards,
    Yordan
  • Hi
    Thanks for the reply,
    I gave all permissions to that file still that is not working properly sir properly..

    Thanks and regards
    sarath
  • Hi Sarath,

    I've notified the sw team. They will post their feedback directly here.

    Best Regards,
    Yordan
  • ktr,

    In your CCS project properties, do you see any broken paths?

    Lali

  • Hello Lalindra Jayatilleke,

    Thanks for your Reply.
    when it is not working I have reinstalled ccs on my stem then I have getting different as below

    Building target: TIesrDemoC55.out
    Invoking: C5500 Linker
    "/home/user/ti/ccsv6/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=huge -g --define=c5515 --define=C55x --define=PF_C5535_EZDSP --undefine=PF_C5515_EVM --display_error_number --diag_warning=225 --gen_func_subsections=on --ptrdiff_size=32 --algebraic -z -m"TIesrDemoC55.map" --stack_size=0x200 --heap_size=0 -i"/home/user/ti/ccsv6/tools/compiler/c5500_4.4.1/lib" -i"/home/user/workspace_v6_2/cslVC5505/Debug" -i"/home/user/workspace_v6_2/TIesrEngineC55/Debug" -i"/home/user/ti/ccsv6/tools/compiler/c5500_4.4.1/include" -i"/home/user/ti/bios_5_42_00_07/packages/ti/rtdx/lib/c5500" -i"/home/user/ti/bios_5_42_00_07/packages/ti/bios/lib" -i"/home/user/ti/c55_lp/c55_csl_3.07/ccs_v6.x_examples/C55XXCSL_LP/Debug" -i"/home/user/ti/c55_lp/c55_csl_3.07/demos/TIesr/c5535/TIesr_C55_demo/TIesrEngineC55/ccsv5/Debug" --reread_libs --display_error_number --warn_sections --xml_link_info="TIesrDemoC55_linkInfo.xml" --rom_model --sys_stacksize=0x200 -o "TIesrDemoC55.out" "./TIesrDemoC55cfg.obj" "./TIesrDemoC55cfg_c.obj" "./audio_data_collection.obj" "./codec_aic3254.obj" "./gd_config.obj" "./gd_dim.obj" "./gd_gconst.obj" "./gd_hmm.obj" "./gd_mixture.obj" "./gd_mu.obj" "./gd_net.obj" "./gd_pdf.obj" "./gd_tran.obj" "./gd_var.obj" "./gd_word.obj" "./gpio_control.obj" "./lcd_osd.obj" "./pll_control.obj" "./recognizer.obj" "./sys_init.obj" "./user_interface.obj" "/home/user/ti/c55_lp/c55_csl_3.07/demos/TIesr/c5535/TIesr_C55_demo/build/C5515.cmd" -l"./TIesrDemoC55cfg.cmd" -l"/home/user/workspace_v6_2/cslVC5505/Debug/cslVC5505.lib" -l"/home/user/workspace_v6_2/TIesrEngineC55/Debug/TIesrEngineC55.lib" -l"/home/user/workspace_v6_2/cslVC5505/Debug/cslVC5505.lib" -lTIesrEngineC55.lib -l"/home/user/ti/ccsv6/tools/compiler/c5500_4.4.1/lib/libc.a"
    <Linking>
    fatal error #16004: file
    "/home/user/workspace_v6_2/cslVC5505/Debug/cslVC5505.lib<csl_dma.obj>" has a

    Tag_Memory_Model attribute value of "2" that is different than one
    >> Compilation failure
    makefile:167: recipe for target 'TIesrDemoC55.out' failed
    previously seen ("3"); combining incompatible files
    gmake: *** [TIesrDemoC55.out] Error 1
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****

    Thanks in advance Lali

    Thanks and Regards
    K.T.R.Sarath Chandra
  • ktr,

    This is to do with the memory model mismatch between C55XXCSL_LP and TIesrDemoC55. Memory Model needs to be huge for both.
    You can change it by:

    1) In the C55XXCSL_LP project, Navigate to Properties→Build→C5500 Compiler→Processor Options . Change Specify memory model to huge.
    2) Change Specify type size to hold results of pointer math to 32 if not specified in Properties→Build→C5500 Compiler→Advanced Options→Runtime Model Options.
    3) Uncheck use large memory model if checked.
    4) Rebuild C55XXCSL_LP
    5) Rebuild TIesrDemoC55

    Lali
  • Hello lali,
    Thanks for your reply
    I am doing recognize for YES nd NO words I am following the steps as it is exactly given by the ti.com
    In that ccs I have imported only things which is given by you
    1. atafa_bios_drv_lib
    2. cslVC5505
    3.TIesrDemoC55
    4.TIesrEngineC55
    In that cslvC5505 and TIesrDemoc55 i keep both memory models for indiduval projects to huge

    Even though I keep same memory model as it was given by you I am getting same error as below

    TIesrEngineC55.lib" -l"/home/user/ti/ccsv6/tools/compiler/c5500_4.4.1/lib/libc.a" -l"/home/user/workspace_v6_2/cslVC5505/Debug/cslVC5505.lib"
    <Linking>
    fatal error #16004: file
    "/home/user/workspace_v6_2/cslVC5505/Debug/cslVC5505.lib<csl_dma.obj>" has a

    >> Compilation failure
    makefile:164: recipe for target 'TIesrDemoC55.out' failed
    Tag_Memory_Model attribute value of "2" that is different than one
    previously seen ("3"); combining incompatible files
    gmake: *** [TIesrDemoC55.out] Error 1
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****

    I am not getting exactly what changes I need to do exactly

    Thanks and Regards
    k.t.r
  • ktr,
    Please grab the latest C55x CSL from software-dl.ti.com/.../index_FDS.html and try the TIesr demo at C:\ti\c55_lp\c55_csl_3.08\demos\TIesr\c5535.

    All you will need to build the demo is C:\ti\c55_lp\c55_csl_3.08\ccs_v6.x_examples\C55XXCSL_LP in the same workspace.
    Ensure you have HUGE memory set for both projects in the workspace.

    Do you have ptrdiff_size = 32 in the runtime model options in the project properties?

    Lali