I am trying to run the "Arduino Getting Started" Example with Simulink and it cannot find "Arduino.h"
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Spencer Gable-Cook
le 27 Oct 2019
Commenté : Michael Goebel
le 17 Juin 2020
I am trying to run the "Arduino Getting Started" Example with Simulink and it cannot find "Arduino.h". Any ideas why this may be? Any answers are greatly appreciated; thank you.
### Build procedure for model: 'arduino_gettingstarted' aborted due to an error.
"/Users/spencercook/Documents/MATLAB/SupportPackages/R2019b/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -std=gnu++11 -fno-threadsafe-statics -fno-rtti -fno-exceptions -Os -c -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -DARDUINO=10801 -MMD -MP -MF"MW_arduino_digitalio.dep" -MT"MW_arduino_digitalio.o" -MMD -mcpu=cortex-m0plus -fpermissive -DF_CPU=48000000L -DARDUINO_SAMD_MKR1000 -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x824e -DUSBCON -DUSB_MANUFACTURER=\""Unknown\"" -DUSB_PRODUCT=\""Genuino MKR1000\"" -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_MKR1000_ -DMODEL=arduino_gettingstarted -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DUNIX -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DMW_TIMERID=9 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=18750 -DMW_SCHEDULERCOUNTER=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_ANALOG_REF_=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduino_gettingstarted -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DUNIX -I/Users/spencercook/Documents/MATLAB/Examples/R2019b/arduino/GettingStartedWithArduinoRHardwareExample -I/Users/spencercook/Documents/MATLAB/SupportPackages/R2019b/toolbox/target/supportpackages/arduinobase/include -I/Users/spencercook/Documents/MATLAB/Examples/R2019b/arduino/GettingStartedWithArduinoRHardwareExample/arduino_gettingstarted_ert_rtw -I/Applications/MATLAB_R2019b.app/extern/include -I/Applications/MATLAB_R2019b.app/simulink/include -I/Applications/MATLAB_R2019b.app/rtw/c/src -I/Applications/MATLAB_R2019b.app/rtw/c/src/ext_mode/common -I/Applications/MATLAB_R2019b.app/rtw/c/ert -I/Users/spencercook/Documents/MATLAB/SupportPackages/R2019b/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include -I/Users/spencercook/Documents/MATLAB/SupportPackages/R2019b/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL -I/Users/spencercook/Documents/MATLAB/SupportPackages/R2019b/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/samd/1.6.20/cores/arduino -I/Users/spencercook/Documents/MATLAB/SupportPackages/R2019b/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/samd/1.6.20/variants/mkr1000 -I/Users/spencercook/Documents/MATLAB/SupportPackages/R2019b/toolbox/target/supportpackages/arduinotarget/include -I/Users/spencercook/Documents/MATLAB/SupportPackages/R2019b/toolbox/target/supportpackages/arduinotarget/scheduler/include -I/Users/spencercook/Documents/MATLAB/SupportPackages/R2019b/toolbox/target/supportpackages/armcortexmbase/scheduler/include -I/Users/spencercook/Documents/MATLAB/SupportPackages/R2019b/toolbox/target/shared/externalmode_daemon/include -I/Users/spencercook/Documents/MATLAB/SupportPackages/R2019b/toolbox/target/supportpackages/armcortexmbase/xcp/include -o "MW_arduino_digitalio.o" "/Users/spencercook/Documents/MATLAB/SupportPackages/R2019b/toolbox/target/supportpackages/arduinobase/src/MW_arduino_digitalio.cpp" /Users/spencercook/Documents/MATLAB/SupportPackages/R2019b/toolbox/target/supportpackages/arduinobase/src/MW_arduino_digitalio.cpp:2:21: fatal error: Arduino.h: No such file or directory #include <Arduino.h> ^ compilation terminated. gmake: *** [MW_arduino_digitalio.o] Error 1 Error(s) encountered while building "arduino_gettingstarted": ### Failed to generate all binary outputs.
0 commentaires
Réponse acceptée
Venkata Siva Krishna Madala
le 28 Oct 2019
Hi Spencer Gable-Cook,
This error is most likely due to corrupted installation of the support-package.
Can you please follow the below link to do a clean reinstall of the support package?
Thanks,
Krishna Madala
1 commentaire
Michael Goebel
le 17 Juin 2020
i'm having the same problem.
i deainstalled all support packages and reinstalled them --> no help.
i even reinstalled matlab (due to a complete windows re-install), without any succes.
i'm using Matlab 2019b with arduino packages for simulink, matlab and arduino engineering kit.
do those packages have to be installed in a certain order?
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Arduino Hardware dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!