I have a problem when matlab generates a с-code from simulink model!
Compilation begins & after 2 sec it shows an error.

Code: Select all
### Invoking Target Language Compiler on untitled.rtw
tlc
-r
C:\Users\п\Documents\MATLAB\untitled_dspic\sources\untitled.rtw
D:\Учеба\МАГИСТРАТУРА\Ветринский\библиотека PIC дляsimulink\dspic\dspic.tlc
-OC:\Users\п\Documents\MATLAB\untitled_dspic\sources
-ID:\Учеба\МАГИСТРАТУРА\Ветринский\библиотека PIC дляsimulink\dspic
-ID:\Program Files\MATLAB\R2008a\toolbox\dspblks\dspmex\tlc_c
-ID:\Учеба\МАГИСТРАТУРА\Ветринский\библиотека PIC дляsimulink\blocks
-ID:\Program Files\MATLAB\R2008a\toolbox\commblks\commmex\tlc_c
-IC:\Users\п\Documents\MATLAB\untitled_dspic\sources\tlc
-ID:\Program Files\MATLAB\R2008a\rtw\c\tlc\mw
-ID:\Program Files\MATLAB\R2008a\rtw\c\tlc\lib
-ID:\Program Files\MATLAB\R2008a\rtw\c\tlc\blocks
-ID:\Program Files\MATLAB\R2008a\rtw\c\tlc\fixpt
-ID:\Program Files\MATLAB\R2008a\stateflow\c\tlc
-aEnforceIntegerDowncast=1
-aFoldNonRolledExpr=1
-aInlineInvariantSignals=0
-aInlineParameters=0
-aLocalBlockOutputs=1
-aRollThreshold=5
-aZeroInternalMemoryAtStartup=1
-aZeroExternalMemoryAtStartup=1
-aInitFltsAndDblsToZero=1
-aGenerateReport=0
-aGenCodeOnly=0
-aRTWVerbose=1
-aIncludeHyperlinkInReport=0
-aLaunchReport=0
-aGenerateTraceInfo=0
-aForceParamTrailComments=0
-aGenerateComments=1
-aIgnoreCustomStorageClasses=0
-aIncHierarchyInIds=0
-aMaxRTWIdLen=31
-aShowEliminatedStatements=0
-aIncDataTypeInIds=0
-aInsertBlockDesc=0
-aSimulinkBlockComments=1
-aInlinedPrmAccess="Literals"
-aTargetFcnLib="ansi_tfl_table_tmw.mat"
-aGenFloatMathFcnCalls="ANSI_C"
-aIsPILTarget=0
-aIncludeMdlTerminateFcn=0
-aCombineOutputUpdateFcns=1
-aSuppressErrorStatus=1
-aERTCustomFileBanners=1
-aLogVarNameModifier="rt_"
-aGenerateFullHeader=1
-aGenerateSampleERTMain=0
-aMatFileLogging=0
-aMultiInstanceERTCode=0
-aPurelyIntegerCode=0
-aPortableWordSizes=0
-aGenerateErtSFunction=0
-aGenerateASAP2=0
-aExtMode=0
-aExtModeStaticAlloc=0
-aExtModeStaticAllocSize=1000000
-aExtModeTransport=0
-aExtModeTesting=0
-aInlinedParameterPlacement="NonHierarchical"
-aTargetOS="BareBoardExample"
-aMultiInstanceErrorCode="Error"
-aRateGroupingCode=1
-aRTWCAPISignals=0
-aRTWCAPIParams=0
-aRootIOStructures=0
-aERTCustomFileTemplate="dsPIC_main.tlc"
-aGMAKE_PLACE="D:\PROGRA~1\MATLAB\R2008a\bin\win32\gmake"
-aOPTIM_GCC="-mcpu=30f2012 -O3 -fschedule-insns -fschedule-insns2"
-aLDFLAGS="-t --report-mem -Map ../untitled.map --heap 0 -cref"
-aLDPICTYPE="-T C:\PROGRA~1\MICROC~1\MPLABC~2\support\dsPIC30F\gld\p30f2012.gld"
-aLDLIBPIC="C:\PROGRA~1\MICROC~1\MPLABC~2\lib\libpic30-coff.a C:\PROGRA~1\MICROC~1\MPLABC~2\lib\dsPIC30F\libp30f2012-coff.a C:\PROGRA~1\MICROC~1\MPLABC~2\lib\libc-coff.a C:\PROGRA~1\MICROC~1\MPLABC~2\lib\libm-coff.a"
-aPIC_INCLUDES="-I C:\PROGRA~1\MICROC~1\MPLABC~2\include"
-aPIC_REF="30f2012"
-aGCCPATH="C:\\PROGRA~1\\MICROC~1\\MPLABC~2\\bin\\"
-aGenerateTraceInfo=0
-p10000
### Loading TLC function libraries
.....
### Initial pass through model to cache user defined code
.
### Caching model source code
................
### Writing main
### Writing header file untitled_types.h
.
### Writing header file untitled.h
### Writing source file untitled.c
.
### Writing header file untitled_private.h
### Writing source file untitled_data.c
### Writing header file autobuild.h
.
### Writing source file untitled_main.c
### TLC code generation complete.
### Evaluating PostCodeGenCommand specified in the model
----------------------------------------------------
----------------------------------------------------
Embedded Coder for dsPIC V3.0(26-Sep-2009) for Matlab R2008a.
Licence Accorded to Demonstration Version
RTWdsPIC@kerhuel.eu
Author : Lubin KERHUEL
WEBSITE : http://www.kerhuel.eu/wiki
SIRENE : 503 920 456
SIRET : 503 920 456 00012
Facturation to : Demo
Demo
Lubin KERHUEL
18 avenue Joseph Lieutaud
13260 Cassis
FRANCE
----------------------------------------------------
Check updates and new informations at : www.kerhuel.eu
----------------------------------------------------
.
### Processing Template Makefile: D:\Учеба\МАГИСТРАТУРА\Ветринский\библиотека PIC дляsimulink\dspic\dspic_pic30_gcc.tmf
### Creating untitled.mk from D:\Учеба\МАГИСТРАТУРА\Ветринский\библиотека PIC дляsimulink\dspic\dspic_pic30_gcc.tmf
### Building untitled: .\untitled.bat
C:\Users\Ї\Documents\MATLAB\untitled_dspic\sources>set MATLAB=D:\Program Files\MATLAB\R2008a
C:\Users\Ї\Documents\MATLAB\untitled_dspic\sources>"D:\PROGRA~1\MATLAB\R2008a\bin\win32\gmake" -f untitled.mk GENERATE_REPORT=0 MULTI_INSTANCE_CODE=0 PORTABLE_WORDSIZES=0 GENERATE_ASAP2=0 TMW_EXTMODE_TESTING=0
C:\\PROGRA~1\\MICROC~1\\MPLABC~2\\bin\\pic30-gcc -c -mcpu=30f2012 -O3 -fschedule-insns -fschedule-insns2 -O -I. -I..\.. -ID:\PROGRA~1\MATLAB\R2008a/simulink/include -ID:\PROGRA~1\MATLAB\R2008a/extern/include -ID:\PROGRA~1\MATLAB\R2008a/rtw/c/src -ID:\PROGRA~1\MATLAB\R2008a/rtw/c/ert -ID:\PROGRA~1\MATLAB\R2008a/rtw/c/src/ext_mode/common -IC:\Users\п\Documents\MATLAB\untitled_dspic\sources -IC:\Users\п\Documents\MATLAB -ID:\PROGRA~1\MATLAB\R2008a\rtw\c\libsrc -ID:\PROGRA~1\MATLAB\R2008a\toolbox\dspblks\include -ID:\PROGRA~1\MATLAB\R2008a\toolbox\rtw\dspblks\c -ID:\PROGRA~1\MATLAB\R2008a\toolbox\rtw\comm\c\include -I C:\PROGRA~1\MICROC~1\MPLABC~2\include dsPIC_Multiplexed_out_UART1.c
C:\\PROGRA~1\\MICROC~1\\MPLABC~2\\bin\\pic30-gcc -c -mcpu=30f2012 -O3 -fschedule-insns -fschedule-insns2 -O -I. -I..\.. -ID:\PROGRA~1\MATLAB\R2008a/simulink/include -ID:\PROGRA~1\MATLAB\R2008a/extern/include -ID:\PROGRA~1\MATLAB\R2008a/rtw/c/src -ID:\PROGRA~1\MATLAB\R2008a/rtw/c/ert -ID:\PROGRA~1\MATLAB\R2008a/rtw/c/src/ext_mode/common -IC:\Users\п\Documents\MATLAB\untitled_dspic\sources -IC:\Users\п\Documents\MATLAB -ID:\PROGRA~1\MATLAB\R2008a\rtw\c\libsrc -ID:\PROGRA~1\MATLAB\R2008a\toolbox\dspblks\include -ID:\PROGRA~1\MATLAB\R2008a\toolbox\rtw\dspblks\c -ID:\PROGRA~1\MATLAB\R2008a\toolbox\rtw\comm\c\include -I C:\PROGRA~1\MICROC~1\MPLABC~2\include dsPIC_UART1_Interrupt.c
dsPIC_UART1_Interrupt.c: In function '_U1TXInterrupt':
dsPIC_UART1_Interrupt.c:19: warning: PSV model not specified for '_U1TXInterrupt';
assuming 'auto_psv' this may affect latency
dsPIC_UART1_Interrupt.c: In function '_U1RXInterrupt':
dsPIC_UART1_Interrupt.c:31: warning: PSV model not specified for '_U1RXInterrupt';
assuming 'auto_psv' this may affect latency
C:\\PROGRA~1\\MICROC~1\\MPLABC~2\\bin\\pic30-gcc -c -mcpu=30f2012 -O3 -fschedule-insns -fschedule-insns2 -O -I. -I..\.. -ID:\PROGRA~1\MATLAB\R2008a/simulink/include -ID:\PROGRA~1\MATLAB\R2008a/extern/include -ID:\PROGRA~1\MATLAB\R2008a/rtw/c/src -ID:\PROGRA~1\MATLAB\R2008a/rtw/c/ert -ID:\PROGRA~1\MATLAB\R2008a/rtw/c/src/ext_mode/common -IC:\Users\п\Documents\MATLAB\untitled_dspic\sources -IC:\Users\п\Documents\MATLAB -ID:\PROGRA~1\MATLAB\R2008a\rtw\c\libsrc -ID:\PROGRA~1\MATLAB\R2008a\toolbox\dspblks\include -ID:\PROGRA~1\MATLAB\R2008a\toolbox\rtw\dspblks\c -ID:\PROGRA~1\MATLAB\R2008a\toolbox\rtw\comm\c\include -I C:\PROGRA~1\MICROC~1\MPLABC~2\include untitled_data.c
C:\\PROGRA~1\\MICROC~1\\MPLABC~2\\bin\\pic30-gcc -c -mcpu=30f2012 -O3 -fschedule-insns -fschedule-insns2 -O -I. -I..\.. -ID:\PROGRA~1\MATLAB\R2008a/simulink/include -ID:\PROGRA~1\MATLAB\R2008a/extern/include -ID:\PROGRA~1\MATLAB\R2008a/rtw/c/src -ID:\PROGRA~1\MATLAB\R2008a/rtw/c/ert -ID:\PROGRA~1\MATLAB\R2008a/rtw/c/src/ext_mode/common -IC:\Users\п\Documents\MATLAB\untitled_dspic\sources -IC:\Users\п\Documents\MATLAB -ID:\PROGRA~1\MATLAB\R2008a\rtw\c\libsrc -ID:\PROGRA~1\MATLAB\R2008a\toolbox\dspblks\include -ID:\PROGRA~1\MATLAB\R2008a\toolbox\rtw\dspblks\c -ID:\PROGRA~1\MATLAB\R2008a\toolbox\rtw\comm\c\include -I C:\PROGRA~1\MICROC~1\MPLABC~2\include untitled_main.c
C:\\PROGRA~1\\MICROC~1\\MPLABC~2\\bin\\pic30-gcc -c -mcpu=30f2012 -O3 -fschedule-insns -fschedule-insns2 -O -I. -I..\.. -ID:\PROGRA~1\MATLAB\R2008a/simulink/include -ID:\PROGRA~1\MATLAB\R2008a/extern/include -ID:\PROGRA~1\MATLAB\R2008a/rtw/c/src -ID:\PROGRA~1\MATLAB\R2008a/rtw/c/ert -ID:\PROGRA~1\MATLAB\R2008a/rtw/c/src/ext_mode/common -IC:\Users\п\Documents\MATLAB\untitled_dspic\sources -IC:\Users\п\Documents\MATLAB -ID:\PROGRA~1\MATLAB\R2008a\rtw\c\libsrc -ID:\PROGRA~1\MATLAB\R2008a\toolbox\dspblks\include -ID:\PROGRA~1\MATLAB\R2008a\toolbox\rtw\dspblks\c -ID:\PROGRA~1\MATLAB\R2008a\toolbox\rtw\comm\c\include -I C:\PROGRA~1\MICROC~1\MPLABC~2\include untitled.c
untitled.c: In function 'untitled_step':
untitled.c:145: error: unrecognizable insn:
(0x018c9eb0) (insn 234 42 44 2 (set (reg:SF 2 w2)
(unspec:SF [
(mem:SF (plus:P16APSV (subreg:P16APSV (plus:HI (reg/f:HI 15 w15)
(const_int -36 [0xffffffdc])) 0)
(const_int 24 [0x18])) [0 S4 A16])
(reg:HI 19 PSVPAG)
] 62)) -1 (nil)
(nil))
untitled.c:145: internal compiler error: in extract_insn, at recog.c:2020
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://support.microchip.com> for instructions.
gmake: *** [untitled.o] Error 255
### Real-Time Workshop build procedure for model: 'untitled' aborted due to an error.
Error using ==> genMakefileAndBuild at 1138
Error(s) encountered while building model "untitled".
Could you help me?
I don't know, what does it means


