Page 1 of 1

Compilation error. Please help.

Posted: Thu May 07, 2009 9:46 pm
by gksinghal
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

Re: Compilation error. Please help.

Posted: Thu May 07, 2009 10:26 pm
by LubinKerhuel
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