Compilation error. Please help.
Posted: 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
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