Error
Posted: Sun Jul 12, 2009 10:40 pm
Hi.
I am trying to compile the dsPIC_33f_Explorer16, but I run into an error. I am not sure how to solve this problem.
Any help is much appreciated.
Thanks,
Tina
I get this message error:
Error building Real-Time Workshop target for block diagram 'dsPIC_33f_Explorer16'. MATLAB error message:
Error using ==> RTW.genMakefileAndBuild
Error(s) encountered while building model "dsPIC_33f_Explorer16".
I get the following message:
I am trying to compile the dsPIC_33f_Explorer16, but I run into an error. I am not sure how to solve this problem.
Any help is much appreciated.
Thanks,
Tina
I get this message error:
Error building Real-Time Workshop target for block diagram 'dsPIC_33f_Explorer16'. MATLAB error message:
Error using ==> RTW.genMakefileAndBuild
Error(s) encountered while building model "dsPIC_33f_Explorer16".
I get the following message:
Code: Select all
Warning: Error evaluating 'LoadFcn' callback of Master block (mask) 'Master'. Error using ==> dsPIC_ConfigRTWOption
The *System Target File must be defined to dsPIC Real Time workshop (Simulation ==> Configuration Parameters ==> Real Time workshop.
> In load_system at 44
In libbrowse>i_LoadSys at 135
In libbrowse>LoadLibrary at 114
In libbrowse at 24
C30 Compiler found
Warning: In instantiating linked block 'dsPIC_33f_Explorer16/Master' : Invalid setting in Master block (mask) 'Master' for parameter 'MCLR'.
> In C:\Program Files\MATLAB\R2006a\install_dspic_r2006a\blocks\dsPIC_ADC_callback_InitMask.p>dsPIC_ADC_callback_InitMask at 9
In C:\Program Files\MATLAB\R2006a\install_dspic_r2006a\blocks\dsPIC_UART_TX_Labview_Matlab_callback.p>dsPIC_UART_TX_Labview_Matlab_callback at 36
In general\private\openmdl at 13
In open at 141
In uiopen at 181
PTPNumber of I/O PINs used : 6
TPTPTPTTPTPTC30 Compiler found
C30 Compiler found
Model configured...
C30 Compiler found
C30 Compiler found
### Starting Real-Time Workshop build procedure for model: dsPIC_33f_Explorer16
C30 Compiler found
### Generating code into build directory: C:\Program Files\MATLAB\R2006a\work\dsPIC_33f_Explorer16_dspic\sources
PNumber of I/O PINs used : 6
TWarning: Source 'dsPIC_33f_Explorer16/Digital Input' specifies that its sample time (-1) is back-inherited. You should explicitly specify the sample time of sources. You can disable this diagnostic by setting the 'Source block specifies -1 sample time' diagnostic to 'none' in the Sample Time group on the Diagnostics pane of the Configuration Parameters dialog box.
Warning: Parameter precision loss occurred for 'Value'. The value you specifed cannot be represented exactly using the parameter's run-time data type. A small quantization error has occurred. You can control this diagnostic on the Diagnostics pane of the Configuration Parameters dialog. This originated from 'dsPIC_33f_Explorer16/Compare To Constant/Constant'.
### Invoking Target Language Compiler on dsPIC_33f_Explorer16.rtw
tlc
-r
C:\Program Files\MATLAB\R2006a\work\dsPIC_33f_Explorer16_dspic\sources\dsPIC_33f_Explorer16.rtw
C:\Program Files\MATLAB\R2006a\install_dspic_r2006a\dspic\dspic.tlc
-OC:\Program Files\MATLAB\R2006a\work\dsPIC_33f_Explorer16_dspic\sources
-IC:\Program Files\MATLAB\R2006a\install_dspic_r2006a\dspic
-IC:\Program Files\MATLAB\R2006a\install_dspic_r2006a\blocks
-IC:\Program Files\MATLAB\R2006a\toolbox\simulink\fixedandfloat\tlc_c
-IC:\Program Files\MATLAB\R2006a\work\dsPIC_33f_Explorer16_dspic\sources\tlc
-IC:\Program Files\MATLAB\R2006a\rtw\c\tlc\mw
-IC:\Program Files\MATLAB\R2006a\rtw\c\tlc\lib
-IC:\Program Files\MATLAB\R2006a\rtw\c\tlc\blocks
-IC:\Program Files\MATLAB\R2006a\rtw\c\tlc\fixpt
-IC:\Program Files\MATLAB\R2006a\stateflow\c\tlc
-aEnforceIntegerDowncast=0
-aFoldNonRolledExpr=1
-aInlineInvariantSignals=1
-aInlineParameters=1
-aLocalBlockOutputs=1
-aRollThreshold=5
-aGenerateReport=1
-aGenCodeOnly=0
-aRTWVerbose=1
-aIncludeHyperlinkInReport=1
-aLaunchReport=1
-aForceParamTrailComments=0
-aGenerateComments=1
-aIgnoreCustomStorageClasses=0
-aIncHierarchyInIds=0
-aMaxRTWIdLen=31
-aShowEliminatedStatements=0
-aPrefixModelToSubsysFcnNames=1
-aIncDataTypeInIds=0
-aInsertBlockDesc=0
-aSimulinkBlockComments=1
-aInlinedPrmAccess="Literals"
-aTargetFcnLib="ansi_tfl_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
-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\R2006a\rtw\bin\win32\gmake"
-aOPTIM_GCC="-mcpu=33fJ256GP710 -O3 -fschedule-insns -fschedule-insns2"
-aLDFLAGS="-t --report-mem -Map ../untitled.map --heap 0 -cref"
-aLDPICTYPE="-T C:\PROGRA~1\MICROC~1\MPLABC~3\support\dsPIC33F\gld\p33fJ256GP710.gld"
-aLDLIBPIC="C:\PROGRA~1\MICROC~1\MPLABC~3\lib\libpic30-coff.a C:\PROGRA~1\MICROC~1\MPLABC~3\lib\dsPIC33F\libp33fJ256GP710-coff.a C:\PROGRA~1\MICROC~1\MPLABC~3\lib\libc-coff.a C:\PROGRA~1\MICROC~1\MPLABC~3\lib\libm-coff.a"
-aPIC_INCLUDES="-I C:\PROGRA~1\MICROC~1\MPLABC~3\include"
-aPIC_REF="33fJ256GP710"
-aGCCPATH=""
-p10000
### Loading TLC function libraries
....
### Initial pass through model to cache user defined code
..
### Caching model source code
........................
### Writing main
### Writing header file dsPIC_33f_Explorer16_types.h
.
### Writing header file dsPIC_33f_Explorer16.h
### Writing source file dsPIC_33f_Explorer16.c
### Writing header file dsPIC_33f_Explorer16_private.h
.
### Writing header file autobuild.h
### Writing source file dsPIC_33f_Explorer16_main.c
### TLC code generation complete.
### Creating HTML report file dsPIC_33f_Explorer16_codegen_rpt.html
.### Creating project marker file: rtw_proj.tmw
### Evaluating PostCodeGenCommand specified in the model
----------------------------------------------------
----------------------------------------------------
Embedded Coder for dsPIC V0.99g(08-Jul-2009) for Matlab R2006a.
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:\Program Files\MATLAB\R2006a\install_dspic_r2006a\dspic\dspic_pic30_gcc.tmf
### Creating dsPIC_33f_Explorer16.mk from C:\Program Files\MATLAB\R2006a\install_dspic_r2006a\dspic\dspic_pic30_gcc.tmf
### Building dsPIC_33f_Explorer16: .\dsPIC_33f_Explorer16.bat
C:\Program Files\MATLAB\R2006a\work\dsPIC_33f_Explorer16_dspic\sources>set MATLAB=C:\Program Files\MATLAB\R2006a
C:\Program Files\MATLAB\R2006a\work\dsPIC_33f_Explorer16_dspic\sources>"C:\PROGRA~1\MATLAB\R2006a\rtw\bin\win32\gmake" -f dsPIC_33f_Explorer16.mk GENERATE_REPORT=1 ADD_MDL_NAME_TO_GLOBALS=1
pic30-gcc -c -mcpu=33fJ256GP710 -O3 -fschedule-insns -fschedule-insns2 -O -I. -I..\.. -IC:\PROGRA~1\MATLAB\R2006a/simulink/include -IC:\PROGRA~1\MATLAB\R2006a/extern/include -IC:\PROGRA~1\MATLAB\R2006a/rtw/c/src -IC:\PROGRA~1\MATLAB\R2006a/rtw/c/ert -IC:\PROGRA~1\MATLAB\R2006a/rtw/c/src/ext_mode/common -IC:\PROGRA~1\MATLAB\R2006a\work\dsPIC_33f_Explorer16_dspic\sources -IC:\PROGRA~1\MATLAB\R2006a\work -IC:\PROGRA~1\MATLAB\R2006a\INSTAL~1\examples -IC:\PROGRA~1\MATLAB\R2006a\work -IC:\PROGRA~1\MATLAB\R2006a\work\DSPIC_~1\sources -IC:\PROGRA~1\MATLAB\R2006a\rtw\c\libsrc -IC:\PROGRA~1\MATLAB\R2006a\rtw\c\libsrc -I C:\PROGRA~1\MICROC~1\MPLABC~3\include dsPIC_33f_Explorer16_main.c
dsPIC_33f_Explorer16_main.c: In function '_FICD':
dsPIC_33f_Explorer16_main.c:39: error: syntax error before '{' token
dsPIC_33f_Explorer16_main.c:45: error: syntax error before 'dsPIC_33f_Explorer16_SetEventsForThisBaseStep'
gmake: *** [dsPIC_33f_Explorer16_main.o] Error 0xff
C30 Compiler found
C30 Compiler found