Compiling problem

Julien1138

Compiling problem

Postby Julien1138 » Tue May 06, 2008 3:37 pm

Hello,

I downloaded the DSPic toolbox for Simulink and I'm having some troubles making it work. I think it has something to do with the generation of the make file.

Here is what is displayed on the Matlab command window when trying to compile the "Servo_Sinus" example:

Code: Select all

### Starting Real-Time Workshop build procedure for model: Servo_Sinus
### Generating code into build directory: C:\dspic_toolbox\examples\Servo_Sinus_dspic\sources
Number of I/O PINs used : 1
Number of I/O PINs used : 1
Number of I/O PINs used : 1
Number of I/O PINs used : 1
Number of I/O PINs used : 1
### Invoking Target Language Compiler on Servo_Sinus.rtw
   tlc
   -r
   C:\dspic_toolbox\examples\Servo_Sinus_dspic\sources\Servo_Sinus.rtw
   C:\dspic_toolbox\dspic\dspic.tlc
   -OC:\dspic_toolbox\examples\Servo_Sinus_dspic\sources
   -IC:\dspic_toolbox\dspic
   -IC:\dspic_toolbox\blocks
   -IC:\dspic_toolbox\examples\Servo_Sinus_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_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=30F3012 -O3 -fschedule-insns -fschedule-insns2"
   -aLDFLAGS="-t --report-mem -Map ../untitled.map --heap 0  -cref"
   -aLDPICTYPE="-T C:\PROGRA~1\MICROC~1\MPLABC~1\support\gld\p30f3012.gld"
   -aLDLIBPIC="C:\PROGRA~1\MICROC~1\MPLABC~1\lib\libpic30-coff.a  C:\PROGRA~1\MICROC~1\MPLABC~1\lib\libp30F3012-coff.a C:\PROGRA~1\MICROC~1\MPLABC~1\lib\libc-coff.a C:\PROGRA~1\MICROC~1\MPLABC~1\lib\libm-coff.a"
   -aPIC_INCLUDES="-IC:\PROGRA~1\MICROC~1\MPLABC~1\include"
   -aPIC_REF="30f3012"
   -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 Servo_Sinus_types.h
### Writing header file Servo_Sinus.h
.
### Writing source file Servo_Sinus.c
### Writing header file Servo_Sinus_private.h
### Writing source file Servo_Sinus_data.c
.
### Writing header file autobuild.h
### Writing source file Servo_Sinus_main.c
### TLC code generation complete.
### Creating project marker file: rtw_proj.tmw
### Evaluating PostCodeGenCommand specified in the model

Companie =

     ''



----------------------------------------------------
Embedded Coder for dsPIC V0.97(01-Apr-2008) for Matlab R2007b.
Licence Accorded to Demonstration Version -


informations available at  http://www.kerhuel.eu

.
### Processing Template Makefile: C:\dspic_toolbox\dspic\dspic_pic30_gcc.tmf
### Wrapping unrecognized make command (angle brackets added)
###    <C:\PROGRA~1\MATLAB\R2007b\bin\win32\gmake>
### in default batch file
### Creating Servo_Sinus.mk from C:\dspic_toolbox\dspic\dspic_pic30_gcc.tmf
### Building Servo_Sinus: .\Servo_Sinus.bat
 
C:\dspic_toolbox\examples\Servo_Sinus_dspic\sources>set MATLAB=C:\Program Files\MATLAB\R2007b 
 
C:\dspic_toolbox\examples\Servo_Sinus_dspic\sources>C:\PROGRA~1\MATLAB\R2007b\bin\win32\gmake -f Servo_Sinus.mk  GENERATE_REPORT=0 MULTI_INSTANCE_CODE=0 PORTABLE_WORDSIZES=0 GENERATE_ASAP2=0 TMW_EXTMODE_TESTING=0 
pic30-gcc  -c -mcpu=30F3012 -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:\dspic_toolbox\examples\Servo_Sinus_dspic\sources -IC:\dspic_toolbox\examples -IC:\PROGRA~1\MATLAB\R2007b\rtw\c\libsrc   -IC:\PROGRA~1\MICROC~1\MPLABC~1\include    Servo_Sinus_data.c
process_begin: CreateProcess(NULL, pic30-gcc -c -mcpu=30F3012 -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:\dspic_toolbox\examples\Servo_Sinus_dspic\sources -IC:\dspic_toolbox\examples -IC:\PROGRA~1\MATLAB\R2007b\rtw\c\libsrc -IC:\PROGRA~1\MICROC~1\MPLABC~1\include Servo_Sinus_data.c, ...) failed.
make (e=2): Le fichier spécifié est introuvable. 
gmake: *** [Servo_Sinus_data.o] Error 2
### Real-Time Workshop build procedure for model: 'Servo_Sinus' aborted due to an error.


Here is the message I get in the Error window:

Error building Real-Time Workshop target for block diagram 'Servo_Sinus'. MATLAB error message:
Error using ==> genMakefileAndBuild at 1070
Error(s) encountered while building model "Servo_Sinus".



Maybe I missed something in the Configuration Parameters...

I've been trying to make it work for two whole days and I'm out of ideas.

Has anyone had a similar problem?

Thanks in advance for your help.

Julien.

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Marseille - France
Contact:

Re: Compiling problem

Postby LubinKerhuel » Tue May 06, 2008 7:48 pm

Hi Julien,

Could you provide your matlab version ; matlab installation directory ;
Could you also check on the forum for similar problems ? (for example, Is the gmake.exe program available from the matlab prompt ? )
try typing !gmake and see what happen...
is the C30 compiler installed ? Where is it installed ? etc...

Lubin

Julien1138
Posts: 2
Joined: Tue May 06, 2008 8:48 pm
Location: Orleans - France

Re: Compiling problem

Postby Julien1138 » Tue May 06, 2008 8:59 pm

Hi again,

Thanks for your quick answer.

I'm using Matlab R2007b. It's installed in the C:\Program Files\MATLAB\R2007b directory.
The C 30 compiler is installed in the C:\Program Files\Microchip\MPLAB C30 directory.
By the way, the last version of C30 being V3.10, some paths are not correct in the Simulink DSPic options. For example, C:\Program Files\Microchip\MPLAB C30\support\gld becomes C:\Program Files\Microchip\MPLAB C30\support\dsPIC30F\gld. I corrected those but it doesn't fix the problem.

I did a quick research for gmake in the forum but didn't find anything.

Thanks again,

Julien.

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Marseille - France
Contact:

Re: Compiling problem

Postby LubinKerhuel » Tue May 06, 2008 9:41 pm

The C30 compiler V3.10 has been released few days ago. I did not test it on the blockset yet. There may be few problems.
I'll try to look at it soon.

Lubin

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Marseille - France
Contact:

Re: Compiling problem

Postby LubinKerhuel » Tue May 20, 2008 5:26 pm

Hi Julien,

The new release (V0.98) of the blockset now support the PIC30 v3.10.
Therefore, you have to install this version of the compiler (available on the website of Microchip) in order to have the blockset working.

Do not forget to add the block "Configure Model for dsPIC" and to double click on it. The model needs to be reconfigured when upgrading to this version.

Lubin

Julien1138
Posts: 2
Joined: Tue May 06, 2008 8:48 pm
Location: Orleans - France

Re: Compiling problem

Postby Julien1138 » Wed May 21, 2008 3:02 pm

Hi,

I tried the new release of your blockset.

However I still have the same error :

Code: Select all

### Generating code into build directory: C:\essais_tlc\dspic\Servo_Sinus_dspic\sources
Number of I/O PINs used : 1
Number of I/O PINs used : 1
Number of I/O PINs used : 1
Number of I/O PINs used : 1
### Invoking Target Language Compiler on Servo_Sinus.rtw
   tlc
   -r
   C:\essais_tlc\dspic\Servo_Sinus_dspic\sources\Servo_Sinus.rtw
   C:\dspic_toolbox\dspic\dspic.tlc
   -OC:\essais_tlc\dspic\Servo_Sinus_dspic\sources
   -IC:\dspic_toolbox\dspic
   -IC:\dspic_toolbox\blocks
   -IC:\essais_tlc\dspic\Servo_Sinus_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_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=30f3012 -O3 -fschedule-insns -fschedule-insns2"
   -aLDFLAGS="-t --report-mem -Map ../untitled.map --heap 0  -cref"
   -aLDPICTYPE="-T C:\PROGRA~1\MICROC~1\MPLABC~1\support\dsPIC30F\gld\p30f3012.gld"
   -aLDLIBPIC="C:\PROGRA~1\MICROC~1\MPLABC~1\lib\libpic30-coff.a  C:\PROGRA~1\MICROC~1\MPLABC~1\lib\dsPIC30F\libp30f3012-coff.a C:\PROGRA~1\MICROC~1\MPLABC~1\lib\libc-coff.a C:\PROGRA~1\MICROC~1\MPLABC~1\lib\libm-coff.a"
   -aPIC_INCLUDES="-I C:\PROGRA~1\MICROC~1\MPLABC~1\include"
   -aPIC_REF="30f3012"
   -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 Servo_Sinus_types.h
### Writing header file Servo_Sinus.h
.
### Writing source file Servo_Sinus.c
### Writing header file Servo_Sinus_private.h
### Writing source file Servo_Sinus_data.c
.
### Writing header file autobuild.h
### Writing source file Servo_Sinus_main.c
### TLC code generation complete.
### Evaluating PostCodeGenCommand specified in the model

Companie =

     ''



----------------------------------------------------
Embedded Coder for dsPIC V0.98(21-May-2008) for Matlab R2007b.
Licence Accorded to Demonstration Version -


informations available at  www.kerhuel.eu

.
### Processing Template Makefile: C:\dspic_toolbox\dspic\dspic_pic30_gcc.tmf
### Wrapping unrecognized make command (angle brackets added)
###    <C:\PROGRA~1\MATLAB\R2007b\bin\win32\gmake>
### in default batch file
### Creating Servo_Sinus.mk from C:\dspic_toolbox\dspic\dspic_pic30_gcc.tmf
### Building Servo_Sinus: .\Servo_Sinus.bat
 
C:\essais_tlc\dspic\Servo_Sinus_dspic\sources>set MATLAB=C:\Program Files\MATLAB\R2007b 
 
C:\essais_tlc\dspic\Servo_Sinus_dspic\sources>C:\PROGRA~1\MATLAB\R2007b\bin\win32\gmake -f Servo_Sinus.mk  GENERATE_REPORT=0 MULTI_INSTANCE_CODE=0 PORTABLE_WORDSIZES=0 GENERATE_ASAP2=0 TMW_EXTMODE_TESTING=0 
pic30-gcc  -c -mcpu=30f3012 -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:\essais_tlc\dspic\Servo_Sinus_dspic\sources -IC:\essais_tlc\dspic -IC:\PROGRA~1\MATLAB\R2007b\rtw\c\libsrc   -I C:\PROGRA~1\MICROC~1\MPLABC~1\include    Servo_Sinus_data.c
process_begin: CreateProcess(NULL, pic30-gcc -c -mcpu=30f3012 -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:\essais_tlc\dspic\Servo_Sinus_dspic\sources -IC:\essais_tlc\dspic -IC:\PROGRA~1\MATLAB\R2007b\rtw\c\libsrc -I C:\PROGRA~1\MICROC~1\MPLABC~1\include Servo_Sinus_data.c, ...) failed.
make (e=2): Le fichier spécifié est introuvable. 
gmake: *** [Servo_Sinus_data.o] Error 2
### Real-Time Workshop build procedure for model: 'Servo_Sinus' aborted due to an error.


I'm going crazy. I can't find any explanation to this error.

when typing "!!C:\PROGRA~1\MATLAB\R2007b\bin\win32\gmake" or "!gmake" in the Matlab prompt I get the following:
gmake: *** No targets specified and no makefile found. Stop.

Is it normal ?

Julien

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Marseille - France
Contact:

Re: Compiling problem

Postby LubinKerhuel » Wed May 21, 2008 5:44 pm

Hi Julien,

Thanks for your interrest for the blockset.

My understanding is than Matlab could not acces to the PIC30 compiler. The compiler path must be added into the environment variables.
To check if Matlab find the C30 compiler, you can type at the matlab prompt :
>> !pic30-gcc
The normal response is :
pic30-coff-gcc.exe: no input files

If you get a message telling that matlab did not recognize the command, you should re-install the compiler and be carefull to add its path into the system (checkbox to check).

I do not think the problem comes from the blockset since it appears during the compilation process.
Btw, let us know... even if it is not working !

Lubin

NigmaTech
Posts: 23
Joined: Wed May 21, 2008 11:53 am

Re: Compiling problem

Postby NigmaTech » Fri Aug 01, 2008 12:54 pm

I've got the same problem. When I want to compile Servo_sinus.mdl Matlab displays:

.
### Processing Template Makefile: D:\Program Files\MATLAB\R2007b\PIC\dspic\dspic_pic30_gcc.tmf
### Wrapping unrecognized make command (angle brackets added)
### <D:\PROGRA~1\MATLAB\R2007b\bin\win32\gmake>
### in default batch file
### Creating Servo_Sinus.mk from D:\Program Files\MATLAB\R2007b\PIC\dspic\dspic_pic30_gcc.tmf
### Building Servo_Sinus: .\Servo_Sinus.bat

D:\Program Files\MATLAB\R2007b\PIC\examples\Servo_Sinus_dspic\sources>set MATLAB=D:\Program Files\MATLAB\R2007b

D:\Program Files\MATLAB\R2007b\PIC\examples\Servo_Sinus_dspic\sources>D:\PROGRA~1\MATLAB\R2007b\bin\win32\gmake -f Servo_Sinus.mk GENERATE_REPORT=0 MULTI_INSTANCE_CODE=0 PORTABLE_WORDSIZES=0 GENERATE_ASAP2=0 TMW_EXTMODE_TESTING=0
pic30-gcc -c -mcpu=30f6010A -O3 -fschedule-insns -fschedule-insns2 -O -I. -I..\.. -ID:\PROGRA~1\MATLAB\R2007b/simulink/include -ID:\PROGRA~1\MATLAB\R2007b/extern/include -ID:\PROGRA~1\MATLAB\R2007b/rtw/c/src -ID:\PROGRA~1\MATLAB\R2007b/rtw/c/ert -ID:\PROGRA~1\MATLAB\R2007b/rtw/c/src/ext_mode/common -ID:\PROGRA~1\MATLAB\R2007b\PIC\examples\Servo_Sinus_dspic\sources -ID:\PROGRA~1\MATLAB\R2007b\PIC\examples -ID:\PROGRA~1\MATLAB\R2007b\rtw\c\libsrc -I C:\PROGRA~1\Microchip\MPLAB C30\include Servo_Sinus_data.c
pic30-coff-gcc.exe: C30\include: No such file or directory
gmake: *** [Servo_Sinus_data.o] Error 255
### Real-Time Workshop build procedure for model: 'Servo_Sinus' aborted due to an error.
>>

I'm using C30 3.10b compiler. I've intalled Matlab twice, 4 times dsPIC blockset and 3 times C30 compiler.

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Marseille - France
Contact:

Re: Compiling problem

Postby LubinKerhuel » Sat Aug 02, 2008 9:15 pm

Hi NigmaTech,

Make sure that the bin directory of the C30 compiler is added in the windows path.
Matlab must find the .exe file present in the C30 repertory because this directory should be in the windows path. It it is not present, you should add it manually !

If too many people get the problem, I will try to modify the blockset to make it easier...

Regards
Lubin

NigmaTech
Posts: 23
Joined: Wed May 21, 2008 11:53 am

Re: Compiling problem

Postby NigmaTech » Sun Aug 03, 2008 11:02 pm

Windows path? I don't know what are you talking about. C30 i installed typically on C:\program files\...

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Marseille - France
Contact:

Re: Compiling problem

Postby LubinKerhuel » Mon Aug 04, 2008 9:32 am

to add the C:\program files\...C30...\bin directory in the path,
have a look on http://www.computerhope.com/issues/ch000549.htm

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Marseille - France
Contact:

Re: Compiling problem

Postby LubinKerhuel » Tue Aug 05, 2008 11:11 am

The next version of the blockset will be able to find the C30 compiler even if it is not added in the windows path.
This version will be released next month : september 2008.

Lubin

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Marseille - France
Contact:

Re: Compiling problem

Postby LubinKerhuel » Wed Aug 13, 2008 8:46 am

Hi,

If the directory you are working in has a very long path, you may get error during the compilation.
The solution is to create a virtual drive with its roots at your directory:

At the matlab prompt, type:
!subst z: "C:\Documents and Settings\Bernard\Mes documents\MATLAB\Very very long path ... \... \.....\lastDirectoryName"

And now go to the directory z:\ and continue to work as usual.

Lubin

arsen
Posts: 12
Joined: Mon Sep 01, 2008 2:37 pm

Re: Compiling problem

Postby arsen » Mon Sep 01, 2008 2:56 pm

hi lubin,
i have exactly same problem ;
and i ve the same output at matlab promt
following;

Code: Select all

>> C30 Compiler found
C30 Compiler found
Model configured...
C30 Compiler found
C30 Compiler found
C30 Compiler found
C30 Compiler found
### Starting Real-Time Workshop build procedure for model: Servo_Sinus
### Generating code into build directory: C:\Users\james\Desktop\some_programes\dspic\examples\Servo_Sinus_dspic\sources
P
T
T
P
Number of I/O PINs used : 1
T
P
Number of I/O PINs used : 1
T
P
T
P
T
P
T
P
T
P
Number of I/O PINs used : 1
T
P
T
P
Number of I/O PINs used : 1
T
P
T
P
T
P
T
### Invoking Target Language Compiler on Servo_Sinus.rtw
tlc
-r
C:\Users\james\Desktop\some_programes\dspic\examples\Servo_Sinus_dspic\sources\Servo_Sinus.rtw
C:\Users\james\Desktop\some_programes\dspic\dspic\dspic.tlc
-OC:\Users\james\Desktop\some_programes\dspic\examples\Servo_Sinus_dspic\sources
-IC:\Users\james\Desktop\some_programes\dspic\dspic
-IC:\Users\james\Desktop\some_programes\dspic\blocks
-IC:\Users\james\Desktop\some_programes\dspic\examples\Servo_Sinus_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=30f3012 -O3 -fschedule-insns -fschedule-insns2"
-aLDFLAGS="-t --report-mem -Map ../untitled.map --heap 0 -cref"
-aLDPICTYPE="-T C:\PROGRA~1\MICROC~1\MPLABC~1\support\dsPIC30F\gld\p30f3012.gld"
-aLDLIBPIC="C:\PROGRA~1\MICROC~1\MPLABC~1\lib\libpic30-coff.a C:\PROGRA~1\MICROC~1\MPLABC~1\lib\dsPIC30F\libp30f3012-coff.a C:\PROGRA~1\MICROC~1\MPLABC~1\lib\libc-coff.a C:\PROGRA~1\MICROC~1\MPLABC~1\lib\libm-coff.a"
-aPIC_INCLUDES="-I C:\PROGRA~1\MICROC~1\MPLABC~1\include"
-aPIC_REF="30f3012"
-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 Servo_Sinus_types.h
### Writing header file Servo_Sinus.h
.
### Writing source file Servo_Sinus.c
### Writing header file Servo_Sinus_private.h
### Writing source file Servo_Sinus_data.c
.
### Writing header file autobuild.h
### Writing source file Servo_Sinus_main.c
### TLC code generation complete.
### Evaluating PostCodeGenCommand specified in the model

Companie =

''



----------------------------------------------------
Embedded Coder for dsPIC V0.98f(09-Aug-2008) for Matlab R2007b.
Licence Accorded to Demonstration Version -


informations available at http://www.kerhuel.eu

.
### Processing Template Makefile: C:\Users\james\Desktop\some_programes\dspic\dspic\dspic_pic30_gcc.tmf
### Wrapping unrecognized make command (angle brackets added)
### <C:\PROGRA~1\MATLAB\R2007b\bin\win32\gmake>
### in default batch file
### Servo_Sinus.mk which is generated from C:\Users\james\Desktop\some_programes\dspic\dspic\dspic_pic30_gcc.tmf is up to date
### Building Servo_Sinus: .\Servo_Sinus.bat

C:\Users\james\Desktop\some_programes\dspic\examples\Servo_Sinus_dspic\sources>set MATLAB=C:\Program Files\MATLAB\R2007b

C:\Users\james\Desktop\some_programes\dspic\examples\Servo_Sinus_dspic\sources>C:\PROGRA~1\MATLAB\R2007b\bin\win32\gmake -f Servo_Sinus.mk GENERATE_REPORT=0 MULTI_INSTANCE_CODE=0 PORTABLE_WORDSIZES=0 GENERATE_ASAP2=0 TMW_EXTMODE_TESTING=0
''pic30-gcc -c -mcpu=30f3012 -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\james\Desktop\some_programes\dspic\examples\Servo_Sinus_dspic\sources -IC:\Users\james\Desktop\some_programes\dspic\examples -IC:\PROGRA~1\MATLAB\R2007b\rtw\c\libsrc -I C:\PROGRA~1\MICROC~1\MPLABC~1\include Servo_Sinus_data.c
Microchip MPLAB C30 License Manager Version v3_11 (Build Date Jul 16 2008).
Copyright (c) 2008 Microchip Technology Inc. All rights reserved.
The MPLAB C30 license manager command-line is invalid.
pic30-coff-cc1.exe: error: License manager failure, please contact your support
representative or http://support.microchip.com
gmake: *** [Servo_Sinus_data.o] Error 255
### Real-Time Workshop build procedure for model: 'Servo_Sinus' aborted due to an error.
C30 Compiler found
C30 Compiler found

i ve read the forum carefully and i did exactly every process
i ve add the path to windows C:\Program Files\Microchip\MPLAB C30\bin
and i am using the last version of the boclset 0.98
since 2 days i am dealing with this problem an i gonna be crazy:))
please help
thanx for now
also i did following command and feedback is true
!pic30-gcc
pic30-coff-gcc.exe: no input files

please help wishes
arsen

arsen
Posts: 12
Joined: Mon Sep 01, 2008 2:37 pm

Re: Compiling problem

Postby arsen » Mon Sep 01, 2008 3:23 pm

and i am using matlab version 2007b

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Marseille - France
Contact:

Re: Compiling problem

Postby LubinKerhuel » Mon Sep 01, 2008 3:42 pm

Hi arsen,

The blockset find the C30 compiler. The problem is out there.

It seems to be a licence problem about the C30 compiler. Are you using a version for student ?
I did not test yet the version 3.11 of C30 thus I am still using the 3.10.

Did you install the free C30 compiler for student ?
Can you manage to compile a project with the C30 version you install ?

The question then is :
Does the free C30 version 3.11 not work as soon as an unsupported optimisation option is used ?
In that case, I will add the possibility to add/remove compilation options...

Lubin

arsen
Posts: 12
Joined: Mon Sep 01, 2008 2:37 pm

Re: Compiling problem

Postby arsen » Mon Sep 01, 2008 4:05 pm

hi Lubin
thanx for quick response:)
i am using MPLAB_C_dsPICStudent_v3_11 that i ve downloaded from 'http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en534868'
and i could not compile any project even an example project servo_sinus
wishes
arsen

arsen
Posts: 12
Joined: Mon Sep 01, 2008 2:37 pm

Re: Compiling problem

Postby arsen » Tue Sep 02, 2008 1:14 pm

hi lubin
today ive download c compiler v3.11 again and installed , unfortunately i ve still got the same prob:((
wishes
arsen

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Marseille - France
Contact:

Re: Compiling problem

Postby LubinKerhuel » Tue Sep 02, 2008 7:05 pm

I tested the C30 v3.11(b) version for students and it seems to works properly. (test with matlab 2006a)

could you try to place a block "Configure Model for dsPIC" in your model, dbl click on it and then try to compile ?

If you get a problem, try to compile a simple project in the microchip MPLAB IDE. If it does not work, you have an installation problem for the C30 compiler.

arsen
Posts: 12
Joined: Mon Sep 01, 2008 2:37 pm

Re: Compiling problem

Postby arsen » Wed Sep 03, 2008 8:43 am

thanx Lubin i will do ur advise properly by th way i am using matlab 2007b version . and i would like to explain all the procedure step by step
my model name is first.mdl
i have double click on my model in order to open then i ve got following from matlab promt

Code: Select all

C30 Compiler found
Warning: dsPICdrivers.mdl, line 52: block_diagram does not have a parameter named 'CovModelRefEnable'.
> In general\private\openmdl at 13
  In open at 148
  In uiopen at 196
Warning: Error evaluating 'LoadFcn' callback of Master block (mask) 'Master'. Error using ==>
dsPIC_ConfigRTWOption at 98
The *System Target File must be defined to dsPIC Real Time workshop (Simulation ==> Configuration Parameters
==> Real Time workshop.
> In general\private\openmdl at 13
  In open at 148
  In uiopen at 196


then as you said i ve placed th block Configure Model for dsPIC and double click on it then

Code: Select all

P
T
C30 Compiler found
C30 Compiler found
Model configured...

i ve got this from matlab promt
after that ive started to build the project and

Code: Select all

C30 Compiler found
C30 Compiler found
C30 Compiler found
C30 Compiler found
### Starting Real-Time Workshop build procedure for model: first
### Generating code into build directory: C:\Users\james\Desktop\cemal\stateflow\some_samples\metanet\traffic_control\embedded\PIC\first_dspic\sources
P
P
Number of I/O PINs used : 1
T
P
T
P
T
P
Number of I/O PINs used : 1
T
T
T
P
Number of I/O PINs used : 1
T
P
T
P
T
P
T
P
Number of I/O PINs used : 1
T
P
T
P
T
P
T
P
T
P
Number of I/O PINs used : 1
T
P
T
P
T
### Invoking Target Language Compiler on first.rtw
   tlc
   -r
   C:\Users\james\Desktop\cemal\stateflow\some_samples\metanet\traffic_control\embedded\PIC\first_dspic\sources\first.rtw
   C:\Users\james\Desktop\some_programes\dspic\dspic\dspic.tlc
   -OC:\Users\james\Desktop\cemal\stateflow\some_samples\metanet\traffic_control\embedded\PIC\first_dspic\sources
   -IC:\Users\james\Desktop\some_programes\dspic\dspic
   -IC:\Users\james\Desktop\some_programes\dspic\blocks
   -IC:\Users\james\Desktop\cemal\stateflow\some_samples\metanet\traffic_control\embedded\PIC\first_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=30f3012 -O3 -fschedule-insns -fschedule-insns2"
   -aLDFLAGS="-t --report-mem -Map ../untitled.map --heap 0  -cref"
   -aLDPICTYPE="-T C:\PROGRA~1\MICROC~1\MPLABC~1\support\dsPIC30F\gld\p30f3012.gld"
   -aLDLIBPIC="C:\PROGRA~1\MICROC~1\MPLABC~1\lib\libpic30-coff.a  C:\PROGRA~1\MICROC~1\MPLABC~1\lib\dsPIC30F\libp30f3012-coff.a C:\PROGRA~1\MICROC~1\MPLABC~1\lib\libc-coff.a C:\PROGRA~1\MICROC~1\MPLABC~1\lib\libm-coff.a"
   -aPIC_INCLUDES="-I C:\PROGRA~1\MICROC~1\MPLABC~1\include"
   -aPIC_REF="30f3012"
   -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 first_types.h
### Writing header file first.h
.
### Writing source file first.c
### Writing header file first_private.h
### Writing source file first_data.c
.
### Writing header file autobuild.h
### Writing source file first_main.c
### TLC code generation complete.
### Evaluating PostCodeGenCommand specified in the model

Companie =

     ''



----------------------------------------------------
Embedded Coder for dsPIC V0.98f(09-Aug-2008) for Matlab R2007b.
Licence Accorded to Demonstration Version -


informations available at  www.kerhuel.eu

.
### Processing Template Makefile: C:\Users\james\Desktop\some_programes\dspic\dspic\dspic_pic30_gcc.tmf
### Wrapping unrecognized make command (angle brackets added)
###    <C:\PROGRA~1\MATLAB\R2007b\bin\win32\gmake>
### in default batch file
### first.mk which is generated from C:\Users\james\Desktop\some_programes\dspic\dspic\dspic_pic30_gcc.tmf is up to date
### Building first: .\first.bat
 
C:\Users\james\Desktop\cemal\stateflow\some_samples\metanet\traffic_control\embedded\PIC\first_dspic\sources>set MATLAB=C:\Program Files\MATLAB\R2007b 
 
C:\Users\james\Desktop\cemal\stateflow\some_samples\metanet\traffic_control\embedded\PIC\first_dspic\sources>C:\PROGRA~1\MATLAB\R2007b\bin\win32\gmake -f first.mk  GENERATE_REPORT=0 MULTI_INSTANCE_CODE=0 PORTABLE_WORDSIZES=0 GENERATE_ASAP2=0 TMW_EXTMODE_TESTING=0 
''pic30-gcc  -c -mcpu=30f3012 -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\james\Desktop\cemal\stateflow\some_samples\metanet\traffic_control\embedded\PIC\first_dspic\sources -IC:\Users\james\Desktop\cemal\stateflow\some_samples\metanet\traffic_control\embedded\PIC -IC:\PROGRA~1\MATLAB\R2007b\rtw\c\libsrc   -I C:\PROGRA~1\MICROC~1\MPLABC~1\include    dsPIC_OutputCompare_Interrupt.c
Microchip MPLAB C30 License Manager Version v3_11 (Build Date Jul 16 2008).
Copyright (c) 2008 Microchip Technology Inc. All rights reserved.
The MPLAB C30 license manager command-line is invalid.
pic30-coff-cc1.exe: error: License manager failure, please contact your support
   representative or http://support.microchip.com
gmake: *** [dsPIC_OutputCompare_Interrupt.o] Error 255
### Real-Time Workshop build procedure for model: 'first' aborted due to an error.
C30 Compiler found
C30 Compiler found

unfortunately i ve got the same error:( i am uploading my project maybe works with ur c30 compiler
the interesting thing here is i ve tried to compile default examples from folder also did not worked( sinus_servo)
anyway thank you very much that u spend time on it but beleive me i am getting crazy
thanx alot again
wishes
arsen
Attachments
first.mdl
my model
(23.82 KiB) Downloaded 216 times

arsen
Posts: 12
Joined: Mon Sep 01, 2008 2:37 pm

Re: Compiling problem

Postby arsen » Wed Sep 03, 2008 9:08 am

and also i ve found some licence problem s from micro chip forum web site http://forum.microchip.com/tm.aspx?m=19 ... id&#193512
there one user, jasonk, says( at the end of the window)
'kmougiakos,

Assuming that you are using the student edition, you can disable the "Make warnings into errors (-Werror)" project build option. You are getting a warning that the student edition is now feature limited and that warning is halting the build process because of that option.
'
mybe i ve got to do 'the student edition, you can disable the "Make warnings into errors (-Werror)" project build option'
maybe problem is that ? should i do this action if yes , how?
what do u think Lubin?

wishes arsen

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Marseille - France
Contact:

Re: Compiling problem

Postby LubinKerhuel » Wed Sep 03, 2008 9:25 pm

Hi arsen,

I added the block Configure Model for dsPIC and dbl click on it before compiling your model without problems.

You are describing a license problem for the C30 compiler. My guess is that your perhaps updated an older version of C30 and something get wrong. If I were you, I will try to remove the C30 compiler (remove also manually files that may keep in place, and try to clean up the windows registry ; maybe C30 has placed an entry in the registry)
Anyway, you will certainly find better answer on microchip forum.

If you want to add options at the command line, you can try to do so from simulink : Simulation ==> Configuration Parameters ==> Real-Time Workshop ==> dsPIC Options
Be aware however that theses options lines are parsed and modified automatically by the blockset (check that your modifications are keept)

Lubin

arsen
Posts: 12
Joined: Mon Sep 01, 2008 2:37 pm

Re: Compiling problem

Postby arsen » Thu Sep 04, 2008 1:07 pm

Hi Lubin,
thanx alot again because u are spending ur valuable time for that for mee thanx and sorry:)
any way i will do the procedure that u told me today and i will let u know what happened
by the way yesterday i ve check the box generate ony code option under Simulation ==> Configuration Parameters ==> Real-Time Workshop then i could generate the c code without problem , as far as i understood as u said the problem is is creating the hex and coff file, any way yesterday i ve mentioned the same problem at microchip forum and added http://forum.microchip.com/tm.aspx?m=355914
thanx alot
( i am using visa home premium edition this could not be a problem or??)
best wishes
arsen

arsen
Posts: 12
Joined: Mon Sep 01, 2008 2:37 pm

Re: Compiling problem

Postby arsen » Thu Sep 04, 2008 2:36 pm

Hİİİİİİ Lubin,
millions times thanx , i ve deleted every registry entry of microchip and mplab manualyy and reinstall again and works fine super thanx,
now i can start to design and complee thanx alot since 1 week i got this problem and i was neary getting crazy
wishes
arsen
p.s: during the design and compilation may i ask questions when i got problems in future?:==))

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Marseille - France
Contact:

Re: Compiling problem

Postby LubinKerhuel » Thu Sep 04, 2008 10:37 pm

Hi Arsen,

I'm Glad you finally make it!

arsen wrote:during the design and compilation may i ask questions when i got problems in future?:==))

any question related to the dsPIC embedded coder for Simulink are welcome.

Just a remark : when you reply, just click on reply at the bottom. The quote button is not the good way to respond (I just clean up the messages you posted)

arsen
Posts: 12
Joined: Mon Sep 01, 2008 2:37 pm

Re: Compiling problem

Postby arsen » Fri Sep 05, 2008 8:31 am

hi Lubin ,
i am glad too thanx again i am sure that i am gonna have problems in future
have a nice day :D :P :lol: 8)
wishes
arsen

gdiana
Posts: 4
Joined: Sat Jul 05, 2008 11:41 am

Re: Compiling problem

Postby gdiana » Mon Sep 08, 2008 4:55 am

The MPLAB C30 license manager command-line is invalid.
pic30-coff-cc1.exe: error: License manager failure, please contact your support
representative or http://support.microchip.com
gmake: *** [Servo_Sinus_data.o] Error 255


Hi,

I has a similar error previously. I found the problem to be the use of the incorrect C30 compiler. Microchip has a separate C30 compiler for both the PIC24 and dsPIC. If one installs the PIC24 and tries to compile for the dsPIC you get the abovementioned error. The same the other way around. Unfortunately, the error message above does not identify which C30 (PIC24 or dsPIC) it is using nor the version.

I have also reported the problem with the compiler paths not automatically being added to the windows path to Microchip. In some cases when one does a manual install of either the PIC24 and dsPIC C30 compilers it does NOT add to the windows path.

Lubin I suggest that as part of the installation process you generate a message to remind new users of this potential problem. I know you have added this to your installation guide process but it appears not all people READ IT. Maybe a warning just prior to download and/or just after installation?

Kind regards


Greg Diana

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Marseille - France
Contact:

Re: Compiling problem

Postby LubinKerhuel » Tue Sep 09, 2008 10:40 pm

Thanks gdiana for the good idea.

I added a message at the end of the installation script.
It will be available in the next release (following 0.98fc).

Lubin

arsen
Posts: 12
Joined: Mon Sep 01, 2008 2:37 pm

compiler path

Postby arsen » Tue Oct 28, 2008 3:49 pm

hi Lubin :)
i ve formatted my pc and installed matlab mplab compiler ans 0.98ef again everything works fine no prob. but since i ve installed mplab under directory d then i ve installed compiler c30 also same directory where mplab exists ( D:\Program Files\Microchip\MPLAB C30)
when i ve tried to open my project following warning appears

Code: Select all

= C30 directory not found ============================================
======================================================================
======================================================================
======================================================================
Enter C30 compiler directory (like C:\Program Files\Microchip\MPLAB C30
 (You have to do it twice, copy-past)

then i ve done what u wrote there and entered the right path

Code: Select all

 ---->D:\Program Files\Microchip\MPLAB C30
C30 Compiler found

then my model opens correctly fine but i had to do this prosess all the time whenever i open my model unfortunately. then i ve added the path manually ( D:\Program Files\Microchip\MPLAB C30) to the simulation-->configuration parameters-->dspic options-->compiler path by my self unfortunately this did not work also so i had to type the path to the matlab prompt everytime when i would like to open my model. Do u have any ideas??
wishes thanx
arsen

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Marseille - France
Contact:

Re: Compiling problem

Postby LubinKerhuel » Tue Oct 28, 2008 8:11 pm

Hi Arsen,

It is not obvious to correct that.
Btw, I added the D:\Program Files\Microchip\MPLAB C30 directory to the search directory and it may solve your problem (look for the version update comming very soon). For others with similar problems, I suggest to make a copy of the MPLAB C30 directory in the C:\Program Files\Microchip\ directory ! that makes everything easy !

Lubin


Return to “Requirement, Installation & Configuration”

Who is online

Users browsing this forum: No registered users and 0 guests