I am trying to compile my first model from your demo http://www.kerhuel.eu/wiki/Animation_Co ... irst_model and keep getting the error:
Error building Real-Time Workshop target for block diagram 'chad'. MATLAB error message:
Error using ==> genMakefileAndBuild at 1070
Error(s) encountered while building model "chad".
Code: Select all
C30 Compiler found
C30 Compiler found
C30 Compiler found
C30 Compiler found
### Starting Real-Time Workshop build procedure for model: chad
### Generating code into build directory: C:\Users\Chad\Documents\MATLAB\chad_dspic\sources
PNumber of I/O PINs used : 1
TT### Invoking Target Language Compiler on chad.rtw
tlc
-r
C:\Users\Chad\Documents\MATLAB\chad_dspic\sources\chad.rtw
C:\Users\Chad\Desktop\install_dsPIC_R2007b\dspic\dspic.tlc
-OC:\Users\Chad\Documents\MATLAB\chad_dspic\sources
-IC:\Users\Chad\Desktop\install_dsPIC_R2007b\dspic
-IC:\Users\Chad\Desktop\install_dsPIC_R2007b\blocks
-IC:\Users\Chad\Documents\MATLAB\chad_dspic\sources\tlc
-IC:\Program Files\MATLAB\R2007b\rtw\c\tlc\mw
-IC:\Program Files\MATLAB\R2007b\rtw\c\tlc\lib
-IC:\Program Files\MATLAB\R2007b\rtw\c\tlc\blocks
-IC:\Program Files\MATLAB\R2007b\rtw\c\tlc\fixpt
-IC:\Program Files\MATLAB\R2007b\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="C:\PROGRA~1\MATLAB\R2007b\bin\win32\gmake"
-aOPTIM_GCC="-mcpu=24fJ128GA010 -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\PIC24F\gld\p24fJ128GA010.gld"
-aLDLIBPIC="C:\PROGRA~1\MICROC~1\MPLABC~2\lib\libpic30-coff.a C:\PROGRA~1\MICROC~1\MPLABC~2\lib\PIC24F\libpPIC24Fxxx-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="24fJ128GA010"
-aGCCPATH=""
-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 chad_types.h
### Writing header file chad.h
### Writing source file chad.c
.
### Writing header file chad_private.h
### Writing source file chad_data.c
.
### Writing header file autobuild.h
### Writing source file chad_main.c
### TLC code generation complete.
### Evaluating PostCodeGenCommand specified in the model
----------------------------------------------------
----------------------------------------------------
Embedded Coder for dsPIC V0.99g(08-Jul-2009) for Matlab R2007b.
Licence Accorded to Demonstration Version
RTWdsPIC@kerhuel.eu
Author : Lubin KERHUEL
WEBSITE : http://www.kerhuel.eu
SIRENE : 503 920 456
SIRET : 503 920 456 00012
Facturation to :
Montee du chateau
Rue de l arene
13260 Cassis
FRANCE
----------------------------------------------------
Check updates and new informations at : www.kerhuel.eu
----------------------------------------------------
.
### Processing Template Makefile: C:\Users\Chad\Desktop\install_dsPIC_R2007b\dspic\dspic_pic30_gcc.tmf
### chad.mk which is generated from C:\Users\Chad\Desktop\install_dsPIC_R2007b\dspic\dspic_pic30_gcc.tmf is up to date
### Building chad: .\chad.bat
C:\Users\Chad\Documents\MATLAB\chad_dspic\sources>set MATLAB=C:\Program Files\MATLAB\R2007b
C:\Users\Chad\Documents\MATLAB\chad_dspic\sources>"C:\PROGRA~1\MATLAB\R2007b\bin\win32\gmake" -f chad.mk GENERATE_REPORT=0 MULTI_INSTANCE_CODE=0 PORTABLE_WORDSIZES=0 GENERATE_ASAP2=0 TMW_EXTMODE_TESTING=0
''pic30-gcc -c -mcpu=24fJ128GA010 -O3 -fschedule-insns -fschedule-insns2 -O -I. -I..\.. -IC:\PROGRA~1\MATLAB\R2007b/simulink/include -IC:\PROGRA~1\MATLAB\R2007b/extern/include -IC:\PROGRA~1\MATLAB\R2007b/rtw/c/src -IC:\PROGRA~1\MATLAB\R2007b/rtw/c/ert -IC:\PROGRA~1\MATLAB\R2007b/rtw/c/src/ext_mode/common -IC:\Users\Chad\Documents\MATLAB\chad_dspic\sources -IC:\Users\Chad\Documents\MATLAB -IC:\Users\Chad\Desktop -IC:\PROGRA~1\MATLAB\R2007b\rtw\c\libsrc -I C:\PROGRA~1\MICROC~1\MPLABC~2\include chad_data.c
In file included from c:/program files/microchip/mplab c30/bin/bin/../../support/peripheral_24F/timer.h:35,
from chad_private.h:47,
from chad_data.c:28:
c:/program files/microchip/mplab c30/bin/bin/../../support/peripheral_24F/GenericTypeDefs.h:53: error: syntax error before '(' token
gmake: *** [chad_data.o] Error 255
### Real-Time Workshop build procedure for model: 'chad' aborted due to an error.
C30 Compiler found
C30 Compiler found
Thanks,
Chad