Compilation error. Please help.

Post Reply
gksinghal
Posts: 1
Joined: Thu May 07, 2009 9:40 pm

Compilation error. Please help.

Post by gksinghal » Thu May 07, 2009 9:46 pm

Hello,

I am using Matlab 2008b, C30 COMPILER, DSPic 30f2012. I have all required toolboxes installed. I run into error when I try to compile the simulink blocks. The simulink block has the dsPIC Master block, UART config block and Tx block.

Thanks in advance

Girish



### Loading TLC function libraries

.....
### Initial pass through model to cache user defined code
### Caching model source code
Error: File: C:\LOCAL\Motor Control\Simulink\Blocksets\blocks\dsPIC_MASTER.tlc Line: 106 Column: 62
The specified index (2) was out of the range 0 - 1
Error: File: C:\LOCAL\Motor Control\Simulink\Blocksets\blocks\dsPIC_MASTER.tlc Line: 106 Column: 62
The specified index (3) was out of the range 0 - 1
Error: File: C:\LOCAL\Motor Control\Simulink\Blocksets\blocks\dsPIC_MASTER.tlc Line: 106 Column: 62
The specified index (4) was out of the range 0 - 1
Error: File: C:\LOCAL\Motor Control\Simulink\Blocksets\blocks\dsPIC_MASTER.tlc Line: 106 Column: 62
The specified index (5) was out of the range 0 - 1
### Real-Time Workshop build procedure for model: 'project1' aborted due to an error.
C30 Compiler found
C30 Compiler found
C30 Compiler found

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

Re: Compilation error. Please help.

Post by LubinKerhuel » Thu May 07, 2009 10:26 pm

Dear Girish,

I will probably not be available for the next three day.
Anyway, could you try to compile one of the example in the example repertory ?

On your model, Check that you selected one microcontroller in the Master block configuration

Then, if you still get in trouble, could you post your model on this forum ? I'll try to look at that.

Lubin

Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests