Problema con Arduino Uno e Matlab

Ciao a tutti, ho un problema con l'upload dello schema di MATLAB sulla scheda arduino uno, ed è il seguente:

Message: Model error
Reported by: Simulink

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/SupportPackages/R2013a/arduino-1.0/hardware/tools/avr/bin/avr-gcc" -I"C:/MATLAB/SupportPackages/R2013a/arduino/include" -I"C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include" -I"C:/Users/UTENTE/Università/Sistemi dinamici/Arduino/ProvaLed_rtt" -I"C:/Users/UTENTE/Università/Sistemi dinamici/Arduino" -I"C:/Program Files (x86)/MATLAB/R2013a/extern/include" -I"C:/Program Files (x86)/MATLAB/R2013a/simulink/include" -I"C:/Program Files (x86)/MATLAB/R2013a/rtw/c/src" -I"C:/Program Files (x86)/MATLAB/R2013a/rtw/c/src/ext_mode/common" -I"C:/Program Files (x86)/MATLAB/R2013a/rtw/c/ert" -I"C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/arduino/cores/arduino" -I"C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/arduino/variants/standard" -I"C:/MATLAB/SupportPackages/R2013a/arduino-1.0/libraries/Servo" -mmcu=atmega328p -std=gnu99 -Wall -Wstrict-prototypes -g -Os -D"MODEL=ProvaLed" -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 ./ProvaLed.c ./ProvaLed_data.c ./ert_main.c
make: *** [HardwareSerial.o] Error 1


The build process will terminate as a result.

Caused by:
The build failed with the following message: "C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/tools/avr/bin/avr-gcc" -I"C:/MATLAB/SupportPackages/R2013a/arduino/include" -I"C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include" -I"C:/Users/UTENTE/Università/Sistemi dinamici/Arduino/ProvaLed_rtt" -I"C:/Users/UTENTE/Università/Sistemi dinamici/Arduino" -I"C:/Program Files (x86)/MATLAB/R2013a/extern/include" -I"C:/Program Files (x86)/MATLAB/R2013a/simulink/include" -I"C:/Program Files (x86)/MATLAB/R2013a/rtw/c/src" -I"C:/Program Files (x86)/MATLAB/R2013a/rtw/c/src/ext_mode/common" -I"C:/Program Files (x86)/MATLAB/R2013a/rtw/c/ert" -I"C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/arduino/cores/arduino" -I"C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/arduino/variants/standard" -I"C:/MATLAB/SupportPackages/R2013a/arduino-1.0/libraries/Servo" -mmcu=atmega328p -std=gnu99 -Wall -Wstrict-prototypes -g -Os -D"MODEL=ProvaLed" -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 ./ProvaLed.c ./ProvaLed_data.c ./ert_main.c
make: *** [HardwareSerial.o] Error 1

E leggiamolo il regolamento quando si arriva in un nuovo forum, che dici? :wink:
http://forum.arduino.cc/index.php?topic=149082.0

ArduinoRX:
Ciao a tutti, ho un problema con l'upload dello schema di MATLAB sulla scheda arduino uno, ed è il seguente:

Message: Model error

Reported by: Simulink

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/SupportPackages/R2013a/arduino-1.0/hardware/tools/avr/bin/avr-gcc" -I"C:/MATLAB/SupportPackages/R2013a/arduino/include" -I"C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include" -I"C:/Users/UTENTE/Università/Sistemi dinamici/Arduino/ProvaLed_rtt" -I"C:/Users/UTENTE/Università/Sistemi dinamici/Arduino" -I"C:/Program Files (x86)/MATLAB/R2013a/extern/include" -I"C:/Program Files (x86)/MATLAB/R2013a/simulink/include" -I"C:/Program Files (x86)/MATLAB/R2013a/rtw/c/src" -I"C:/Program Files (x86)/MATLAB/R2013a/rtw/c/src/ext_mode/common" -I"C:/Program Files (x86)/MATLAB/R2013a/rtw/c/ert" -I"C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/arduino/cores/arduino" -I"C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/arduino/variants/standard" -I"C:/MATLAB/SupportPackages/R2013a/arduino-1.0/libraries/Servo" -mmcu=atmega328p -std=gnu99 -Wall -Wstrict-prototypes -g -Os -D"MODEL=ProvaLed" -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 ./ProvaLed.c ./ProvaLed_data.c ./ert_main.c
make: *** [HardwareSerial.o] Error 1

The build process will terminate as a result.

Caused by:
The build failed with the following message: "C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/tools/avr/bin/avr-gcc" -I"C:/MATLAB/SupportPackages/R2013a/arduino/include" -I"C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include" -I"C:/Users/UTENTE/Università/Sistemi dinamici/Arduino/ProvaLed_rtt" -I"C:/Users/UTENTE/Università/Sistemi dinamici/Arduino" -I"C:/Program Files (x86)/MATLAB/R2013a/extern/include" -I"C:/Program Files (x86)/MATLAB/R2013a/simulink/include" -I"C:/Program Files (x86)/MATLAB/R2013a/rtw/c/src" -I"C:/Program Files (x86)/MATLAB/R2013a/rtw/c/src/ext_mode/common" -I"C:/Program Files (x86)/MATLAB/R2013a/rtw/c/ert" -I"C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/arduino/cores/arduino" -I"C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/arduino/variants/standard" -I"C:/MATLAB/SupportPackages/R2013a/arduino-1.0/libraries/Servo" -mmcu=atmega328p -std=gnu99 -Wall -Wstrict-prototypes -g -Os -D"MODEL=ProvaLed" -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 ./ProvaLed.c ./ProvaLed_data.c ./ert_main.c
make: *** [HardwareSerial.o] Error 1

è scappato? hahahah Leo tu li intimorisci asd :slight_smile:

E' questione di cosiddette "regole del buon vicinato".
Io mica mi infilo in una casa dalla finestra... busso, mi presento e chiedo se posso entrare. :wink: