My OS is Windows 8.1 64-bit and I have MATLAB 2012b 32bit TAH installed. I can not upload a Simulink model without getting this error message:
The call to realtime_make_rtw_hook, during the after_make hook generated the following error: The build failed with the following message: "C:/MATLAB/Targets/R2012b/arduino-1.0/hardware/tools/avr/bin/avr-gcc" -I"C:/MATLAB/Targets/R2012b/arduino/include" -I"C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include" -I"C:/Users/René/Documents/MATLAB/test_rtt" -I"C:/Users/René/Documents/MATLAB" -I"C:/Program Files (x86)/MATLAB/R2012b/extern/include" -I"C:/Program Files (x86)/MATLAB/R2012b/simulink/include" -I"C:/Program Files (x86)/MATLAB/R2012b/rtw/c/src" -I"C:/Program Files (x86)/MATLAB/R2012b/rtw/c/src/ext_mode/common" -I"C:/Program Files (x86)/MATLAB/R2012b/rtw/c/ert" -I"C:/MATLAB/Targets/R2012b/arduino-1.0/hardware/arduino/cores/arduino" -I"C:/MATLAB/Targets/R2012b/arduino-1.0/hardware/arduino/variants/standard" -I"C:/MATLAB/Targets/R2012b/arduino-1.0/libraries/Servo" -mmcu=atmega328p -std=gnu99 -Wall -Wstrict-prototypes -gstabs -Os -D"MODEL=test" -D"NUMST=1" -D"NCSTATES=0" -D"HAVESTDIO=" -D"ONESTEPFCN=0" -D"TERMFCN=1" -D"MAT_FILE=0" -D"MULTI_INSTANCE_CODE=0" -D"INTEGER_CODE=0" -D"MT=0" -D"CLASSIC_INTERFACE=0" -D"TID01EQ=0" -D"F_CPU=16000000" -D"_RUNONTARGETHARDWARE_BUILD_=" -D"_RTT_NUMSERVOS_=0" -c -x none ./HardwareSerial.cpp ./Print.cpp ./WInterrupts.c ./WMath.cpp ./WString.cpp ./new.cpp ./wiring.c ./wiring_analog.c ./wiring_digital.c ./io_wrappers.cpp ./ert_main.c ./test.c ./test_data.c cc1plus.exe: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ cc1plus.exe: warning: command line option "-std=gnu99" is valid for C/ObjC but not for C++ cc1plus.exe: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ cc1plus.exe: warning: command line option "-std=gnu99" is valid for C/ObjC but not for C++ cc1plus.exe: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ cc1plus.exe: warning: command line option "-std=gnu99" is valid for C/ObjC but not for C++ cc1plus.exe: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ cc1plus.exe: warning: command line option "-std=gnu99" is valid for C/ObjC but not for C++ cc1plus.exe: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ cc1plus.exe: warning: command line option "-std=gnu99" is valid for C/ObjC but not for C++ cc1plus.exe: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ cc1plus.exe: warning: command line option "-std=gnu99" is valid for C/ObjC but not for C++ In file included from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./test.h:26, from ./ert_main.c:17: C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:7:22: error: rtwtypes.h: No such file or directory In file included from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:8, from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./test.h:26, from ./ert_main.c:17: C:/MATLAB/Targets/R2012b/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:24:1: warning: "true" redefined In file included from ./test.h:23, from ./ert_main.c:17: ./rtwtypes.h:158:1: warning: this is the location of the previous definition In file included from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:8, from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./test.h:26, from ./ert_main.c:17: C:/MATLAB/Targets/R2012b/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:25:1: warning: "false" redefined In file included from ./test.h:23, from ./ert_main.c:17: ./rtwtypes.h:154:1: warning: this is the location of the previous definition In file included from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./test.h:26, from ./test.c:17: C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:7:22: error: rtwtypes.h: No such file or directory In file included from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:8, from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./test.h:26, from ./test.c:17: C:/MATLAB/Targets/R2012b/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:24:1: warning: "true" redefined In file included from ./test.h:23, from ./test.c:17: ./rtwtypes.h:158:1: warning: this is the location of the previous definition In file included from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:8, from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./test.h:26, from ./test.c:17: C:/MATLAB/Targets/R2012b/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:25:1: warning: "false" redefined In file included from ./test.h:23, from ./test.c:17: ./rtwtypes.h:154:1: warning: this is the location of the previous definition In file included from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./test.h:26, from ./test_data.c:17: C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:7:22: error: rtwtypes.h: No such file or directory In file included from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:8, from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./test.h:26, from ./test_data.c:17: C:/MATLAB/Targets/R2012b/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:24:1: warning: "true" redefined In file included from ./test.h:23, from ./test_data.c:17: ./rtwtypes.h:158:1: warning: this is the location of the previous definition In file included from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:8, from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./test.h:26, from ./test_data.c:17: C:/MATLAB/Targets/R2012b/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:25:1: warning: "false" redefined In file included from ./test.h:23, from ./test_data.c:17: ./rtwtypes.h:154:1: warning: this is the location of the previous definition make: *** [HardwareSerial.o] Error 1 The build process will terminate as a result. Caused by: The build failed with the following message: "C:/MATLAB/Targets/R2012b/arduino-1.0/hardware/tools/avr/bin/avr-gcc" -I"C:/MATLAB/Targets/R2012b/arduino/include" -I"C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include" -I"C:/Users/René/Documents/MATLAB/test_rtt" -I"C:/Users/René/Documents/MATLAB" -I"C:/Program Files (x86)/MATLAB/R2012b/extern/include" -I"C:/Program Files (x86)/MATLAB/R2012b/simulink/include" -I"C:/Program Files (x86)/MATLAB/R2012b/rtw/c/src" -I"C:/Program Files (x86)/MATLAB/R2012b/rtw/c/src/ext_mode/common" -I"C:/Program Files (x86)/MATLAB/R2012b/rtw/c/ert" -I"C:/MATLAB/Targets/R2012b/arduino-1.0/hardware/arduino/cores/arduino" -I"C:/MATLAB/Targets/R2012b/arduino-1.0/hardware/arduino/variants/standard" -I"C:/MATLAB/Targets/R2012b/arduino-1.0/libraries/Servo" -mmcu=atmega328p -std=gnu99 -Wall -Wstrict-prototypes -gstabs -Os -D"MODEL=test" -D"NUMST=1" -D"NCSTATES=0" -D"HAVESTDIO=" -D"ONESTEPFCN=0" -D"TERMFCN=1" -D"MAT_FILE=0" -D"MULTI_INSTANCE_CODE=0" -D"INTEGER_CODE=0" -D"MT=0" -D"CLASSIC_INTERFACE=0" -D"TID01EQ=0" -D"F_CPU=16000000" -D"_RUNONTARGETHARDWARE_BUILD_=" -D"_RTT_NUMSERVOS_=0" -c -x none ./HardwareSerial.cpp ./Print.cpp ./WInterrupts.c ./WMath.cpp ./WString.cpp ./new.cpp ./wiring.c ./wiring_analog.c ./wiring_digital.c ./io_wrappers.cpp ./ert_main.c ./test.c ./test_data.c cc1plus.exe: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ cc1plus.exe: warning: command line option "-std=gnu99" is valid for C/ObjC but not for C++ cc1plus.exe: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ cc1plus.exe: warning: command line option "-std=gnu99" is valid for C/ObjC but not for C++ cc1plus.exe: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ cc1plus.exe: warning: command line option "-std=gnu99" is valid for C/ObjC but not for C++ cc1plus.exe: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ cc1plus.exe: warning: command line option "-std=gnu99" is valid for C/ObjC but not for C++ cc1plus.exe: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ cc1plus.exe: warning: command line option "-std=gnu99" is valid for C/ObjC but not for C++ cc1plus.exe: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ cc1plus.exe: warning: command line option "-std=gnu99" is valid for C/ObjC but not for C++ In file included from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./test.h:26, from ./ert_main.c:17: C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:7:22: error: rtwtypes.h: No such file or directory In file included from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:8, from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./test.h:26, from ./ert_main.c:17: C:/MATLAB/Targets/R2012b/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:24:1: warning: "true" redefined In file included from ./test.h:23, from ./ert_main.c:17: ./rtwtypes.h:158:1: warning: this is the location of the previous definition In file included from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:8, from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./test.h:26, from ./ert_main.c:17: C:/MATLAB/Targets/R2012b/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:25:1: warning: "false" redefined In file included from ./test.h:23, from ./ert_main.c:17: ./rtwtypes.h:154:1: warning: this is the location of the previous definition In file included from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./test.h:26, from ./test.c:17: C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:7:22: error: rtwtypes.h: No such file or directory In file included from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:8, from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./test.h:26, from ./test.c:17: C:/MATLAB/Targets/R2012b/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:24:1: warning: "true" redefined In file included from ./test.h:23, from ./test.c:17: ./rtwtypes.h:158:1: warning: this is the location of the previous definition In file included from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:8, from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./test.h:26, from ./test.c:17: C:/MATLAB/Targets/R2012b/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:25:1: warning: "false" redefined In file included from ./test.h:23, from ./test.c:17: ./rtwtypes.h:154:1: warning: this is the location of the previous definition In file included from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./test.h:26, from ./test_data.c:17: C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:7:22: error: rtwtypes.h: No such file or directory In file included from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:8, from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./test.h:26, from ./test_data.c:17: C:/MATLAB/Targets/R2012b/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:24:1: warning: "true" redefined In file included from ./test.h:23, from ./test_data.c:17: ./rtwtypes.h:158:1: warning: this is the location of the previous definition In file included from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:8, from C:/MATLAB/Targets/R2012b/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./test.h:26, from ./test_data.c:17: C:/MATLAB/Targets/R2012b/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:25:1: warning: "false" redefined In file included from ./test.h:23, from ./test_data.c:17: ./rtwtypes.h:154:1: warning: this is the location of the previous definition make: *** [HardwareSerial.o] Error 1
Any Ideas? I tried this: http://de.mathworks.com/matlabcentral/answers/48865-problem-with-simulink-realtime-target-on-arduino-uno-with-win-7-x64 But it won't help.
Best Answer