I was trying to build the example MDLs from your toolbox but got the same error everytime.
Even when I use an empty MDL with just the master block in I get it.
Here the last part of my screendump describing the problem:
Code: Select all
### Processing Template Makefile: D:\microchip\MatlabSimulink\dspic\dspic_pic30_gcc.tmf
### Creating untitled.mk from D:\microchip\MatlabSimulink\dspic\dspic_pic30_gcc.tmf
### Building untitled: .\untitled.bat
D:\microchip\MatlabSimulink\projects\1. testbuild\untitled_dspic\sources>set MATLAB=D:\MATLAB\R2007b
D:\microchip\MatlabSimulink\projects\1. testbuild\untitled_dspic\sources>"D:\MATLAB\R2007b\bin\win32\gmake" -f untitled.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..\.. -ID:\MATLAB\R2007b/simulink/include -ID:\MATLAB\R2007b/extern/include -ID:\MATLAB\R2007b/rtw/c/src -ID:\MATLAB\R2007b/rtw/c/ert -ID:\MATLAB\R2007b/rtw/c/src/ext_mode/common -ID:\MICROC~1\MATLAB~1\projects\1074C~1.TES\UNTITL~1\sources -ID:\MICROC~1\MATLAB~1\projects\1074C~1.TES -ID:\MATLAB\R2007b\rtw\c\libsrc -I C:\MICROC~1\MPLABC~2\include untitled_main.c
''pic30-gcc -c -mcpu=30f3012 -O3 -fschedule-insns -fschedule-insns2 -O -I. -I..\.. -ID:\MATLAB\R2007b/simulink/include -ID:\MATLAB\R2007b/extern/include -ID:\MATLAB\R2007b/rtw/c/src -ID:\MATLAB\R2007b/rtw/c/ert -ID:\MATLAB\R2007b/rtw/c/src/ext_mode/common -ID:\MICROC~1\MATLAB~1\projects\1074C~1.TES\UNTITL~1\sources -ID:\MICROC~1\MATLAB~1\projects\1074C~1.TES -ID:\MATLAB\R2007b\rtw\c\libsrc -I C:\MICROC~1\MPLABC~2\include untitled.c
''pic30-gcc -c -mcpu=30f3012 -O3 -fschedule-insns -fschedule-insns2 -O -I. -I..\.. -ID:\MATLAB\R2007b/simulink/include -ID:\MATLAB\R2007b/extern/include -ID:\MATLAB\R2007b/rtw/c/src -ID:\MATLAB\R2007b/rtw/c/ert -ID:\MATLAB\R2007b/rtw/c/src/ext_mode/common -ID:\MICROC~1\MATLAB~1\projects\1074C~1.TES\UNTITL~1\sources -ID:\MICROC~1\MATLAB~1\projects\1074C~1.TES -ID:\MATLAB\R2007b\rtw\c\libsrc -I C:\MICROC~1\MPLABC~2\include D:\MATLAB\R2007b\rtw\c\libsrc/rt_matmultandinccc_dbl.c
D:\MATLAB\R2007b\rtw\c\libsrc/rt_matmultandinccc_dbl.c: In function 'rt_MatMultAndIncCC_Dbl':
D:\MATLAB\R2007b\rtw\c\libsrc/rt_matmultandinccc_dbl.c:54: error: unrecognizable insn:
(0x00f5a7f8) (insn 233 75 76 6 (set (reg:SF 2 w2 [ A2_val$im ])
(mem/s/j:SF (plus:P16APSV (reg/v/f:P16APSV 14 w14 [orig:57 A2 ] [57])
(const_int 4 [0x4])) [0 <variable>.im+0 S4 A16])) -1 (nil)
(nil))
D:\MATLAB\R2007b\rtw\c\libsrc/rt_matmultandinccc_dbl.c:54: internal compiler error: in extract_insn, at recog.c:2020
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://support.microchip.com> for instructions.
gmake: *** [rt_matmultandinccc_dbl.o] Error 255
### Real-Time Workshop build procedure for model: 'untitled' aborted due to an error.
======================================================================
= C30 directory not found ============================================
======================================================================
======================================================================
======================================================================
Enter C30 compiler directory (like C:\Program Files\Microchip\MPLAB C30
(You have to do it twice, copy-past)
---->C:\Microchipv830\MPLAB C30
C30 Compiler found
C30 Compiler found
I am using a fresh Matlab R2007b installation + RTW and embedded coder + C30ComboLite_v3_22 + blockset v201
I get the following from my workspace:
Code: Select all
>> !pic30-gcc
pic30-coff-gcc.exe: no input files
>> !gmake
gmake: *** No targets specified and no makefile found. Stop.
>>
Roel Leenen
PS: good produkt, good docu, good forum. Really motivates me to get started