我正在尝试使用Simulink运行“ Arduino入门”示例,但找不到“ Arduino.h”。任何想法为什么会这样?任何答案都将不胜感激;谢谢。
这是错误。
'###模型的构建过程:'arduino_gettingstarted'由于错误而中止。 “ /用户/ spencercook /文档/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 mthumb -DUSB_VID = 0x2341 -DUSB_PID = 0x824e -DUSBCON -DUSB_MANUFACTURER = \“”未知\“” -DUSB_PRODUCT = \“” Genuino MKR1000 \“” -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_MKRard = 1 -DSDD = STDDH = DH -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_PLATIL = 1 -DEXIT ODE_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_STACKED = -DEXTMODE_DISABLE_ARGS_PROCESD = 1- 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 / Package target / supportpackages / arduinobase / include -I / Users / spencercook / Documents / MATLAB / Examples / R2019b / arduino / ArduinoRardwareE入门xample / 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 /设备/ ATMEL -I /用户/ spencercook /文档/MATLAB/SupportPackages/R2019b/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/samd/1.6.20/cores/arduino -I /用户/ spencercook /文档/MATLAB/SupportPackages/R2019b/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/samd/1.6.20/variants/mkr1000 -I / Users / spencercook / Documents / MATLAB / SupportPackages / R2019b /工具箱/目标/支持包/ ar duinotarget / 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”“ /用户/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:致命错误:Arduino.h:没有这样的文件或目录#include ^编译终止。 gmake:*** [MW_arduino_digitalio.o]错误1构建“ arduino_gettingstarted”时遇到错误:###无法生成所有二进制输出。