Hello,
I have a problem with the code generation from Simulink to DSP. I have 3 small models and I can generate the code from every one of them to use it separatelly on my C28346. However, when I create a model with both the 3 smaller ones I get the following error. Any suggestions on how I should proceed? The error appears after the compile during the build of the makefile.
Thank you for your time.
In the matlab command window appears the following :
### Generating code into build folder: C:\Users\Dimitris\Desktop\matlabwork\Binary_phae_amp_freq_ticcs
### Invoking Target Language Compiler on Binary_phae_amp_freq.rtw
### Using System Target File: C:\Program Files\MATLAB\R2013a\toolbox\idelink\foundation\pjtgenerator\rtw\idelink_ert.tlc
### Loading TLC function libraries
....
Warning: The data type "int8" uses a word size that is not available on the intended target.
Fixed-point signals using this data type will be put inside a larger word or multi words. When used,
extra software will be generated to force this larger word or multi words to emulate a smaller
word. This emulation is helpful when your prototype target and your final
production target are not the same. If the smaller word size does NOT exist
on the final production target, then consider increasing the word size to
one that is supported.
Warning: The data type "uint8" uses a word size that is not available on the intended target.
.
Warning: The data type "boolean" uses a word size that is not available on the intended target.
### Initial pass through model to cache user defined code
......
### Caching model source code
...............................................................................
............
### Writing header file Binary_phae_amp_freq.h
.
### Writing header file Binary_phae_amp_freq_types.h
### Writing header file Binary_phae_amp_freq_private.h
.
### Writing header file rtwtypes.h
### Writing header file rt_defines.h
.
### Writing header file rt_nonfinite.h
### Writing source file rt_nonfinite.c
.
### Writing header file rtGetInf.h
### Writing source file rtGetInf.c
.
### Writing header file rtGetNaN.h
### Writing source file rtGetNaN.c
.
### Writing source file Binary_phae_amp_freq.c
### Writing source file Binary_phae_amp_freq_data.c
.
### Writing source file Binary_phae_amp_freq_main.c
### TLC code generation complete.
..
..### Creating makefile: C:\Users\Dimitris\Desktop\matlabwork\Binary_phae_amp_freq_ticcs\Binary_phae_amp_freq.mk
### Makefile creation done.
### Building makefile...
The errror that I get is the following during the building of the makefile is this:
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: "C:/TI/ccsv5/tools/compiler/C2000 Code Generation Tools 6.0.2/bin/cl2000" -I"C:/Program Files/MATLAB/R2013a/toolbox/idelink/extensions/ticcs/inc" -I"C:/TI/v110/DSP2834x_common/include" -I"C:/TI/v110/DSP2834x_headers/include" -I"C:/Users/Dimitris/Desktop/matlabwork/Binary_phae_amp_freq_ticcs" -I"C:/Users/Dimitris/Desktop/matlabwork" -I"C:/Program Files/MATLAB/R2013a/extern/include" -I"C:/Program Files/MATLAB/R2013a/simulink/include" -I"C:/Program Files/MATLAB/R2013a/rtw/c/src" -I"C:/Program Files/MATLAB/R2013a/rtw/c/src/ext_mode/common" -I"C:/Program Files/MATLAB/R2013a/rtw/c/ert" -I"C:/Program Files/MATLAB/R2013a/toolbox/physmod/powersys/facts/facts" -I"C:/Program Files/MATLAB/R2013a/toolbox/physmod/powersys/DR/DR" -I"C:/Program Files/MATLAB/R2013a/toolbox/dsp/include" -I"C:/Program Files/MATLAB/R2013a/toolbox/shared/dsp/vision/matlab/include" -D"__TICCSC__" -D"RT" -D"USE_RTMODEL" -ml -v28 --float_support=fpu32 -D"MODEL=Binary_phae_amp_freq" -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"TID01EQ=0" -D"RT=" -D"USE_RTMODEL=" -D"ERT=" -I"C:/TI/ccsv5/tools/compiler/C2000 Code Generation Tools 6.0.2/include" -fr"./derived/" ./rt_matrx.c ./rt_printf.c ./sfun_discreteVariableDelay.c ./DSP2834x_CodeStartBranch.asm ./DSP2834x_CpuTimers.c ./DSP2834x_DMA.c ./DSP2834x_DefaultIsr.c ./DSP2834x_MemCopy.c ./DSP2834x_PieCtrl.c ./DSP2834x_PieVect.c ./DSP2834x_SysCtrl.c ./DSP2834x_Xintf.c ./DSP2834x_usDelay.asm ./DSP2834x_GlobalVariableDefs.c ./Binary_phae_amp_freq.c ./Binary_phae_amp_freq_data.c ./Binary_phae_amp_freq_main.c ./MW_c28xx_board.c ./MW_c28xx_csl.c ./rtGetInf.c ./rtGetNaN.c ./rt_nonfinite.c
[rt_matrx.c]
[rt_printf.c]
[sfun_discreteVariableDelay.c]
"./sfun_discreteVariableDelay.c", line 331: warning: variable "directFeedThrough" was declared but never referenced
"./sfun_discreteVariableDelay.c", line 533: warning: variable "fieldNames" was set but never used
"./sfun_discreteVariableDelay.c", line 538: warning: variable "nFields" was declared but never referenced
[DSP2834x_CodeStartBranch.asm]
[DSP2834x_CpuTimers.c]
[DSP2834x_DMA.c]
[DSP2834x_DefaultIsr.c]
[DSP2834x_MemCopy.c]
[DSP2834x_PieCtrl.c]
[DSP2834x_PieVect.c]
[DSP2834x_SysCtrl.c]
[DSP2834x_Xintf.c]
[DSP2834x_usDelay.asm]
[DSP2834x_GlobalVariableDefs.c]
[Binary_phae_amp_freq.c]
[Binary_phae_amp_freq_data.c]
[Binary_phae_amp_freq_main.c]
[MW_c28xx_board.c]
[MW_c28xx_csl.c]
[rtGetInf.c]
[rtGetNaN.c]
[rt_nonfinite.c]
"C:/TI/ccsv5/tools/compiler/C2000 Code Generation Tools 6.0.2/bin/cl2000" -z -I"C:/TI/ccsv5/tools/compiler/C2000 Code Generation Tools 6.0.2/lib" -l"rts2800_fpu32.lib" -c -x -m"Binary_phae_amp_freq.map" -stack0x200 -o ./CustomMW/Binary_phae_amp_freq.out ./derived/rt_matrx.obj ./derived/rt_printf.obj ./derived/sfun_discreteVariableDelay.obj ./derived/DSP2834x_CodeStartBranch.obj ./derived/DSP2834x_CpuTimers.obj ./derived/DSP2834x_DMA.obj ./derived/DSP2834x_DefaultIsr.obj ./derived/DSP2834x_MemCopy.obj ./derived/DSP2834x_PieCtrl.obj ./derived/DSP2834x_PieVect.obj ./derived/DSP2834x_SysCtrl.obj ./derived/DSP2834x_Xintf.obj ./derived/DSP2834x_usDelay.obj ./derived/DSP2834x_GlobalVariableDefs.obj ./derived/Binary_phae_amp_freq.obj ./derived/Binary_phae_amp_freq_data.obj ./derived/Binary_phae_amp_freq_main.obj ./derived/MW_c28xx_board.obj ./derived/MW_c28xx_csl.obj ./derived/rtGetInf.obj ./derived/rtGetNaN.obj ./derived/rt_nonfinite.obj ./Binary_phae_amp_freq.cmd ../../../../../PROGRA~1/MATLAB/R2013a/toolbox/idelink/EXTENS~1/ticcs/rtlib/IQMATH~1.LIB
<Linking>
"./Binary_phae_amp_freq.cmd", line 24: error: placement fails for object
".text", size 0x42b3 (page 0). Available ranges:
RAML0L1 size: 0x4000 unused: 0x3e83 max hole: 0x3e83
error: errors encountered during linking; "./CustomMW/Binary_phae_amp_freq.out"
not built
>> Compilation failure
gmake: *** [CustomMW/Binary_phae_amp_freq.out] Error 1