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.

need help! simple project by simulink embeded coder+ccsv5+TMS320C6748

Other Parts Discussed in Thread: OMAPL138

hi, i'm building a simple simulink model, the input is const 1(frame based),output is C6748 EVM from embeded coder block. I want to generate .out file  from matlab to ccsv5. however there are errors:

"### Creating standalone executable "../untitled.exe" ..."
C:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/bin/lcclnk64 -s -LC:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/lib64 -o ../untitled.exe @untitled.lnk rt_main.obj
untitled.obj .text: undefined reference to 'dacXmt'
untitled.obj .text: undefined reference to 'dacCodecInit'
gmake: *** [../untitled.exe] Error 2

~\Documents\MATLAB\untitled_grt_rtw>echo The make command returned an error of 2
The make command returned an error of 2

~\MATLAB\untitled_grt_rtw>An_error_occurred_during_the_call_to_make
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.

does anyone know how to modify this? thanks in advance!

  • Hi Yating,

    What kind of build tool are you using ?

    CCS or matlab ?

  • Hi yating gu,

    For simulation queries ( Matlab) , you have to post it into CCS forum.

    However as the error message says, the compiler is not able to find the definitions of 'dacXmt' and 'dacCodecInit'.

    Go to the specific error-thrown-line in the source code, understand the possible causes of the compilation error co-relating with the error messages and try to fix it. For example, first, search whether the definition of 'dacxmit' exist or not, If yes, check where it lies and try to find why the compiler is not able to find it. These type of errors are programming errors and usually the developer of the code are the best person in fixing it.

     

    Regards,

    Shankari

  • i'm using matlab embedded coder to generate c code for ccs, however matlab cannot make the link for ccsv5, it seems matlab has always looking for ccsv3.3. If I switch to use 3.3 instead of 5,   ccsv3.3 doesn't support my processor c6000..

  • the problem is matlab cannot find the header file "c6748evm_aic31_lct.h", so it cannot find the definition of dacXmt and dacCodecInit..however i set the search path correctly and the file is in the folder..

  • Hi Yating,

    Good.

    So, now you get rid of the compilation errors after setting the search path correctly?

     

    Regards,

    Shankari

  • no..actually i dont know why matlab cannot see this file..I uninstalled ccsv5 and tried ccsv4, this error still appears. the error is as below:

    The call to idelink_grt_make_rtw_hook, during the exit hook generated the following error:
    Error while building the project.

    The build process will terminate as a result.

    Error while building the project.

    The build failed with the following message: "C:/ti/ccsv4/tools/compiler/C6000/bin/cl6x" -I"C:/Program Files/MATLAB/R2014a/toolbox/idelink/extensions/ticcs/inc" -I"C:/Users/ygu9/Documents/MATLAB/test1_ticcs" -I"C:/Users/ygu9/Documents/MATLAB" -I"C:/Program Files/MATLAB/R2014a/extern/include" -I"C:/Program Files/MATLAB/R2014a/simulink/include" -I"C:/Program Files/MATLAB/R2014a/rtw/c/src" -I"C:/Program Files/MATLAB/R2014a/toolbox/target/extensions/processor/tic6000/blks/lct/include" -I"C:/ti/pspdrivers_01_30_00_05/packages" -I"C:/ti/pspdrivers_01_30_00_05/packages/ti/pspiom/cslr" -I"C:/ti/pspdrivers_01_30_00_05/packages/ti/pspiom/platforms/evm6748" -I"C:/ti/pspdrivers_01_30_00_05/packages/ti/pspiom/platforms/evm6748/audio" -I"C:/ti/pspdrivers_01_30_00_05/packages/ti/pspiom/mcasp" -I"C:/ti/pspdrivers_01_30_00_05/packages/ti/pspiom/i2c" -I"C:/ti/pspdrivers_01_30_00_05/packages/ti/pspiom/platforms/codec" -I"C:/ti/pspdrivers_01_30_00_05/packages/ti/pspiom/psc" -I"C:/ti/edma3_lld_01_11_03_01/packages" -I"C:/ti/edma3_lld_01_11_03_01/packages/ti/sdo/edma3/drv" -D"CHIP_OMAPL138" -D"__TICCSC__" -D"RT" -D"USE_RTMODEL" -mv6400+ -D"MODEL=test1" -D"NUMST=1" -D"NCSTATES=0" -D"HAVESTDIO=" -D"INTEGER_CODE=0" -D"MT=0" -D"CLASSIC_INTERFACE=1" -D"ALLOCATIONFCN=0" -D"ONESTEPFCN=0" -D"TERMFCN=1" -D"MULTI_INSTANCE_CODE=0" -D"TID01EQ=0" -I"C:/ti/ccsv4/tools/compiler/C6000/include" -I"C:/Program Files/C6xCSL/include" -fr"./derived/" ./rt_sim.c ./c6748evm_aic31.c ./c6748evm_i2c.c ./MW_c6xxx_csl.c ./rtGetInf.c ./rtGetNaN.c ./rt_nonfinite.c ./test1.c ./test1_data.c ./test1_main.c
    [rt_sim.c]
    [c6748evm_aic31.c]
    "./c6748evm_aic31.c", line 5: fatal error: could not open source file "std.h"
    1 fatal error detected in the compilation of "./c6748evm_aic31.c".
    Compilation terminated.

    >> Compilation failure
    gmake: *** [derived/rt_sim.obj] Error 1

  • Hi yating,

    You have to set the include paths of C6000 compiler in CCS appropriately.

    I.e., In CCS , in the project explorer window-> right click on project properties-> C6000 compiler -->Include options-->

    For example, set the include path as "C:\ti\ccsv5\tools\compiler\c6000_7.4.4\include" for stdio.h

    Regards,

    Shankari

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

    Please click the Verify Answer button on this post if it answers your question.

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

  • thanks shankari!

    by include the path, I solved the problem, however another error occurs,can you help me on this, thanks!:

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

    The call to idelink_ert_make_rtw_hook, during the exit hook generated the following error:
    Error while building the project.

    The build process will terminate as a result.

    Error while building the project.

    The build failed with the following message: "Evaluating prebuild target..."
    "C:/ti/bios_5_42_01_09/xdctools/tconf" -b -Dconfig.importPath="C:/ti/bios_5_42_01_09/packages" ./ExampleModule.tcf
    "C:/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -I"C:/Program Files/MATLAB/R2014a/toolbox/idelink/extensions/ticcs/inc" -I"C:/Users/ygu9/Documents/MATLAB/ExampleModule_ticcs" -I"C:/Users/ygu9/Documents/MATLAB" -I"C:/Users/ygu9/Desktop" -I"C:/Program Files/MATLAB/R2014a/extern/include" -I"C:/Program Files/MATLAB/R2014a/simulink/include" -I"C:/Program Files/MATLAB/R2014a/rtw/c/src" -I"C:/Program Files/MATLAB/R2014a/rtw/c/src/ext_mode/common" -I"C:/Program Files/MATLAB/R2014a/rtw/c/ert" -I"C:/Program Files/MATLAB/R2014a/toolbox/target/extensions/processor/tic6000/blks/lct/include" -I"C:/ti/pspdrivers_01_30_01/packages" -I"C:/ti/pspdrivers_01_30_01/packages/ti/pspiom/cslr" -I"C:/ti/pspdrivers_01_30_01/packages/ti/pspiom/platforms/evm6748" -I"C:/ti/pspdrivers_01_30_01/packages/ti/pspiom/platforms/evm6748/audio" -I"C:/ti/pspdrivers_01_30_01/packages/ti/pspiom/mcasp" -I"C:/ti/pspdrivers_01_30_01/packages/ti/pspiom/i2c" -I"C:/ti/pspdrivers_01_30_01/packages/ti/pspiom/platforms/codec" -I"C:/ti/pspdrivers_01_30_01/packages/ti/pspiom/psc" -I"C:/ti/edma3_lld_01_11_03_01/packages" -I"C:/ti/edma3_lld_01_11_03_01/packages/ti/sdo/edma3/drv" -D"CHIP_OMAPL138" -D"__TICCSC__" -D"RT" -D"USE_RTMODEL" -mv6400+ -D"MODEL=ExampleModule" -D"NUMST=1" -D"NCSTATES=0" -D"HAVESTDIO=" -D"ONESTEPFCN=1" -D"TERMFCN=1" -D"MAT_FILE=0" -D"MULTI_INSTANCE_CODE=0" -D"INTEGER_CODE=0" -D"MT=0" -D"CLASSIC_INTERFACE=0" -D"ALLOCATIONFCN=0" -D"TID01EQ=0" -I"C:/ti/ccsv5/tools/compiler/c6000_7.4.4/include" -I"C:/ti/C6xCSL/include" -I"C:/ti/bios_5_42_01_09/packages/ti/bios/include" -fr"./derived/" ./c6748evm_aic31.c ./c6748evm_i2c.c ./ExampleModule.c ./ExampleModule_data.c ./ExampleModule_main.c ./MW_c6xxx_csl.c ././ExampleModulecfg.s62 ././ExampleModulecfg_c.c
    [c6748evm_aic31.c]
    [c6748evm_i2c.c]
    [ExampleModule.c]
    [ExampleModule_data.c]
    [ExampleModule_main.c]
    [MW_c6xxx_csl.c]
    [ExampleModulecfg.s62]
    [ExampleModulecfg_c.c]
    "C:/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -z -I"C:/ti/C6xCSL/lib_3x" -i"C:/ti/pspdrivers_01_30_01/packages" -i"C:/ti/pspdrivers_01_30_01/packages" -c -x -m"ExampleModule.map" -stack0x2000 -I"C:\ti\bios_5_42_01_09\packages\ti\pscl\lib\pscl_cfg_null.a674" -I"C:\ti\bios_5_42_01_09\packages\ti\pscl\lib\pscl.a674" -I"C:\ti\bios_5_42_01_09\packages\ti\bios\lib\ pwrm.a674" -I"C:\ti\bios_5_42_01_09\packages\ti\pmi\lib\ pmi_ctl_null.a674" -I"C:\ti\bios_5_42_01_09\packages\ti\pmi\lib\pmi.a674" -I"C:/ti/bios_5_42_01_09/packages/ti/bios/lib" -I"C:/ti/bios_5_42_01_09/packages/ti/rtdx/lib/c6000" -I"C:/ti/C6xCSL/lib" -I"C:/ti/ccsv5/tools/compiler/c6000_7.4.4/lib" -o ./CustomMW/ExampleModule.out ./derived/c6748evm_aic31.obj ./derived/c6748evm_i2c.obj ./derived/ExampleModule.obj ./derived/ExampleModule_data.obj ./derived/ExampleModule_main.obj ./derived/MW_c6xxx_csl.obj ./derived/ExampleModulecfg.obj ./derived/ExampleModulecfg_c.obj ../../../../../PROGRA~1/MATLAB/R2014a/toolbox/target/EXTENS~1/PROCES~1/tic6000/blks/lct/src/C6748E~2.CMD ../../../../../PROGRA~1/MATLAB/R2014a/toolbox/target/EXTENS~1/PROCES~1/tic6000/blks/lct/src/C6748E~1.CMD ./ExampleModule.cmd ../../../../../ti/edma3_lld_01_11_03_01/packages/ti/sdo/edma3/rm/lib/c6748/Release/edma3_rm_bios.lib ../../../../../ti/edma3_lld_01_11_03_01/packages/ti/sdo/edma3/drv/sample/lib/c6748/Release/edma3_drv_bios_sample.lib ../../../../../ti/edma3_lld_01_11_03_01/packages/ti/sdo/edma3/drv/lib/Release/edma3_drv_bios_c674.lib
    <Linking>

    undefined first referenced
    symbol in file
    --------- ----------------
    _PMI_getModuleState C:/ti/bios_5_42_01_09/packages/ti/bios/lib/bios6748.a674<pwrm_rel674.o674>
    _PMI_setModuleState C:/ti/bios_5_42_01_09/packages/ti/bios/lib/bios6748.a674<pwrm_rel674.o674>
    _PWRM_getCurrentSetpoint C:/ti/pspdrivers_01_30_01/packages/ti/pspiom/i2c/lib/C6748/Release/ti.pspiom.i2c.a674<I2c.obj>
    _PWRM_getNumSetpoints C:/ti/pspdrivers_01_30_01/packages/ti/pspiom/i2c/lib/C6748/Release/ti.pspiom.i2c.a674<I2c.obj>
    _PWRM_getSetpointInfo C:/ti/pspdrivers_01_30_01/packages/ti/pspiom/i2c/lib/C6748/Release/ti.pspiom.i2c.a674<I2c.obj>
    _PWRM_registerConstraint C:/ti/pspdrivers_01_30_01/packages/ti/pspiom/i2c/lib/C6748/Release/ti.pspiom.i2c.a674<I2c.obj>
    _PWRM_registerNotify C:/ti/pspdrivers_01_30_01/packages/ti/pspiom/i2c/lib/C6748/Release/ti.pspiom.i2c.a674<I2c.obj>
    _PWRM_unregisterConstraint C:/ti/pspdrivers_01_30_01/packages/ti/pspiom/i2c/lib/C6748/Release/ti.pspiom.i2c.a674<I2c.obj>
    _PWRM_unregisterNotify C:/ti/pspdrivers_01_30_01/packages/ti/pspiom/i2c/lib/C6748/Release/ti.pspiom.i2c.a674<I2c.obj>
    __PWRM_CAPSMASK C:/ti/bios_5_42_01_09/packages/ti/bios/lib/bios6748.a674<pwrm_get674.o674>

    error: unresolved symbols remain
    error: errors encountered during linking; "./CustomMW/ExampleModule.out" not
    built

    >> Compilation failure
    gmake: *** [CustomMW/ExampleModule.out] Error 1

  • hi yating gu, was you solve problem ?