Hallo,
ich versuche seit einiger Zeit eine I2C-Kommunikation zwischen einem Sensor und einem Arduino DUE in Simulink herzustellen.
Dazu verwende ich das "Simulink Support Package for Arduino Hardware" (ArduinoIO). Um C-Code in Arduino zu schreiben habe ich nach dieser Anleitung: http://www.mathworks.com/matlabcentral/fileexchange/39354-device-drivers einen S-Function Block erstellt. Wenn ich das dort vorgestellte Beispiel nachprogrammiere funktioniert alles tadellos.
Aber sobald ich im S-Function-Builder bei Libaries ># include "wire.h"< einfüge werde ich beim Auführen mit folgender Fehlermeldung konfontiert:
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/R2014a/arduino-1.5.4/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-gcc" -I"D:/Ronald/Desktop/test/arduinodue_communication_rtt" -I"D:/Ronald/Desktop/test" -I"C:/MATLAB/SupportPackages/R2014a/arduinodue/arduinoduedemos" -I"D:/Programme/MatlabR2014a/extern/include" -I"D:/Programme/MatlabR2014a/simulink/include" -I"D:/Programme/MatlabR2014a/rtw/c/src" -I"D:/Programme/MatlabR2014a/rtw/c/src/ext_mode/common" -I"D:/Programme/MatlabR2014a/rtw/c/ert" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/system/libsam" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/system/CMSIS/CMSIS/Include" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/system/CMSIS/Device/ATMEL" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/cores/arduino" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/cores/arduino/USB" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/ha ...
↧