Not able to install dspic toolbox... Errors

Sabooh
Posts: 1
Joined: Wed Mar 31, 2010 8:32 am

Not able to install dspic toolbox... Errors

Postby Sabooh » Wed Mar 31, 2010 8:38 am

Hello

I am using
Matlab 2009a
MPLAB IDE 8.46
MPLAB C30 ComboLite_v3_23 (dspic and pic24)

but when i m running
CompileAllModels.m
I am getting following error..

Code: Select all

7x1 struct array with fields:
    name
    date
    bytes
    isdir
    datenum

Warning: File 'Data_Login_Matlab.hex'
not found.
> In CompileAllModels at 8
  In run at 57
Warning: The following error occurred
processing the System Target File '':

Undefined function or method 'ExecBatch'
for input arguments of type 'char'.
 
> In stf2target at 61
  In CompileAllModels at 10
  In run at 57
Evaluating callback 'LoadFcn' for Data_Login_Matlab/Master
Callback: clear InternaldsPICBlockset;       
dsPIC_MASTER_callback() ;           
dsPIC_MASTER_callback_InitMask(gcb);
Warning: block_diagram does not have a
parameter named 'GMAKE_PLACE'.
> In C:\Documents and Settings\Sabooh\My Documents\MATLAB\install_dsPIC_R2009a\blocks\dsPIC_UART_TX_Labview_Matlab_callback.p>dsPIC_UART_TX_Labview_Matlab_callback at 36
  In CompileAllModels at 10
  In run at 57
Warning: Error evaluating 'LoadFcn'
callback of Master block (mask)
'Master'. block_diagram does not have a
parameter named 'GMAKE_PLACE'.
> In C:\Documents and Settings\Sabooh\My Documents\MATLAB\install_dsPIC_R2009a\blocks\dsPIC_UART_TX_Labview_Matlab_callback.p>dsPIC_UART_TX_Labview_Matlab_callback at 36
  In CompileAllModels at 10
  In run at 57
Warning: The following error occurred
processing the System Target File '':

Undefined function or method 'ExecBatch'
for input arguments of type 'char'.
 
> In stf2target at 61
  In C:\Documents and Settings\Sabooh\My Documents\MATLAB\install_dsPIC_R2009a\blocks\dsPIC_ConfigureModelFordsPICTarget.p>dsPIC_ConfigureModelFordsPICTarget at 42
  In CompileAllModels at 11
  In run at 57
Warning: The following error occurred
processing the System Target File '':

Undefined function or method 'ExecBatch'
for input arguments of type 'char'.
 
> In C:\Documents and Settings\Sabooh\My Documents\MATLAB\install_dsPIC_R2009a\blocks\dsPIC_ConfigureModelFordsPICTarget.p>dsPIC_ConfigureModelFordsPICTarget at 42
  In CompileAllModels at 11
  In run at 57
??? Error using ==>
dsPIC_ConfigureModelFordsPICTarget at 51
Error using ==> dsPIC_ConfigRTWOption at
11
block_diagram does not have a parameter
named 'GMAKE_PLACE'.

Error in ==> CompileAllModels at 11
    dsPIC_ConfigureModelFordsPICTarget();
   
Error in ==> run at 57
          evalin('caller', [s ';']);
 
Evaluating callback 'ModelCloseFcn' for Data_Login_Matlab/Master
Callback: clear InternaldsPICBlockset;
>>



Please any body Help me??????????????????????????????

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

Re: Not able to install dspic toolbox... Errors

Postby LubinKerhuel » Wed Mar 31, 2010 12:14 pm

Thanks you very much for your post !

This error comes from correction I made in the last blockset version published two days ago.
it appears from your post that some files are missing in the installer package.

I'll correct it shortly.

I'll post a message once it's done !

Lubin

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

Re: Not able to install dspic toolbox... Errors

Postby LubinKerhuel » Tue Apr 27, 2010 8:47 am

Hello,

I did not post the message, But problem has been solved, please give a try with the latest version (3.2b) : http://www.kerhuel.eu/wiki/Release_Notes

alby.divy
Posts: 4
Joined: Tue Jun 29, 2010 10:44 am

Re: Not able to install dspic toolbox... Errors

Postby alby.divy » Tue Jun 29, 2010 10:46 am

Hi Lubin!I have the same error also with version 3.2b. I'm desperate!
I'm working with Matlab 2010a. Can this cause problems?
Help me!
Thanks

Alb

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

Re: Not able to install dspic toolbox... Errors

Postby LubinKerhuel » Tue Jun 29, 2010 12:11 pm

Hey,

Could you post the entire error message you get (the one within matlab comand windows) ?

Lubin

alby.divy
Posts: 4
Joined: Tue Jun 29, 2010 10:44 am

Re: Not able to install dspic toolbox... Errors

Postby alby.divy » Tue Jun 29, 2010 6:26 pm

Of course! When I compile the examples:

### Successful completion of Real-Time Workshop build procedure for model: Servo_Sinus_x64
C30 Compiler found
C30 Compiler found
Warning: File 'dsPIC_32MX460F512L_Explorer16_HyperSampling.hex' not found.
> In CompileAllModels at 10
Warning: The following error occurred processing the System Target File '':

Undefined function or variable "myData".

> In stf2target at 61
In CompileAllModels at 12
Warning: In instantiating linked block
'dsPIC_32MX460F512L_Explorer16_HyperSampling/Master' : Invalid setting in Master block
(mask) 'Master' for parameter 'MCLR'
> In C:\Users\Alberto Di Vittorio\Documents\MATLAB\blocks\dsPIC_ADC_callback_InitMask.p>dsPIC_ADC_callback_InitMask at 9
In C:\Users\Alberto Di Vittorio\Documents\MATLAB\blocks\dsPIC_UART_TX_Labview_Matlab_callback.p>dsPIC_UART_TX_Labview_Matlab_callback at 36
In CompileAllModels at 12
Warning: Error evaluating 'LoadFcn' callback of Master block (mask) 'Master'.
block_diagram does not have a parameter named 'GMAKE_PLACE'.
> In C:\Users\Alberto Di Vittorio\Documents\MATLAB\blocks\dsPIC_ADC_callback_InitMask.p>dsPIC_ADC_callback_InitMask at 9
In C:\Users\Alberto Di Vittorio\Documents\MATLAB\blocks\dsPIC_UART_TX_Labview_Matlab_callback.p>dsPIC_UART_TX_Labview_Matlab_callback at 36
In CompileAllModels at 12
Warning: block_diagram does not have a parameter named 'GMAKE_PLACE'.
> In C:\Users\Alberto Di Vittorio\Documents\MATLAB\blocks\dsPIC_ADC_callback_InitMask.p>dsPIC_ADC_callback_InitMask at 9
In C:\Users\Alberto Di Vittorio\Documents\MATLAB\blocks\dsPIC_UART_TX_Labview_Matlab_callback.p>dsPIC_UART_TX_Labview_Matlab_callback at 36
In CompileAllModels at 12
Warning: The following error occurred processing the System Target File '':

Undefined function or variable "myData".

> In stf2target at 61
In C:\Users\Alberto Di Vittorio\Documents\MATLAB\blocks\dsPIC_ConfigureModelFordsPICTarget.p>dsPIC_ConfigureModelFordsPICTarget at 40
In CompileAllModels at 13
Warning: The following error occurred processing the System Target File '':

Undefined function or variable "myData".

> In C:\Users\Alberto Di Vittorio\Documents\MATLAB\blocks\dsPIC_ConfigureModelFordsPICTarget.p>dsPIC_ConfigureModelFordsPICTarget at 40
In CompileAllModels at 13
??? Error using ==> dsPIC_ConfigureModelFordsPICTarget at 51
Error using ==> dsPIC_ConfigRTWOption at 11
block_diagram does not have a parameter named 'GMAKE_PLACE'.

Error in ==> CompileAllModels at 13
dsPIC_ConfigureModelFordsPICTarget();


and when I compile my program "prova2":
-- Bypassing matlab internal LCC configuration --
### Creating prova2.mk from C:\Users\Alberto Di Vittorio\Documents\MATLAB\dspic\dspic_pic30_gcc.tmf
### Building prova2: "C:\PROGRA~1\MATLAB\R2010a\bin\win32\gmake" -f prova2.mk GENERATE_REPORT=0 MULTI_INSTANCE_CODE=0 PORTABLE_WORDSIZES=0 GENERATE_ASAP2=0 TMW_EXTMODE_TESTING=0
Impossibile trovare il percorso specificato.
### Real-Time Workshop build procedure for model: 'prova2' aborted due to an error.
C30 Compiler found
C30 Compiler found
C30 Compiler found

alby.divy
Posts: 4
Joined: Tue Jun 29, 2010 10:44 am

Re: Not able to install dspic toolbox... Errors

Postby alby.divy » Tue Jun 29, 2010 6:28 pm

I have also ried with Matlab R2009a and with 2 types of compiler, (also the 3.23 (latest) version of 3.30), but the error is always the same!
Can you help me, Lubin?
Thanks

Alb

Inkspot
Posts: 2
Joined: Wed Jun 30, 2010 8:47 am

Re: Not able to install dspic toolbox... Errors

Postby Inkspot » Wed Jun 30, 2010 8:57 am

I've just spent 3 hours trying to install the dspic toolbox on a machine with R2010a. I had matlab installed on drive D:, and installed the Microchip tools on D: also. This won't work for some reason, lots of errors that look like those posted above occur when trying to compile the examples.

Placing the Microchip on the C: drive seems to have cured the errors (at least the examples compile correctly). I just thought I'd post in case it helps somebody.

Now - I have C32 1.05 and C30 3.23b tools installed - is there any known issues with 3.23b or should I use the last version mentioned in the dsPIC wiki (version 3.12)?

Inkspot
Posts: 2
Joined: Wed Jun 30, 2010 8:47 am

Re: Not able to install dspic toolbox... Errors

Postby Inkspot » Wed Jun 30, 2010 9:25 am

One question, which may be silly (it's a long time since I've used Matlab and it's changed quite a bit).

When I run these examples, there are strings of 'P' and 'T' characters intermingled with the Matlab output in the console window. Is this to be expected (and if so - why?).


Return to “Requirement, Installation & Configuration”

Who is online

Users browsing this forum: No registered users and 1 guest