MATLAB CCSV5 <Linking> error: cannot find file "rts2800_fpu32.lib"

10 ビュー (過去 30 日間)
wms wms
wms wms 2015 年 11 月 17 日
コメント済み: liye Fu 2018 年 9 月 5 日
The build process will terminate as a result.
Error while building the project.
The build failed with the following message: "D:/ti/ccsv6/tools/compiler/c2000_6.2.5/bin/cl2000" -I"C:/MATLAB/SupportPackages/R2014a/tic2000/inc" -I"G:/Users/WMS/Desktop/dsp_matlab/IIC_ticcs" -I"G:/Users/WMS/Desktop/dsp_matlab" -I"D:/MATLAB/R2014a/extern/include" -I"D:/MATLAB/R2014a/simulink/include" -I"D:/MATLAB/R2014a/rtw/c/src" -I"D:/MATLAB/R2014a/rtw/c/src/ext_mode/common" -I"D:/MATLAB/R2014a/rtw/c/ert" -D"__TICCSC__" -D"RT" -D"USE_RTMODEL" -ml -v28 --float_support=fpu32 -D"MODEL=IIC" -D"NUMST=2" -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=1" -D"CLASSIC_INTERFACE=0" -D"ALLOCATIONFCN=0" -D"TID01EQ=0" -I"D:\ti\ccsv6\tools\compiler\c2000_6.2.5\include" -fr"./derived/" ./DSP2833x_ADC_cal.asm ./DSP2833x_CodeStartBranch.asm ./DSP2833x_CpuTimers.c ./DSP2833x_DMA.c ./DSP2833x_DefaultIsr.c ./DSP2833x_GlobalVariableDefs.c ./DSP2833x_MemCopy.c ./DSP2833x_PieCtrl.c ./DSP2833x_PieVect.c ./DSP2833x_SysCtrl.c ./DSP2833x_usDelay.asm ./IIC.c ./IIC_data.c ./IIC_main.c ./MW_c28xx_board.c ./MW_c28xx_csl.c ./MW_c28xx_i2c.c ./rtGetInf.c ./rtGetNaN.c ./rt_nonfinite.c
[DSP2833x_ADC_cal.asm]
[DSP2833x_CodeStartBranch.asm]
[DSP2833x_CpuTimers.c]
[DSP2833x_DMA.c]
[DSP2833x_DefaultIsr.c]
[DSP2833x_GlobalVariableDefs.c]
[DSP2833x_MemCopy.c]
[DSP2833x_PieCtrl.c]
[DSP2833x_PieVect.c]
[DSP2833x_SysCtrl.c]
[DSP2833x_usDelay.asm]
[IIC.c]
[IIC_data.c]
[IIC_main.c]
[MW_c28xx_board.c]
"./MW_c28xx_board.c", line 102: warning: function "init_I2C" declared implicitly
[MW_c28xx_csl.c]
[MW_c28xx_i2c.c]
[rtGetInf.c]
[rtGetNaN.c]
[rt_nonfinite.c]
"D:/ti/ccsv6/tools/compiler/c2000_6.2.5/bin/cl2000" -z -l"rts2800_fpu32.lib" -c -x -m"IIC.map" -stack0x200 -o ./CustomMW/IIC.out ./derived/DSP2833x_ADC_cal.obj ./derived/DSP2833x_CodeStartBranch.obj ./derived/DSP2833x_CpuTimers.obj ./derived/DSP2833x_DMA.obj ./derived/DSP2833x_DefaultIsr.obj ./derived/DSP2833x_GlobalVariableDefs.obj ./derived/DSP2833x_MemCopy.obj ./derived/DSP2833x_PieCtrl.obj ./derived/DSP2833x_PieVect.obj ./derived/DSP2833x_SysCtrl.obj ./derived/DSP2833x_usDelay.obj ./derived/IIC.obj ./derived/IIC_data.obj ./derived/IIC_main.obj ./derived/MW_c28xx_board.obj ./derived/MW_c28xx_csl.obj ./derived/MW_c28xx_i2c.obj ./derived/rtGetInf.obj ./derived/rtGetNaN.obj ./derived/rt_nonfinite.obj ./IIC.cmd C:/MATLAB/SupportPackages/R2014a/tic2000/rtlib/IQmath_fpu32.lib
<Linking>
error: cannot find file "rts2800_fpu32.lib"
warning: automatic RTS selection: attempt to automatically link in index
library "libc.a" failed; file not found
warning: entry-point symbol "_c_int00" undefined
undefined first referenced
symbol in file
--------- ----------------
_fmod ./derived/IIC.obj
_modf ./derived/IIC.obj
error: unresolved symbols remain
error: errors encountered during linking; "./CustomMW/IIC.out" not built
>> Compilation failure
gmake: *** [CustomMW/IIC.out] Error 1
  1 件のコメント
Devraj Dutt
Devraj Dutt 2016 年 3 月 11 日
I get a similar error, even though rts2800_fpu32.lib is right there in the folder MATLAB is looking for it in
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.
Caused by:
Error while building the project.
The build failed with the following message: "D:/ti/ccsv5/tools/compiler/c2000_6.1.0/bin/cl2000" -I"D:/MATLABSupportpackages/CustomSupportPackageRoot/toolbox/target/supportpackages/tic2000/inc" -I"D:/GDrv/EMMC STEPS/8. Semester 3/LABST/MATLAB Workspace/Sem3 LABST V_f/PWM_Gen_ticcs" -I"D:/GDrv/EMMC STEPS/8. Semester 3/LABST/MATLAB Workspace/Sem3 LABST V_f" -I"D:/Program Files/MATLAB/R2016a/extern/include" -I"D:/Program Files/MATLAB/R2016a/simulink/include" -I"D:/Program Files/MATLAB/R2016a/rtw/c/src" -I"D:/Program Files/MATLAB/R2016a/rtw/c/src/ext_mode/common" -I"D:/Program Files/MATLAB/R2016a/rtw/c/ert" -D"__TICCSC__" -D"RT" -D"USE_RTMODEL" -ml -v28 --float_support=fpu32 -D"MODEL=PWM_Gen" -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"D:/ti/ccsv5/tools/compiler/c2000_6.1.0/include" -fr"./derived/" ./MW_c28xx_adc.c ./MW_c28xx_board.c ./MW_c28xx_csl.c ./MW_c28xx_pwm.c ./PWM_Gen.c ./PWM_Gen_data.c ./PWM_Gen_main.c ./DSP2833x_ADC_cal.asm ./DSP2833x_Adc.c ./DSP2833x_CodeStartBranch.asm ./DSP2833x_CpuTimers.c ./DSP2833x_DMA.c ./DSP2833x_DefaultIsr.c ./DSP2833x_GlobalVariableDefs.c ./DSP2833x_PieCtrl.c ./DSP2833x_PieVect.c ./DSP2833x_SysCtrl.c ./DSP2833x_usDelay.asm
[MW_c28xx_adc.c]
[MW_c28xx_board.c]
"./MW_c28xx_board.c", line 102: warning: function declared implicitly
[MW_c28xx_csl.c]
[MW_c28xx_pwm.c]
[PWM_Gen.c]
[PWM_Gen_data.c]
[PWM_Gen_main.c]
[DSP2833x_ADC_cal.asm]
[DSP2833x_Adc.c]
[DSP2833x_CodeStartBranch.asm]
[DSP2833x_CpuTimers.c]
[DSP2833x_DMA.c]
[DSP2833x_DefaultIsr.c]
[DSP2833x_GlobalVariableDefs.c]
[DSP2833x_PieCtrl.c]
[DSP2833x_PieVect.c]
[DSP2833x_SysCtrl.c]
[DSP2833x_usDelay.asm]
"D:/ti/ccsv5/tools/compiler/c2000_6.1.0/bin/cl2000" -z -l"rts2800_fpu32.lib" -c -x -m"PWM_Gen.map" -stack0x200 -o ./CustomMW/PWM_Gen.out ./derived/MW_c28xx_adc.obj ./derived/MW_c28xx_board.obj ./derived/MW_c28xx_csl.obj ./derived/MW_c28xx_pwm.obj ./derived/PWM_Gen.obj ./derived/PWM_Gen_data.obj ./derived/PWM_Gen_main.obj ./derived/DSP2833x_ADC_cal.obj ./derived/DSP2833x_Adc.obj ./derived/DSP2833x_CodeStartBranch.obj ./derived/DSP2833x_CpuTimers.obj ./derived/DSP2833x_DMA.obj ./derived/DSP2833x_DefaultIsr.obj ./derived/DSP2833x_GlobalVariableDefs.obj ./derived/DSP2833x_PieCtrl.obj ./derived/DSP2833x_PieVect.obj ./derived/DSP2833x_SysCtrl.obj ./derived/DSP2833x_usDelay.obj ./PWM_Gen.cmd ../../../../../../../IQmath_fpu32.lib ../../../../../../../ti/ccsv5/tools/compiler/c2000_6.1.0/lib/rts2800_fpu32.lib
<Linking>
error: cannot find file "rts2800_fpu32.lib"
error: errors encountered during linking; "./CustomMW/PWM_Gen.out" not built
>> Compilation failure
gmake: *** [CustomMW/PWM_Gen.out] Error 1
Component: Simulink | Category: Model error
If you see the path that MATLAB searches for, it is ../../../../../../../ti/ccsv5/tools/compiler/c2000_6.1.0/lib/rts2800_fpu32.lib
I've attached a screenshot of the said path with the library right there! Any solutions?

サインインしてコメントする。

回答 (1 件)

shiming liu
shiming liu 2016 年 3 月 25 日
I meet the same problem, I don't know why, but I solved it :)
My model is test1.slx,so the Embeded Coder will build the directory C:\Users\Liu\Documents\MATLAB\test1_ticcs to save the generated C and other files.
I copied "rts2800_fpu32.lib" to the directory,and the Embeded Coder will generated test1.out correctly!(I still fighting forthe problems in the next steps)
To make this action automaticaly, I set a Pre-build in the xmakefilesetup() windows,which is:
Pre-build tool: C:\Windows\System32\xcopy
Arguments: C:\ti\ccsv5\tools\compiler\c2000_6.1.3\lib\rts2800_fpu32.lib . /Y
The reason why use xcopy instead of copy: "copy" is not a Windows Command File, MATLAB can't call it.

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by