File Exchange

image thumbnail

Simulink Support Package for Arduino Hardware

Run models on Arduino boards.

966 Downloads

Updated 05 Oct 2020

Editor's Note: Popular File 2013 2014 2015 2016 2017 2018

This support package is currently unable to download third-party software for MATLAB R2016b and earlier versions. For details and workaround, see this Bug Report.

MATLAB R2017a and later versions are unaffected.

Simulink® Support Package for Arduino® Hardware enables you to create and run Simulink models on Arduino boards. The support package includes a library of Simulink blocks for configuring and accessing Arduino sensors, actuators, and communication interfaces. It also enables you to interactively monitor and tune algorithms developed in Simulink as they run on Arduino.

This support package is functional for R2013a and beyond.

Comments and Ratings (297)

Alice Krauze

My "Rensselaer Arduino Support Package" seems to be missing

Arun Kumar

Hi Kathleen, Portenta H7 is not supported as of now.

Kathleen McGarrell

Does this work with Portenta H7?

mohammad nj

Same issue in Win10, M2020b
Unable to download third party software

Andile Simelane

Arun Kumar

Hi,
Workaround for Nano 33 IoT setup screen issue has been posted on the following link:
https://www.mathworks.com/matlabcentral/answers/615833-hardware-setup-is-failing-during-test-connection-for-nano-33-iot-while-running-simulink-support-pack

Thanks,
Arun

Isabell Moser

Isabell Moser

Hey,
same problem. When I try to install I get the message "There was a problem downloading the support package. To resolve this issue, see this MATLAB Answer". My Matlab Version is R2020b. I tried to install the Add On without a Firewall and still got the same error message. What can I do?

Jeff

Marcos Galicia

Same issue in Win10, M2020b
Unable to download third party software-------Ostermiller Circular Buffer!!

Shawn McCullough

Mac 2020b software installation seems to be fixed... thanks!

I am also having the same issues with the hardware setup for Nano33 IoT... sounds like it is in work though... thanks in advance!

Arshdeep Aujla

Can someone please help with this error:

C:\Users\arshd\tut13K04_ert_rtw>exit 0
### Build procedure for tut13K04 aborted due to an error.
The following error occurred during deployment to your hardware board:
Failed to download the binary 'C:\Users\arshd\tut13K04.bin' to the board.

Andile Simelane

Bro, people be saying the issue has been fixed but nothing is fixed here, if i contact the support team they say i must run MATLAB as admin, even if thats the case i still get the same problem, this is pure frustration

song zhankui

Unable to download third party software-------Ostermiller Circular Buffer!!!

Sam Salem

Thanks Arun. Looking forward to your update on the fix for Nano33 IoT

Arun Kumar

Hi Andile,
There was a web service outage on 7th Oct 2020, because of which the support package installer was failing.
Please try installing the support package again and if you face the same issue, please contact technical support.
Thanks,
Arun

Andile Simelane

HI Arun

Please help i still have the same problem when trying to download this addd-on in a Windows 10 PC, R2019b Update 7

error "failure to download third party software ostermiller circular buffer"

Please help, its been more than a week trying to install this

Arun Kumar

Hi Sam,
The error "There was a problem downloading the support package" is resolved now. Please try to install the support package again.
There's an issue with the hardware setup on Mac which is giving the download error during hardware setup only for Nano 33 IoT board.
Please skip the hardware setup and continue with model deployment.
I'll update here once we have the fix for the issue.

Thanks,
Arun

Sam Salem

Hi Arun, I need help.
I'm running this add-on on mac.
The board I have is Arduino Nano 33 IoT
I was able to install the add-on on the 5th. but it failed the "Test Connection Step".
I did uninstall the add-on. Now I can't install again. I get the "There was a problem downloading the support package. To resolve this issue, see this MATLAB Answer" message

Arun Kumar

Hi Guillermo, which Arduino board are you trying to work on?
Can you try running an example model and see if that works for you?

I have the same problem, can you help me Arun

Zhangcong She

Sam Salem

Uninstalled the add-on. I can't install it again. I get the same message I used to get a few days ago.
"There was a problem downloading the support package. To resolve this issue, see this MATLAB Answer"

Arun Kumar

Hi Philip,
Please use the contact icon on my profile to send the log file.
Also, which board are you trying to work on?

Phillip Hogan

Hi Arun, where would you like me to send the log file to?

Arun Kumar

Hi Phillip, can you share the installation log file.
Please follow this link to know the location of log files:
https://in.mathworks.com/matlabcentral/answers/101927-where-are-the-matlab-installation-and-activation-log-files-located

Phillip Hogan

I have the same issue as Sam:

I was able to download the add-on on my mac today. I wasn't able to do this a couple of days ago. However, there is still an issue when I get to the hardware setup and "Test Connection" step. It passes the "Build status" but it fails the "Download Status", when downloading applications. Download Failed. I followed all the checking steps in the "Test Connection" page. I even uninstalled the add-on, then re-installed it. Still getting "Download Failed" when I go to Test Connection step.

song zhankui

Unable to download third party software-------Ostermiller Circular Buffer!!!

Sam Salem

I was able to download the add-on on my mac today. I wasn't able to do this a couple of days ago. However, there is still an issue when I get to the hardware setup and "Test Connection" step. It passes the "Build status" but it fails the "Download Status", when downloading applications. Download Failed. I followed all the checking steps in the "Test Connection" page. I even uninstalled the add-on, then re-installed it. Still getting "Download Failed" when I go to Test Connection step.

Pradeep KS

Fix for the Simulink Arduino support package installation issue on Mac and Linux platform in R2020b release is fixed and released (ver 20.2.1). Please try installing the support package.

song zhankui

Pradeep KS

For the Mac 2020b issue, fix will be available by Oct 6th (Tuesday).

Shawn McCullough

Cannot install with Mac Catalina and 2020b. I see below that there is a fix in work... I would also like to know if there is any news about when it will be available?

Thanks!

mdawg22

Mac running catalina and R2020b, "Unexpected Error occured"

Andile Simelane

Failed to download the third-party software:
Ostermiller Circular Buffer

Please Help guys, i need this support package urgently

Phillip Hogan

Error: "Something Unexpected Occurred", MacOS Catalina latest version runnubg R2020b. Any ideas on the ETA for this fix?

Marcel Nagl

Doesn't install, Error: " Something unexpected occurred", MacOs

Arun Kumar

There's an issue in the support package because of which support package installation is failing for Mac and Linux. We are working on the fix.
Thanks

Richard McGinley

Nope...does not install: "Something unexpected occurred". The MATLAB package works fine. Tried a clean install; no joy.

Mark Ng

Hi

Tried to install this on R2020b. Got the error message "Something Unexpected Occurred". Machine is a Mac.

Thanks.

SRance

Hi,
I am having an issue with the BNO055 IMU Sensor Block from this package using an Arduino Mega2560 and Arduino 9 Axis Motion Shield in R2020a shield so all pins are connected correctly.
I continually get "-1" on all signal status', I know this works in the Arduino IDE on the 0x28 I2C address, I've even tried the BNO055 Example from the Arduino_Engineering​_Kit_Hardware_Suppo​rt_18b, but still nothing.
Are there additional setting or blocks required to ensure I2C communication is actually enabled (i.e. wire.begin())?
Thanks,
Shaun
BNO055 Block: https://www.mathworks.com/help/supportpkg/arduino/ref/bno055imusensor.html?s_tid=srchtitle
Similar Question: https://www.mathworks.com/matlabcentral/answers/594811-simulink-bno055-with-arduino-mega-2560?s_tid=prof_contriblnk

Diego Riaño Torres

siempre siempre siempre tengo problemas para instalar esto.....

Abdul Manan Khan

凯龙 王

Christoph Rothaug

I tried to Download it in 2020a, but the third-party software can not be downloaded...

Nirmalkumar Doreraju

Hi Mauricio,

Please have a look at the following document to get a list of the supported Arduino boards.
https://in.mathworks.com/hardware-support/arduino-simulink.html

Thanks and Regards,
Nirmal

Does this package support the new Arduino Portenta H7?

Nguyen Tai

gökhan yüksek

I need to use encoder read block and ethernet blocks in my project. But older version doesn't contain ethernet blocks and the newer version doesn't contain the encoder read block. How can i overcome this problem. Can you help me ?

yong-siang zhang

Invalid operation. Object must be connected to the serial port.
i met this issue in Simulink. but i can do it in the script.

Nikolaj Imwalle

I got the same error massage on my Desctop and Laptop installations: Something Unexpected Occured. To resolve the issue, contact Technical Support...
It seems there is a bug in that hardware package. Whether a home license is used shouldn't be the problem, right?

Riham Elbahr

Something Unexpected Occurred

To resolve this issue, contact Technical Support
-what could be wrong and how to fix this please ??

Hiroki Fukushima

Jamie Bettinson

will the Arduino Nano 33 BLE be added?

Rodrigo

What is happening is that the Third-Party Package fails to download/install. @MathWorks, please give us a hint!

Rodrigo

Jim Jim

Hello, I installed 2020A and still can't install, please advise

Vijay Nishad

i am unable to download it, it is showing plain blank from last 5 mins

Mohith Prabhu

@Ivan Gromyko From the log looks like you have a custom implementation that uses SoftwareSerial. Make sure you add the required include path of the libraries that you are using.
You can refer https://www.mathworks.com/help/supportpkg/arduino/device-driver-blocks.html for more information on the creation of custom device drivers

@Ivan Gromyko Are you rtyring to build in external mode using MKR 1000?

Ivan Gromyko

What is it?"C:/ProgramData/MATLAB/SupportPackages/R2019b/3P.instrset/arduinoide.instrset/hardware/tools/avr/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"untitled1.dep" -MT"untitled1.o" -Os -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_MEGA2560_ -DMODEL=untitled1 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DON_TARGET_WAIT_FOR_START=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DEXT_MODE=1 -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=5 -DMW_PRESCALAR=1024 -DMW_TIMERCOUNT=62411 -DMW_SCHEDULERCOUNTER=1 -D_RTT_BAUDRATE_SERIAL0_=115200 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_BAUDRATE_SERIAL2_=9600 -D_RTT_BAUDRATE_SERIAL3_=9600 -D_RTT_ANALOG_REF_=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEXT_MODE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DON_TARGET_WAIT_FOR_START=1 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=untitled1 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -ID:/matlab -ID:/matlab/untitled1_ert_rtw -IC:/PROGRA~1/MATLAB/R2019b/extern/include -IC:/PROGRA~1/MATLAB/R2019b/simulink/include -IC:/PROGRA~1/MATLAB/R2019b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2019b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2019b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2019b/toolbox/coder/rtiostream/src -IC:/PROGRA~1/MATLAB/R2019b/toolbox/coder/rtiostream/src/utils -IC:/ProgramData/MATLAB/SupportPackages/R2019b/3P.instrset/arduinoide.instrset/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2019b/3P.instrset/arduinoide.instrset/hardware/arduino/avr/variants/mega -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2019b/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2019b/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2019b/toolbox/target/SUPPOR~1/ARDUIN~2/include -IC:/ProgramData/MATLAB/SupportPackages/R2019b/3P.instrset/arduinoide.instrset/hardware/tools/avr/avr/include/avr -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2019b/toolbox/target/shared/EXTERN~1/include -o "untitled1.o" "D:/matlab/untitled1_ert_rtw/untitled1.c"
"C:/ProgramData/MATLAB/SupportPackages/R2019b/3P.instrset/arduinoide.instrset/hardware/tools/avr/bin/avr-g++" -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"PZEM_004T_100A_wrapper.dep" -MT"PZEM_004T_100A_wrapper.o" -Os -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_MEGA2560_ -DMODEL=untitled1 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DON_TARGET_WAIT_FOR_START=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DEXT_MODE=1 -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=5 -DMW_PRESCALAR=1024 -DMW_TIMERCOUNT=62411 -DMW_SCHEDULERCOUNTER=1 -D_RTT_BAUDRATE_SERIAL0_=115200 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_BAUDRATE_SERIAL2_=9600 -D_RTT_BAUDRATE_SERIAL3_=9600 -D_RTT_ANALOG_REF_=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEXT_MODE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DON_TARGET_WAIT_FOR_START=1 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=untitled1 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -ID:/matlab -ID:/matlab/untitled1_ert_rtw -IC:/PROGRA~1/MATLAB/R2019b/extern/include -IC:/PROGRA~1/MATLAB/R2019b/simulink/include -IC:/PROGRA~1/MATLAB/R2019b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2019b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2019b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2019b/toolbox/coder/rtiostream/src -IC:/PROGRA~1/MATLAB/R2019b/toolbox/coder/rtiostream/src/utils -IC:/ProgramData/MATLAB/SupportPackages/R2019b/3P.instrset/arduinoide.instrset/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2019b/3P.instrset/arduinoide.instrset/hardware/arduino/avr/variants/mega -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2019b/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2019b/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2019b/toolbox/target/SUPPOR~1/ARDUIN~2/include -IC:/ProgramData/MATLAB/SupportPackages/R2019b/3P.instrset/arduinoide.instrset/hardware/tools/avr/avr/include/avr -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2019b/toolbox/target/shared/EXTERN~1/include -o "PZEM_004T_100A_wrapper.o" "D:/matlab/PZEM_004T_100A_wrapper.cpp"
In file included from D:/matlab/PZEM_004T_100A_wrapper.cpp:18:0:
D:/matlab/PZEM004Tv30.h:30:10: fatal error: SoftwareSerial.h: No such file or directory
#include <SoftwareSerial.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
gmake: *** [PZEM_004T_100A_wrapper.o] Error 1
The make command returned an error of 2

Error(s) encountered while building "untitled1":
### Failed to generate all binary outputs.

Hello,
has anyone face the following error, in Arduino egineering kit example 2.3 simulink gettign started?

"C:/ProgramData/MATLAB/SupportPackages/R2019a/3P.instrset/arduinoide.instrset/idepkgs/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 -g -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -DARDUINO=10801 -MMD -MP -MF"MW_PWM.dep" -MT"MW_PWM.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=myDCMotorControl -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DON_TARGET_WAIT_FOR_START=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DEXT_MODE=1 -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 -DEXT_MODE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DON_TARGET_WAIT_FOR_START=1 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=myDCMotorControl -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/Chrisrek/DROPBO~1/Work/IDeM-Prototyping/ArduinoEngineeringKit/Simulink -IC:/PROGRA~3/MATLAB/SupportPackages/R2019a/toolbox/target/shared/svd/include -IC:/Users/Chrisrek/DROPBO~1/Work/IDeM-Prototyping/ArduinoEngineeringKit/Simulink/myDCMotorControl_ert_rtw -IC:/PROGRA~1/MATLAB/R2019a/extern/include -IC:/PROGRA~1/MATLAB/R2019a/simulink/include -IC:/PROGRA~1/MATLAB/R2019a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2019a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2019a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2019a/toolbox/coder/rtiostream/src -IC:/PROGRA~1/MATLAB/R2019a/toolbox/coder/rtiostream/src/utils -IC:/ProgramData/MATLAB/SupportPackages/R2019a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include -IC:/ProgramData/MATLAB/SupportPackages/R2019a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL -IC:/ProgramData/MATLAB/SupportPackages/R2019a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/samd/1.6.20/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2019a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/samd/1.6.20/variants/mkr1000 -IC:/PROGRA~3/MATLAB/SupportPackages/R2019a/toolbox/target/supportpackages/arduinotarget/include -IC:/PROGRA~3/MATLAB/SupportPackages/R2019a/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/PROGRA~3/MATLAB/SupportPackages/R2019a/toolbox/target/supportpackages/armcortexmbase/scheduler/include -IC:/PROGRA~3/MATLAB/SupportPackages/R2019a/toolbox/target/supportpackages/arduinobase/include -IC:/PROGRA~3/MATLAB/SupportPackages/R2019a/toolbox/target/shared/externalmode_daemon/include -IC:/PROGRA~3/MATLAB/SupportPackages/R2019a/toolbox/target/supportpackages/armcortexmbase/xcp/include -o MW_PWM.o C:/ProgramData/MATLAB/SupportPackages/R2019a/toolbox/target/supportpackages/arduinobase/src/MW_PWM.cpp
C:/ProgramData/MATLAB/SupportPackages/R2019a/toolbox/target/supportpackages/arduinobase/src/MW_PWM.cpp:6:21: fatal error: Arduino.h: No such file or directory #include "Arduino.h"
^
compilation terminated.
gmake: *** [MW_PWM.o] Error 1
The make command returned an error of 2
### Build procedure for model: 'myDCMotorControl' aborted due to an error.
Error(s) encountered while building "myDCMotorControl":
### Failed to generate all binary outputs."

It cant build the code while in external mode while using the MKR 1000.

thanks

Ulric Schmidt

This will not install if Arduino software is already installed on system; the failure doesn't say anything except to contact support. Once you uninstall your current installation of Arduino software/IDE (and all the awesome libraries and other stuff you setup on your computer), then this will proceed without error. Not cool. I'll have to get everything back to the way it was somehow after I use this add-on for school project.

Chris

Is it possible to add another arduino board?
I build a small board with an arduino bootloader based on atmega1284p

weijie tang

I can not download the support package. How to fix this problem.

Cyrus Chan

tom simth

下载支持包时出现问题。要解决此问题,请参阅该 MATLAB 答复,一直这个报错,下载不成功

pengpeng ni

下载支持包时出现问题。要解决此问题,请参阅该 MATLAB 答复,一直这个报错,下载不成功

tianyu zhang

我安装成功了哈哈

songfl

Arun Kumar

@Behnam Please contact Mathworks Technical Support if the problem still persists.

behnam sanaei

I'm working with matlab r2020a and arduino due R3.
Every time that I want to deploy a model from simulink to arduino, just for the first time everything is ok and after that simulink cannot find the COM Port. Indeed, after restarting the matlab I can program the board again.
Any idea?

Sun Yeang Chew

unable to download arduino software

Arun Kumar

“Operation not supported” error while building Arduino model on MATLAB R2020a:

If the version number of Simulink Support Package for Arduino Hardware that you have installed is 20.1.0, then you might face this issue. To know the version of the installed support package, execute the following command:
matlabshared.supportpkg.getInstalled
To resolve this issue follow the instructions given below:
Replace 'user_name' with the actual username with which you are logged in and execute the following command in MATLAB command prompt.
setenv('ARDUINO_STATIC_LIB_PATH’,’/Users/user_name/Documents/MATLAB')

For more details: https://in.mathworks.com/matlabcentral/answers/514231-operation-not-supported-error-while-building-arduino-model-on-matlab-r2020a

ILSOO NOH

Nicolas CHAUTARD

Doesn't work when arduino build the project.Ihave the following message in simulink.
Please, have you an idea why it doesn't work

### Build procedure for model: 'test' aborted due to an error.
"/hardware/tools/avr/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"test.dep" -MT"test.o" -Os -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_MEGA2560_ -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -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=5 -DMW_PRESCALAR=1024 -DMW_TIMERCOUNT=62411 -DMW_SCHEDULERCOUNTER=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_BAUDRATE_SERIAL2_=9600 -D_RTT_BAUDRATE_SERIAL3_=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=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -ID:/MATLAB -ID:/MATLAB/test_ert_rtw -ID:/MATLAB/R2019b/extern/include -ID:/MATLAB/R2019b/simulink/include -ID:/MATLAB/R2019b/rtw/c/src -ID:/MATLAB/R2019b/rtw/c/src/ext_mode/common -ID:/MATLAB/R2019b/rtw/c/ert -I/hardware/arduino/avr/cores/arduino -I/hardware/arduino/avr/variants/mega -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2019b/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2019b/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2019b/toolbox/target/SUPPOR~1/ARDUIN~2/include -I/hardware/tools/avr/avr/include/avr -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2019b/toolbox/target/shared/EXTERN~1/include -o "test.o" "D:/MATLAB/test_ert_rtw/test.c"
Le chemin d'accès spécifié est introuvable.
gmake: *** [test.o] Error 1
The make command returned an error of 2

Error(s) encountered while building "test":
### Failed to generate all binary outputs.

Byoung-Soo

Amazing piece of gem!

Michael Pressler

Is there an offline installer for this or do I have to go to each machine and install this??

Matthew Bankes

Eyre

cannot download this

Matthew Bankes

Victor

Not working

Chris Hadamek

Matteo Tondo

Gaizka Martin

abdulrahman hamdy

I downloaded this package ,but I cant seem to find the sensors nor actuators package ,only the hardware package is there. How can I solve that issue?

Kateryna Iablokova

I can't install MATLAB Support Package for Arduino Hardware Have you some suggestions?

Ankur Bose

Arjunbarath G

The selection of COM port manually for Simulink hardware support package with Arduino is not working with 2018a. Can anyone help me out ?

Joonyeong Kim

When will you fix the "build failed" problem?

gunnar klinghult

Does not work!

dzid_

They added MCP2515 CANbus support which is great. It is is not perfect and lacks documentation, but very easy to use for simple cases

pooya SAJJADI

Hi!
I recently downloaded this package and I'm having trouble finding external interrupt block
currently I'm using R2018b, could that be the problem?
thanks

Nirmalkumar Doreraju

Hi Ta Hai,
Did you make sure that you have selected Arduino Mega 2560 in Configuration Settings?
Configuration Settings >> Hardware Implementation >> Select 'Arduino Mega 2560 ' under Hardware board.
Each Arduino board supports PWM on different set of pins. The error that you are seeing is may be because no board has been selected.
-Nirmal

Ta Hai

Hi all. I am using Arduino Mega 2560. I tried to access port PWM 44,45,46 in simulink, however, Simulink show an error "PWM block parameter Pin number must be an integer between 2 and 13". Its strange!
Can anyone help me!

Sergio Rojo

No problem for Mega...
It doesn't work for Uno...when I test conecction...

gautam singh

fantastic information.
<a href ="https://openapkfile.co/open-xapk-file/"> open xapk file </a>

Ng Shin Huan

Error occurred while executing External Mode MEX-file 'ext_comm':
Failed to connect to the target. A time-out occurred while waiting for the connection response from the target. Possible reasons for the time-out:
a) The target is not switched on.
b) The target is not connected to your host machine.
c) The application for the model is not running on the target. You might have clicked the Stop button. If the Run button is not dimmed, click it. Otherwise, click the Build button, which downloads and runs your application on the target.
Component:Simulink | Category:Block diagram error
Unable to connect to the 'Arduino Mega 2560' target for 'Test'.

What are the errors here?

Andrei Diaz

Zhixin Fang

Joshua Coleman

Tyler Billotte

Iraklis Koskeridis

i have corrupted third party software issue. How can i solve this?

muhammad arifin

Arun Kumar

Satyajit gantayat

dzid_

The generated code is inefficient for Arduino blocks.
Generated garbage eating valuable RAM:

typedef struct {
132 boolean_T matlabCodegenIsDeleted;
133 int32_T isInitialized;
134 boolean_T isSetupComplete;
135 real_T SampleTime;
136 f_codertarget_arduinobase_int_T *Hw;
137 MW_Handle_Type MW_ANALOGIN_HANDLE;
138 uint8_T PinAnalog;
139 } codertarget_arduinobase_inter_T;

Arun Kumar

Miran Dabare

Arif Khan

when showing Failed to generate all binary outputs. using simulink model, just save your model in matlab folder in C drive and open from there, then simulate and generate, it did work for me. Technical reason i don't know, but it works for me.

brie Lewandowski

the build test repeatedly fails. i have tryed uninstalling and re instaling, any sugestions

Jehad Abu Awwad

Cannot even download it. Stuck on third party issue

Donald Piper

Cannot even download it. Stuck on third party issue.

Frederik Hesselmann

Frederik Hesselmann

Ivan Carrasco

horrible

HIgh Tech Man

saiful anuar

Hi all i just managed to solve the problems in using the Simulink Support Package for Arduino Hardware for MatlabR2019a.

Here are the steps/methods that you can follow:

1. If you have previous version of Matlab, uninstall it first.

2. Delete the hidden program data for the previous Matlab which contains the support packages for the Simulink-Arduino.
The location for the HIDDEN program data folder for Matlab is is at C: ProgramData. Delete the Matlab folder.

2. Restart your latest version of Matlab as the administrator.

3. Install your add-on package for Simulink-Arduino as usual.

4. Once its done, you need to install the MinGW-w64 C/C++ compiler. You can find this in the add-on explorer page of your matlab.

5. Once its done, your need to make sure the enviroment variables is having the path for this support package folder in the hidden program data folder. To do so, Right click Computer Icon> Advanced system settings> Enviroment Variables. Take a look at the section for user variables for user. There is a 'PATH' variable. Click Edit, and then make sure that the variable value is C:\ProgramData\MATLAB\SupportPackages\R2019a....

6. You should be able to use the Simulink Support Package after following this steps.

I believe the steps should be the same for those whom are using the 2018a/2018b versions.

Manuel Hernández

I have problems to donwload Simulink Support Package for Arduino Hardware, Please help me.

Pablo Romero

If you have problems installing the Simulink Support Package for Arduino, please try installing first the MATLAB Support Package for Arduino and this one later.

Hector Miranda

Everytime I try to compile, the final diagnosis always shows "### Failed to generate all binary outputs", I re-installed the package several times but still showing the same error. It seems to not have downloaded the whole buch of files because the error explains that certain files are not located in the proper folders. Please fix this. Thanks

samir mohamed

How to solve this problem "Build failed: The third-party library files may be corrupted. Uninstall the support package, reinstall it and launch this hardware setup process again". I tried more than once and failed

João Ricardo Barbosa

I have some VERY STRONG words to tell to the person that decided that it was a good idea for this Add-on to replace the compiler I had installed for the ESP32 and Arduino boards with an outdated version of them, only for it to fail to compile my projects and cause me to spend an hour trying to fix it.

Atakan Botasun

bangjun li

Benetheburrito

Im stuck on "third party download"

Noah Wardlow

one thing doesnt work after another

chi phamminh

chi phamminh

Lalit Kumar

MOSTAFA SOLIMAN

Hi, I am trying to install the package on Matlab R2018a and I am getting "Build failed" message immidiatly after "Testing Connection" in the "Hardware Setup" Wizard.
It is mentioned:
"The third-part library files may be corrupted. Uninstall the support package, reinstall it and launch this hardware setup process again"
I tried this for 5 times without success.
I am not sure what is wrong!
I would appreciate your help.

Leon Szafraniec

Always getting the message ##I nstall folder error // This folder name is invalid. Folder names can contain alphanumeric characters and '-', '_', '.', or '/' only. The destination folder cannot be named "private" ## when trying to download on my mac (R2018b and R2019a). What can I do? No workaround was working.

Christian Pommer

Is it possible to add individual SPI modes for every SPI module?

yedum Karunarathna

floki jaja

i have a problem withe Support Package for Arduino uno Hardware is ' Error(s) encountered while building "mehdipfa":
### Failed to generate all binary outputs. ' i m using matlab2017a

hongjie cui

hi,how to change arduino pwm frequency using simulink pwm block?can you help me?

Pradeep KS

HI Sieme,
Since you have Arduino Engineering Kit installed, i assume you are programming Arduino MKR1000 board.
Please check if SAMD package version 1.6.18 is installed correctly in the below mentioned path for 18b release:
C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\hardware\samd\1.6.18.
Arduino.h will be present in C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\hardware\samd\1.6.18\cores\arduino folder.

Please go through the Hardware Setup workflow for Arduino MKR1000 to verify if the build environment is correct. Follow these steps:
1. Launch MATLAB.
2. In the MATLAB Toolstrip, click on "Add-Ons --> Manage Add-Ons" to open "Add-On" manager.
3. In "Add-On" manager, click on the gear icon of the "Simulink Support package for Arduino Hardware". Hardware Setup app will open. Follow the instructions on the HW setup screens to verify MKR1000 build is happening correctly.

Also please post the build log present on the diagnostic viewer.

Sieme Teuling

How do you fix this? (already tried the un-install and re-install procedure, it doesn't change anything)

C:\ProgramData\MATLAB\SupportPackages\R2018b\toolbox\target\supportpackages\arduinobase\src\MW_arduinoI2C.cpp(8): fatal error C1083: Cannot open include file: 'Arduino.h': No such file or directory

Windows 10, Matlab R2018b
Installed packages:

Matlab coder
Matlab support for MinGW-w64 C/C++
Simulink Coder 9.0
Simulink Support Package for Arduino Hardware 18.2.0
Matlab Support Package for Arduino Hardware 18.2.0
Arduino_Engineering_kit_hardware_Support 18b 1.1.1

this is a clean install that doesn't work straight out of the box...

Pradeep KS

Hi Gareth,
Please try the below steps to fix Download Error while installing the MATLAB and Simulink Arduino Support package:
1. Go to folder location "C:\Users\<user id>\Downloads\MathWorks\SupportPackages" on your machine.
2. Delete all the old support package files and folders. Make sure the folder is empty.
3. Try installing Support package from Add-On Manager.

Gareth Gericke

I am unable to download or install support packages from the add on explorer and file share. This is my error. Please help

Download Error

There was a problem downloading the support package. To resolve this issue, see this MATLAB Answer

Pradeep KS

@Scott Thomas, @Gertsch enzo: Are you facing installation problem or issue deploying a model? Please post the error description

Scott Thomas

Previous version worked for me. This version does not.

gertsch enzo

doesn't work

James Hill

For anybody still getting this error:
home/gilgamesh007/Documents/MATLAB/SupportPackages/R2018b/toolbox/target/supportpackages/arduinobase/src/MW_PWM.cpp:6:21: fatal error: Arduino.h: No such file or directory
#include "Arduino.h"
^
compilation terminated.
gmake: *** [MW_PWM.o] Error 1
### Build procedure for model: 'myDCMotorControl' aborted due to an error.
Error:Error(s) encountered while building "myDCMotorControl":
### Failed to generate all binary outputs.
Please see this:
https://www.mathworks.com/matlabcentral/answers/407753-arduino-mkr1000-simulink-build-procedure-aborted-due-to-error
and
https://www.mathworks.com/matlabcentral/fileexchange/68620-arduino_engineering_kit_hardware_support_18b?s_tid=FX_rc2_behav

Érick Gomes

Michal Wysocki

Hi!
I'm experiencing strange issue with this package. I'm running Matlab 2017b and WIN 10 on my computer and after installation of this package, i can see only half of the hardware I/O available in simulink library for arduino. For instance i have Analog Read block, but i don't have an equivalent ANALOG WRITE...
Is anybody having similar issue?

kittinan undee

i try win 7 it worked and win 10 not work

Pradipta Kumar Pal

mathieu nell

Srinivasan Saripalli

mohammad kholil

ready thanks..

Martin Große-Hovest

Try downloading with Windows 7 and not with Windows 10. At least it worked for me.

Victor Miguel

como puedo instalar de forma manual los paquetes

TAHA MUKADAM

My email id is rahidten@gmail.com

Sean Ryu

Third Party download does not work. Please fix it.

Martin Große-Hovest

Third Party download does not work. I dl'ed it from the Ostermiller homepage. Where do I need to install the three.jar-files?

Ellie Chen

Dylan Staudmyer

I am having trouble finding the arduino uno on the hardware implementation when I try to run my simple simulink code. Can anyone tell me why I cannot see the different arduino boards on the drop down?

Wan Nafis

sanjeev

Hi,
I am trying to implement PID controller (programmed in Simulink) on a real plant (system) using Arduino Uno.
I have only MATLAB and Simulink license. Do I need MATLAB/Simulink or Embedded Coder License to use Arduino Uno ?

mario bergognoni

Installation seem like to work fine, but when I try "test installation" on MKR1000 board on step 1 "Build checks if the third-party tools are installed appropriately." says: build failed "The third-party library files may be corrupted. Uninstall the support package, reinstall it and launch this hardware setup process again."

Jesse Manders

Naba Kumar

Can not install it - doesn't go past "third-party" download. Get's stuck at 100% and throws an error. I'm using R2018b.

MF

ThingSpeak Write/Read Blocks are not working in the latest version with the MKR1000 Arduino.

MF

Fernando Amaral

The installation stops when reach "third-party" part. I'm using R2018b. Do not know what to do!

Mohamed Ashraf

Christopher Lum

Works great and I am using this to teach a class with 30+ students controlling an Arduino Due. Initial install, setup and familiarization takes a little while but once you get it going, things run smoothly.

In case it is helpful, I made a video documenting how to get started with this support package. This includes installing and implementing Mathwork's workaround for earlier versions of Matlab. The video is at https://youtu.be/nOz3uTi20Jo.

Jean-Jacques

Impossible de faire le téléchargement !

tran minh

the third package have problem. what should i do ? i can't install it. Please fix it

Kaustubh Shah

Hi,
I have installed the above package to run arduino with simulink and also have installed mex setup. But when I deploy my code to the hardware, I get the following error.

### Generating code into build folder: C:\Users\admin\Lab_1_ert_rtw
### Invoking Target Language Compiler on Lab_1.rtw
### Using System Target File: C:\Program Files\MATLAB\R2017a\rtw\c\ert\ert.tlc
### Loading TLC function libraries
### Initial pass through model to cache user defined code
.
### Caching model source code
### Writing header file Lab_1.h
### Writing header file Lab_1_types.h
### Writing source file Lab_1.c
### Writing header file rtwtypes.h
.
### Writing header file Lab_1_private.h
### Writing source file Lab_1_data.c
### Writing header file rtmodel.h
### Writing source file ert_main.c
### TLC code generation complete.
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: Arduino AVR v1.6.13 | gmake (64-bit Windows)
### 'C:\Users\admin\Lab_1_ert_rtw\Lab_1.mk' is up to date
### Building 'Lab_1': "C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f Lab_1.mk all
C:\Users\admin\Lab_1_ert_rtw>cd .
C:\Users\admin\Lab_1_ert_rtw>if "" == "" ("C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f Lab_1.mk all ) else ("C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f Lab_1.mk )
C:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/tools/avr/bin/avr-g++ -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10613 -MMD -MP -MF"MW_digitalio.dep" -MT"MW_digitalio.o" -Os -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_MEGA2560_ -DMODEL=Lab_1 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -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=5 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=34286 -DMW_SCHEDULERCOUNTER=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_BAUDRATE_SERIAL2_=9600 -D_RTT_BAUDRATE_SERIAL3_=9600 -D_RTT_ANALOG_REF_=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=Lab_1 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/admin -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinobase/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include/sf_runtime -IC:/Users/admin/Lab_1_ert_rtw -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/arduino/avr/variants/mega -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/shared/externalmode_daemon/include -o MW_digitalio.o C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinobase/src/MW_digitalio.cpp
The system cannot find the path specified.
gmake: *** [MW_digitalio.o] Error 1
C:\Users\admin\Lab_1_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
C:\Users\admin\Lab_1_ert_rtw>An_error_occurred_during_the_call_to_make
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.
### Creating HTML report file Lab_1_codegen_rpt.html
### Build procedure for model: 'Lab_1' aborted due to an error.
Error(s) encountered while building "Lab_1":
### Failed to generate all binary outputs.

What should I do?

Cristobal Gomez

Could not install it succesfully with 2018b

Kirsi Arduino

I can not install the package because of the following reason:
Failed to download the third-party software:
Ostermiller Circular Buffer

Can anyone help me?

MOSTAFA SOLIMAN

Ankur Bose

Luke Bennett

Megham_Garg

Error installing third party package Arduino software: Invalid zip file "C:\MATLAB\SupportPackages\R2013a\downloads\arduino-1.0-windows.zip".

Alden Wong

Should I of known to upload the MKR1000 WiFi101 before " Select Arduino/MKRMotorCarrier and RotaryEncoder . Click Program. " ?

I was seeing errors until I installed the WiFi101 from Arduino IDE..

shiqi sun

HI I need some help
When I deploy a simulink model to my arduino Uno. I met a big error as follow.
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-gcc -std=gnu11 -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"arduinowork.dep" -MT"arduinowork.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/matlabwork -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/include -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/blocks/sfcn/include -ID:/matlabwork/arduinowork_ert_rtw -IH:/extern/include -IH:/simulink/include -IH:/rtw/c/src -IH:/rtw/c/src/ext_mode/common -IH:/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o arduinowork.o arduinowork.c
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-gcc -std=gnu11 -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"arduinowork_data.dep" -MT"arduinowork_data.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/matlabwork -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/include -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/blocks/sfcn/include -ID:/matlabwork/arduinowork_ert_rtw -IH:/extern/include -IH:/simulink/include -IH:/rtw/c/src -IH:/rtw/c/src/ext_mode/common -IH:/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o arduinowork_data.o arduinowork_data.c
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-gcc -MMD -MP -MF"wiring_pulse.S.dep" -MT"wiring_pulse.S.o" -Wall -x assembler-with-cpp -c -g -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10801 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/matlabwork -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/include -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/blocks/sfcn/include -ID:/matlabwork/arduinowork_ert_rtw -IH:/extern/include -IH:/simulink/include -IH:/rtw/c/src -IH:/rtw/c/src/ext_mode/common -IH:/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o wiring_pulse.S.o C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/wiring_pulse.S
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-gcc -std=gnu11 -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"hooks.dep" -MT"hooks.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/matlabwork -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/include -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/blocks/sfcn/include -ID:/matlabwork/arduinowork_ert_rtw -IH:/extern/include -IH:/simulink/include -IH:/rtw/c/src -IH:/rtw/c/src/ext_mode/common -IH:/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o hooks.o C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/hooks.c
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-gcc -std=gnu11 -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"WInterrupts.dep" -MT"WInterrupts.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/matlabwork -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/include -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/blocks/sfcn/include -ID:/matlabwork/arduinowork_ert_rtw -IH:/extern/include -IH:/simulink/include -IH:/rtw/c/src -IH:/rtw/c/src/ext_mode/common -IH:/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o WInterrupts.o C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/WInterrupts.c
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-gcc -std=gnu11 -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"wiring.dep" -MT"wiring.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/matlabwork -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/include -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/blocks/sfcn/include -ID:/matlabwork/arduinowork_ert_rtw -IH:/extern/include -IH:/simulink/include -IH:/rtw/c/src -IH:/rtw/c/src/ext_mode/common -IH:/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o wiring.o C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/wiring.c
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-gcc -std=gnu11 -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"wiring_analog.dep" -MT"wiring_analog.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/matlabwork -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/include -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/blocks/sfcn/include -ID:/matlabwork/arduinowork_ert_rtw -IH:/extern/include -IH:/simulink/include -IH:/rtw/c/src -IH:/rtw/c/src/ext_mode/common -IH:/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o wiring_analog.o C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/wiring_analog.c
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-gcc -std=gnu11 -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"wiring_digital.dep" -MT"wiring_digital.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/matlabwork -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/include -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/blocks/sfcn/include -ID:/matlabwork/arduinowork_ert_rtw -IH:/extern/include -IH:/simulink/include -IH:/rtw/c/src -IH:/rtw/c/src/ext_mode/common -IH:/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o wiring_digital.o C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/wiring_digital.c
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-gcc -std=gnu11 -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"wiring_pulse.dep" -MT"wiring_pulse.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/matlabwork -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/include -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/blocks/sfcn/include -ID:/matlabwork/arduinowork_ert_rtw -IH:/extern/include -IH:/simulink/include -IH:/rtw/c/src -IH:/rtw/c/src/ext_mode/common -IH:/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o wiring_pulse.o C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/wiring_pulse.c
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-gcc -std=gnu11 -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"wiring_shift.dep" -MT"wiring_shift.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/matlabwork -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/include -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/blocks/sfcn/include -ID:/matlabwork/arduinowork_ert_rtw -IH:/extern/include -IH:/simulink/include -IH:/rtw/c/src -IH:/rtw/c/src/ext_mode/common -IH:/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o wiring_shift.o C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/wiring_shift.c
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-g++ -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"abi.dep" -MT"abi.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/matlabwork -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/include -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/blocks/sfcn/include -ID:/matlabwork/arduinowork_ert_rtw -IH:/extern/include -IH:/simulink/include -IH:/rtw/c/src -IH:/rtw/c/src/ext_mode/common -IH:/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o abi.o C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/abi.cpp
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-g++ -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"CDC.dep" -MT"CDC.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/matlabwork -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/include -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/blocks/sfcn/include -ID:/matlabwork/arduinowork_ert_rtw -IH:/extern/include -IH:/simulink/include -IH:/rtw/c/src -IH:/rtw/c/src/ext_mode/common -IH:/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o CDC.o C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/CDC.cpp
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-g++ -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"HardwareSerial.dep" -MT"HardwareSerial.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/matlabwork -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/include -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/blocks/sfcn/include -ID:/matlabwork/arduinowork_ert_rtw -IH:/extern/include -IH:/simulink/include -IH:/rtw/c/src -IH:/rtw/c/src/ext_mode/common -IH:/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o HardwareSerial.o C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/HardwareSerial.cpp
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-g++ -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"HardwareSerial0.dep" -MT"HardwareSerial0.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/matlabwork -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/include -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/blocks/sfcn/include -ID:/matlabwork/arduinowork_ert_rtw -IH:/extern/include -IH:/simulink/include -IH:/rtw/c/src -IH:/rtw/c/src/ext_mode/common -IH:/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o HardwareSerial0.o C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/HardwareSerial0.cpp
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-g++ -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"HardwareSerial1.dep" -MT"HardwareSerial1.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/matlabwork -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/include -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/blocks/sfcn/include -ID:/matlabwork/arduinowork_ert_rtw -IH:/extern/include -IH:/simulink/include -IH:/rtw/c/src -IH:/rtw/c/src/ext_mode/common -IH:/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o HardwareSerial1.o C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/HardwareSerial1.cpp
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-g++ -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"HardwareSerial2.dep" -MT"HardwareSerial2.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/matlabwork -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/include -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/blocks/sfcn/include -ID:/matlabwork/arduinowork_ert_rtw -IH:/extern/include -IH:/simulink/include -IH:/rtw/c/src -IH:/rtw/c/src/ext_mode/common -IH:/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o HardwareSerial2.o C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/HardwareSerial2.cpp
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-g++ -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"HardwareSerial3.dep" -MT"HardwareSerial3.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/matlabwork -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/include -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/blocks/sfcn/include -ID:/matlabwork/arduinowork_ert_rtw -IH:/extern/include -IH:/simulink/include -IH:/rtw/c/src -IH:/rtw/c/src/ext_mode/common -IH:/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o HardwareSerial3.o C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/HardwareSerial3.cpp
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-g++ -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"PluggableUSB.dep" -MT"PluggableUSB.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/matlabwork -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/include -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/blocks/sfcn/include -ID:/matlabwork/arduinowork_ert_rtw -IH:/extern/include -IH:/simulink/include -IH:/rtw/c/src -IH:/rtw/c/src/ext_mode/common -IH:/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o PluggableUSB.o C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/PluggableUSB.cpp
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-g++ -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"IPAddress.dep" -MT"IPAddress.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/matlabwork -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/include -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/blocks/sfcn/include -ID:/matlabwork/arduinowork_ert_rtw -IH:/extern/include -IH:/simulink/include -IH:/rtw/c/src -IH:/rtw/c/src/ext_mode/common -IH:/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o IPAddress.o C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/IPAddress.cpp
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-g++ -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"new.dep" -MT"new.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/matlabwork -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/include -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/blocks/sfcn/include -ID:/matlabwork/arduinowork_ert_rtw -IH:/extern/include -IH:/simulink/include -IH:/rtw/c/src -IH:/rtw/c/src/ext_mode/common -IH:/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o new.o C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/new.cpp
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-g++ -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"Print.dep" -MT"Print.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/matlabwork -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/include -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/blocks/sfcn/include -ID:/matlabwork/arduinowork_ert_rtw -IH:/extern/include -IH:/simulink/include -IH:/rtw/c/src -IH:/rtw/c/src/ext_mode/common -IH:/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o Print.o C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/Print.cpp
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-g++ -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"Stream.dep" -MT"Stream.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/matlabwork -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/include -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/blocks/sfcn/include -ID:/matlabwork/arduinowork_ert_rtw -IH:/extern/include -IH:/simulink/include -IH:/rtw/c/src -IH:/rtw/c/src/ext_mode/common -IH:/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o Stream.o C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/Stream.cpp
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-g++ -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"Tone.dep" -MT"Tone.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/matlabwork -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/include -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/blocks/sfcn/include -ID:/matlabwork/arduinowork_ert_rtw -IH:/extern/include -IH:/simulink/include -IH:/rtw/c/src -IH:/rtw/c/src/ext_mode/common -IH:/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o Tone.o C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/Tone.cpp
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-g++ -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"USBCore.dep" -MT"USBCore.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/matlabwork -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/include -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/blocks/sfcn/include -ID:/matlabwork/arduinowork_ert_rtw -IH:/extern/include -IH:/simulink/include -IH:/rtw/c/src -IH:/rtw/c/src/ext_mode/common -IH:/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o USBCore.o C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/USBCore.cpp
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-g++ -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"WMath.dep" -MT"WMath.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/matlabwork -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/include -IC:/Users/孙士奇/DOCUME~1/MATLAB/Add-Ons/COLLEC~1/SIMULI~1/code/arduino/blocks/sfcn/include -ID:/matlabwork/arduinowork_ert_rtw -IH:/extern/include -IH:/simulink/include -IH:/rtw/c/src -IH:/rtw/c/src/ext_mode/common -IH:/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o WMath.o C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino/WMath.cpp
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-g++ -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"WString.dep" -MT"WString.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduinowork -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=200000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT

jinnan zhu

Antonin

TZU-I Huang

Can not install this add-on with all the methods for 2018a where third party installation errors still occur.

Oleg Nykolyn

Arpit Soni

Ben Higgins

Will not install for 2018a, yet if it gets past the first stage of installation it will not read the build and ask you to uninstall and reinstall. Please help

Greg Drayer

@Hassan Nawazish:

1) You can download it from this page and install it using the instructions found on this documentation page under "Install Add-Ons Manually": https://www.mathworks.com/help/matlab/matlab_env/get-add-ons.html

2) You can also search for "simulink arduino" on the Add-On Explorer, which you can open by following the instructions on the documentation page above. The first search result should be the "Simulink Support Package for Arduino Hardware", which is the same add-on as on this File Exchange submission.

I would recommend using the installation process #2.

Hassan Nawazish

Can anybody tell me how to download & install simulink package for Arduino in MATLAB R2018.

Amit Charantimath

Greg Drayer

Mohith Prabhu

Sudeshna Bhattacharya

Arduino Engineering Kit, the new kit from Arduino in partnership with MathWorks, is all set to hit the market! Get more details at https://blog.arduino.cc/2018/05/12/arduino-goes-to-college-with-the-new-arduino-engineering-kit/
https://www.mathworks.com/campaigns/products/arduino-kit.html

The components of the kit can be assembled to three projects:
1. Self-Balancing Motorcycle: This motorcycle will maneuver on its own on various terrains and remain upright using a flywheel for balance.
2. Mobile Rover: This vehicle can navigate between given reference points, move objects with a forklift, and much more.
3. Whiteboard Drawing Robot: This amazing robot can take a drawing it's given and replicate it on a whiteboard.

Guess what, the kit also includes a one-year individual license for MATLAB and Simulink :)

Grab a kit for yourself: https://store.arduino.cc/usa/arduino-engineering-kit

This kit is already in news, see:
https://www.sensorsmag.com/components/collaborators-offer-arduino-engineering-kit-for-students
https://www.electronicsweekly.com/news/business/527674-2018-05/

Hans Scharler

Are you using this hardware support package for a project? Check out the Maker Community to discuss hardware projects. https://www.mathworks.com/matlabcentral/discussions/maker/46-simulink-support-package-for-arduino-hardware

Antonin

R2016b users, it appears that one third party tool (Ostermiller circular buffer) is now redirecting to a secured server that uses a certificate that the default R2016b MATLAB installation doesn't have.
This leads to installation errors where you see a pop-up advising you to call technical support.
The following bug report, related to the same problem affecting MinGW provides a way to fix this problem until we find a more permanent solution.
https://www.mathworks.com/support/bugreports/1507667
This only affects R2016b, the missing certificate is part of R2017a and later releases.
I hope it helps,
Antonin.

Venkatesh Chilapur

Rushikesh Pawar

Pradeep KS

MATLAB R2018a is out!!
We introduced Simulink IO, allowing you to instantaneously run simulation on your host computer while accessing peripherals on your Arduino board.
https://www.mathworks.com/help/releases/R2018a/supportpkg/arduino/ug/simulink-io.html

This feature gives pseudo real-time performance while used in conjunction with simulation pacing.
https://www.mathworks.com/help/releases/R2018a/simulink/ug/simulation-pacing.html

The first run of Simulink IO flashes our IO server on the Arduino board. Subsequent runs start in less than 10 seconds!

In R2018a, we also speed up the deployment by reducing subsequent build time for users without Simulink or Embedded coder license.

Enjoy!

James Hill

@Prasanth I had the same problem when I upgraded from v2017b to v2018a. I followed steps below but was unable to solve by doing that alone. I had to create and set a new working directory for v2018a while also deleting the ...\SupportPackages directory.

Pradeep KS

@Prasanth: Please let us know the MATLAB release version and host platform where you are getting the installation error.

Prasanth Sai

Mr. Pradeep KS I followed your three steps mentioned in previous information. But,still i'm facing this issue.

Pradeep KS

Fix Download Error while installing the MATLAB and Simulink Arduino Support package:

1. Go to folder location "C:\Users\<user id>\Downloads\MathWorks\SupportPackages" on your machine.
2. Delete all the old support package files and folders. Make sure the folder is empty.
3. Try installing Support package from Add-On Manager.

Prasanth Sai

Download Error

There was a problem downloading the support package. To resolve this issue, see this MATLAB Answer

please help me out from this error. error occurred while trying to install simulink support package for Arduino hardware

Pradeep KS

@Adarsh: Please let us know the version of MATLAB you are using along with the error log.

Adarsh P S

its not working I cant install this package without this i cant complete engineering Project

liang wang

Venkatesh Chilapur

Please can you try this:
1. Login as Administrator
2. Install MATLAB
3. Install Arduino Due support package
4. Try deploying the Arduino Due model.

Michael McKee

Hello all,
I am just getting started with the Arduino Due and managed to get the Simulink Toolbox installed (at least it says it's installed) after many errors and trial and error it finally started working and I was able to load a test.slx file in order to do a simple test but I get about half way through the simulation and keep getting this error. It seems that I am missing a key file in my root directory. Can any one please help:

Simulation 2 2 Clear
04:18 PM Elapsed: 4 sec
### Starting build procedure for model: Arduino_test
Code Generation 1
Elapsed: 3 sec
/Users/Bigred7/Documents/MATLAB/SupportPackages/R2017a/3P.instrset/idepkgs/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc -Os -c -g -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -DARDUINO=10607 -MMD -MP -MF"Arduino_test.dep" -MT"Arduino_test.o" -MD -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON -DUSB_MANUFACTURER=\""Unknown\"" -DUSB_PRODUCT=\""Arduino Due\"" -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_DUE_ -DMODEL=Arduino_test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DUNIX -DON_TARGET_WAIT_FOR_START=1 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -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_TIMERCOUNT=26250 -DMW_SAM_CLOCKID=TC_CMR_TCCLKS_TIMER_CLOCK3 -D_RTT_BAUDRATE_SERIAL0_=115200 -D_RTT_BAUDRATE_SERIAL1_=115200 -D_RTT_BAUDRATE_SERIAL2_=115200 -D_RTT_BAUDRATE_SERIAL3_=115200 -D_RTT_ANALOG_REF_=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DON_TARGET_WAIT_FOR_START=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=Arduino_test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DUNIX -I/Users/Bigred7/Documents/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/arduinotargetdemos -I/Users/Bigred7/Documents/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinobase/include -I/Users/Bigred7/Documents/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinobase/blocks/sfcn/include -I/Users/Bigred7/Documents/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/arduinotargetdemos/Arduino_test_ert_rtw -I/Applications/MATLAB_R2017a.app/extern/include -I/Applications/MATLAB_R2017a.app/simulink/include -I/Applications/MATLAB_R2017a.app/rtw/c/src -I/Applications/MATLAB_R2017a.app/rtw/c/src/ext_mode/common -I/Applications/MATLAB_R2017a.app/rtw/c/ert -I/Applications/MATLAB_R2017a.app/toolbox/coder/rtiostream/src/utils -I/Users/Bigred7/Documents/MATLAB/SupportPackages/R2017a/3P.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/system/libsam -I/Users/Bigred7/Documents/MATLAB/SupportPackages/R2017a/3P.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/system/CMSIS/CMSIS/Include -I/Users/Bigred7/Documents/MATLAB/SupportPackages/R2017a/3P.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/system/CMSIS/Device/ATMEL -I/Users/Bigred7/Documents/MATLAB/SupportPackages/R2017a/3P.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/cores/arduino -I/Users/Bigred7/Documents/MATLAB/SupportPackages/R2017a/3P.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/cores/arduino/avr -I/Users/Bigred7/Documents/MATLAB/SupportPackages/R2017a/3P.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/variants/arduino_due_x -I/Users/Bigred7/Documents/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/include -I/Users/Bigred7/Documents/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/scheduler/include -I/Users/Bigred7/Documents/MATLAB/SupportPackages/R2017a/toolbox/target/shared/externalmode_daemon/include -o Arduino_test.o Arduino_test.c
/bin/sh: /Users/Bigred7/Documents/MATLAB/SupportPackages/R2017a/3P.instrset/idepkgs/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc: No such file or directory
gmake: *** [Arduino_test.o] Error 127
### Build procedure for model: 'Arduino_test' aborted due to an error.
Error(s) encountered while building "Arduino_test":
### Failed to generate all binary outputs.

Thanks you.

john wylie

I get "Something Unexpected Occurred To resolve this issue, contact Technical Support" on R2017b

Any ideas?

I'm using Mac btw

Jules A

To all those who get this long error message, starting with C:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc

Solution: Disable your antivirus.

Greg Drayer

Hello all - In case of error messages or technical issues related to the Simulink Support Package for Arduino Hardware, you can use the MATLAB Answers forum, in which the community helps address such questions. Some issues may persist or not have an answer in the forum; in such case, you can always reach out to our Technical Support team, who will do their best to assist in addressing persisting issues: https://www.mathworks.com/support/contact_us.html

Tobias Wzl

I Have a to flash my simulink model on my arduino Mega, every time I try to do it I get the Error " unable to find a register to spill in class 'POINTER_REGS ". Why does this Error appear always?

bueny t

Hi Guys,
I solved the installation problem with the error massage "Installation failed, contact technical support."
Download the .zip-file "ostermillerutils-1.08.02-bin" from: https://ostermiller.org/utils/download.html .
Paste the .zip-file to \MathWorks\SupportPackages\R2016b\archives\3p .
Install the support package again.

Arnold

This package will (may?) fail to install the required third party software for Matlab R2016b. The trouble seems to be a bug in the java unzip utility that MW uses to unzip the third party software. To verify that this is the case, look at the log file generated in
/tmp/mathworks_<username>.log (for linux).

If you see complaints like:
Caused by: com.mathworks.instructionset.InstructionSetException: java.util.zip.ZipException: archive is +not a ZIP archive
at com.mathworks.instructionset.InstructionSet.main(InstructionSet.java:371) Caused by: java.util.zip.ZipException: archive is not a ZIP archive

then try applying this patch:

https://www.mathworks.com/support/bugreports/1507667

NOTE: this patch sounds like it has nothing to do with the problem at hand and is only applicable to Matlab support the MinGW Compiler. This is not the case.

Mathworks really needs to get it together and DOCUMENT THIS PROBLEM IN THE PACKAGE DESCRIPTION. They say the package is functional for R2013a and beyond which is disingenuous at best.

Arnold

This package is garbage.

I have tried installing on two separate machines today, one linux and one windows, and both have failed with an error message just saying "Installation failed, contact technical support."

Sudeshna Bhattacharya

@saiful anuar: The build process for MKR1000 should take similar time as for other Arduino boards. If you are including any blocks from Arduino WiFi library or trying External Mode over WiFi then Simulink waits to obtain the IP address from the MKR1000. This may take some time.

Can you send the benchmark: time taken to build and upload for other Arduino boards vs MKR1000?

Sudeshna Bhattacharya

@Gerry Stoye: Looks like the model still holds the External mode configuration. It is trying to include the files meant for External mode during deployment. You can try these:

- Set the simulation mode of the model to External.
- With your model open and active, execute >>get_param(gcs,'ExtMode'). If the result is 'on' then set it to 'off' by executing >>set_param(gcs,'ExtMode','off').

Try to deploy the model. If error still persists then:

- Goto Simulink toolbar in the model > Tools > Model Explorer > Model Hierarchy. Click on Simulink Root in the left side of the pane. Select the model name. You can see two configuration settings: Configuration and External Mode Configuration in middle pane. If you see that External Mode Configuration (Active) and in green color then right click on Configuration and click Activate. You should see Configuration (Active) and in green color. Close the Model Explorer and try to deploy the model.

Sudeshna Bhattacharya

@Nicole Bauer: I am assuming that you are talking about the model present in Embedded Coder Target for Arduino submission https://www.mathworks.com/matlabcentral/fileexchange/30277-embedded-coder-target-for-arduino. If you check the comments in this link you will find some suggestions such as:

- When you have message like "... does not exist", it looks that directory "blocks" is not on the MATLAB path. It should be, because it is done in function "setup_customtarget_arduino.m" on first functional line and next this path is saved:
addpath(fullfile(pwd,'arduino_ec'), fullfile(pwd,'blocks'))
result = savepath;
Try to run "setup_customtarget_arduino.m" again.

- The message "S-Function 'sfunar_digitalOutput' does not exist" means that S-Funtions were not created (compiled) during the setup. Please check/pick-up the C-compiler running of:
mex -setup
Then re-compile the S-Functions via script:
build_all_sfunctions

After that, in the directory "blocks" should be files with extension ".mexw32" resp. ".mexw64", depending on MATLAB version

Gerry Stoye

I can run my model in external Mode, but when i Try to Deploy it the following Error occurs:

IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o io_wrappers.o C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/src/io_wrappers.cpp
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-g++ -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"arduinoAVRScheduler.dep" -MT"arduinoAVRScheduler.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=Schwebeball_geregelt_drauf -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=1 -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=1 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=64911 -DMW_SCHEDULERCOUNTER=1 -D_RTT_BAUDRATE_SERIAL0_=19200 -D_RTT_ANALOG_REF_=1 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=Schwebeball_geregelt_drauf -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/gerry/OneDrive/DOKUME~1/HOCHSC~1/SEMEST~3/REGELU~1/Projekt -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/blocks/sfcn/include -IC:/Users/gerry/OneDrive/DOKUME~1/HOCHSC~1/SEMEST~3/REGELU~1/Projekt/Schwebeball_geregelt_drauf_ert_rtw -IC:/PROGRA~1/MATLAB/R2017b/extern/include -IC:/PROGRA~1/MATLAB/R2017b/simulink/include -IC:/PROGRA~1/MATLAB/R2017b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017b/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o arduinoAVRScheduler.o C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/registry/../scheduler/src/arduinoAVRScheduler.cpp
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-gcc -std=gnu11 -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"rtiostream_interface.dep" -MT"rtiostream_interface.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=Schwebeball_geregelt_drauf -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=1 -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=1 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=64911 -DMW_SCHEDULERCOUNTER=1 -D_RTT_BAUDRATE_SERIAL0_=19200 -D_RTT_ANALOG_REF_=1 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=Schwebeball_geregelt_drauf -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/gerry/OneDrive/DOKUME~1/HOCHSC~1/SEMEST~3/REGELU~1/Projekt -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/blocks/sfcn/include -IC:/Users/gerry/OneDrive/DOKUME~1/HOCHSC~1/SEMEST~3/REGELU~1/Projekt/Schwebeball_geregelt_drauf_ert_rtw -IC:/PROGRA~1/MATLAB/R2017b/extern/include -IC:/PROGRA~1/MATLAB/R2017b/simulink/include -IC:/PROGRA~1/MATLAB/R2017b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017b/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include -o rtiostream_interface.o C:/PROGRA~1/MATLAB/R2017b/rtw/c/src/ext_mode/common/rtiostream_interface.c
C:/PROGRA~1/MATLAB/R2017b/rtw/c/src/ext_mode/common/rtiostream_interface.c:29:30: fatal error: rtiostream_utils.h: No such file or directory
#include "rtiostream_utils.h"
^
compilation terminated.
gmake: *** [rtiostream_interface.o] Error 1
The make command returned an error of 2
Der Befehl "An_error_occurred_during_the_call_to_make" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
### Build procedure for model: 'Schwebeball_geregelt_drauf' aborted due to an error.
Error(s) encountered while building "Schwebeball_geregelt_drauf":
### Failed to generate all binary outputs.

Gerry Stoye

test

Michael Reimer

I solved my problem: BitDefender Antivirus -> Disable -> Worked

Michael Reimer

I have the problem that it has a permission fail with file MW_digitalio.cpp fatal error: opening dependency file Permission denied. Has anybody the same problem and solved it ?

Build 3 1 Clear
04:49 PM Elapsed: 32 sec
### Starting build procedure for model: arduino_led
### Generating code and artifacts to 'Model specific' folder structure
Code Generation 1
Elapsed: 24 sec
### Generating code into build folder: C:\Users\Michael\Documents\MATLAB\arduino_led_ert_rtw
### Invoking Target Language Compiler on arduino_led.rtw
### Using System Target File: C:\MATLAB\R2017b\rtw\c\ert\ert.tlc
### Loading TLC function libraries
### Initial pass through model to cache user defined code
.
### Caching model source code
### Writing header file arduino_led_types.h
### Writing header file arduino_led.h
### Writing source file arduino_led.c
.
### Writing header file rtwtypes.h
### Writing header file multiword_types.h
### Writing header file rt_nonfinite.h
### Writing source file rt_nonfinite.c
### Writing header file rtGetInf.h
### Writing source file rtGetInf.c
### Writing header file rtGetNaN.h
.
### Writing source file rtGetNaN.c
### Writing header file arduino_led_private.h
### Writing header file rtmodel.h
### Writing source file arduino_led_data.c
### Writing source file ert_main.c
### TLC code generation complete.
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: Arduino AVR v1.8.1 | gmake (64-bit Windows)
### Creating 'C:\Users\Michael\Documents\MATLAB\arduino_led_ert_rtw\arduino_led.mk' ...
### Building 'arduino_led': "C:\MATLAB\R2017b\bin\win64\gmake" -f arduino_led.mk all
C:\Users\Michael\Documents\MATLAB\arduino_led_ert_rtw>cd .
C:\Users\Michael\Documents\MATLAB\arduino_led_ert_rtw>if "" == "" ("C:\MATLAB\R2017b\bin\win64\gmake" -f arduino_led.mk all ) else ("C:\MATLAB\R2017b\bin\win64\gmake" -f arduino_led.mk )
C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-g++ -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"MW_digitalio.dep" -MT"MW_digitalio.o" -Os -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_LEONARDO_ -DUSB_VID=0x2341 -DUSB_PID=0x8036 -DUSB_MANUFACTURER=\""Unknown\"" -DUSB_PRODUCT=\""Arduino Leonardo\"" -DMODEL=arduino_led -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -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=3 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=59286 -DMW_SCHEDULERCOUNTER=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_ANALOG_REF_=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduino_led -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Michael/Documents/MATLAB -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/include -IC:/Users/Michael/Documents/MATLAB/arduino_led_ert_rtw -IC:/MATLAB/R2017b/extern/include -IC:/MATLAB/R2017b/simulink/include -IC:/MATLAB/R2017b/rtw/c/src -IC:/MATLAB/R2017b/rtw/c/src/ext_mode/common -IC:/MATLAB/R2017b/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/leonardo -IC:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/scheduler/include -o MW_digitalio.o C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/src/MW_digitalio.cpp
C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinobase/src/MW_digitalio.cpp:35:1: fatal error: opening dependency file MW_digitalio.dep: Permission denied
}
^
compilation terminated.
gmake: *** [MW_digitalio.o] Error 1
C:\Users\Michael\Documents\MATLAB\arduino_led_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
C:\Users\Michael\Documents\MATLAB\arduino_led_ert_rtw>An_error_occurred_during_the_call_to_make
Der Befehl "An_error_occurred_during_the_call_to_make" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
### Creating HTML report file arduino_led_codegen_rpt.html
### Build procedure for model: 'arduino_led' aborted due to an error.
Error(s) encountered while building "arduino_led":
### Failed to generate all binary outputs.

Nicole Bauer

Oh, my first post is missing.

If I try to run or generate the code of the myarduino_blink_double example, following error occurs:

Error in S-function 'myarduino_blink_double/Digital Output1': S-Function 'sfunar_digitalOutput' does not exist

I'm using R2017a. Is that the problem?
Can anybody help me?

saiful anuar

Hi,

I'm having problem using MKR1000 board. The problem is that the 'Building' time takes too long to finish uploading the simulink blocks/codes. I already check the board connection with arduino IDE and there is no problem with it, in terms of firmware

Any idea why this is happening?

Thanks
saiful

Nicole Bauer

I'm using R2017a. Is that the problem?

Ravleen Kaur Dehiya

Hi,
I am getting the following error when i try to implement the model on Arduino DUE:

### Generating code into build folder: C:\Users\Ravleen\Documents\MATLAB\2k18\arduino_led_ert_rtw
### Invoking Target Language Compiler on arduino_led.rtw
### Using System Target File: C:\Program Files\MATLAB\R2017a\rtw\c\ert\ert.tlc
### Loading TLC function libraries
### Initial pass through model to cache user defined code
.
### Caching model source code
### Writing header file arduino_led.h
### Writing header file arduino_led_types.h
### Writing source file arduino_led.c
### Writing header file rtwtypes.h
.
### Writing header file arduino_led_private.h
### Writing source file arduino_led_data.c
### Writing header file rtmodel.h
### Writing source file ert_main.c
### TLC code generation complete.
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: Arduino ARM v1.6.7 | gmake (64-bit Windows)
### 'C:\Users\Ravleen\Documents\MATLAB\2k18\arduino_led_ert_rtw\arduino_led.mk' is up to date
### Building 'arduino_led': "C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f arduino_led.mk all
C:\Users\Ravleen\Documents\MATLAB\2k18\arduino_led_ert_rtw>cd .
C:\Users\Ravleen\Documents\MATLAB\2k18\arduino_led_ert_rtw>if "" == "" ("C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f arduino_led.mk all ) else ("C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f arduino_led.mk )
C:/ProgramData/MATLAB/SupportPackages/R2017a/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 -g -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -DARDUINO=10607 -MMD -MP -MF"MW_digitalio.dep" -MT"MW_digitalio.o" -MD -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON -DUSB_MANUFACTURER=\""Unknown\"" -DUSB_PRODUCT=\""Arduino Due\"" -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_DUE_ -DMODEL=arduino_led -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -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_TIMERCOUNT=328125 -DMW_SAM_CLOCKID=TC_CMR_TCCLKS_TIMER_CLOCK4 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_BAUDRATE_SERIAL2_=9600 -D_RTT_BAUDRATE_SERIAL3_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduino_led -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Ravleen/Documents/MATLAB/2k18 -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinobase/include -IC:/Users/Ravleen/Documents/MATLAB/2k18/arduino_led_ert_rtw -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/system/libsam -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/system/CMSIS/CMSIS/Include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/system/CMSIS/Device/ATMEL -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/cores/arduino/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/variants/arduino_due_x -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/shared/externalmode_daemon/include -o MW_digitalio.o C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinobase/src/MW_digitalio.cpp
The system cannot find the path specified.
gmake: *** [MW_digitalio.o] Error 1
C:\Users\Ravleen\Documents\MATLAB\2k18\arduino_led_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
C:\Users\Ravleen\Documents\MATLAB\2k18\arduino_led_ert_rtw>An_error_occurred_during_the_call_to_make
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.
### Creating HTML report file arduino_led_codegen_rpt.html
### Build procedure for model: 'arduino_led' aborted due to an error.
Error(s) encountered while building "arduino_led":
### Failed to generate all binary outputs.

Also, I would like to inform that my command window shows that your device is connected.

Pradeep KS

Hi Syed,
I see you have space in your current working directory "D:/Matlab project". Please remove the space and try deploying the model.
I hope this is helpful.

SYED AFDAR

dear mr pradeep
Help me please !!! anyone !!!
C:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc -std=gnu11 -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10613 -MMD -MP -MF"afmotor_v2.dep" -MT"afmotor_v2.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=afmotor_v2 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DARDUINO=105 -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=1 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=62411 -DMW_SCHEDULERCOUNTER=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=afmotor_v2 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/Matlab project -ID:/Matlab/simulink/include/sf_runtime -ID:/Matlab project/afmotor_v2_ert_rtw -ID:/Matlab/bin -ID:/Matlab/extern/include -ID:/Matlab/simulink/include -ID:/Matlab/rtw/c/src -ID:/Matlab/rtw/c/src/ext_mode/common -ID:/Matlab/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/shared/externalmode_daemon/include -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10613 -MMD -MP -MF"afmotor_v2.dep" -MT"afmotor_v2.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=afmotor_v2 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DARDUINO=105 -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=1 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=62411 -DMW_SCHEDULERCOUNTER=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=afmotor_v2 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/Matlab project -ID:/Matlab/simulink/include/sf_runtime -ID:/Matlab project/afmotor_v2_ert_rtw -ID:/Matlab/bin -ID:/Matlab/extern/include -ID:/Matlab/simulink/include -ID:/Matlab/rtw/c/src -ID:/Matlab/rtw/c/src/ext_mode/common -ID:/Matlab/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/shared/externalmode_daemon/include -c -o afmotor_v2.o afmotor_v2.c
avr-gcc: error: project: No such file or directory
avr-gcc: error: project/afmotor_v2_ert_rtw: No such file or directory
avr-gcc: error: project: No such file or directory
avr-gcc: error: project/afmotor_v2_ert_rtw: No such file or directory
gmake: *** [afmotor_v2.o] Error 1
The make command returned an error of 2
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.

dgmcik

Alessandro Cestana

elisa giani

hello, I'm using Matlab 2016a to run the example file "afmotor_v2". it keeps giving me the error: "MW_target_hardware_resources.h": no such file or directory.

the .h file should be already in my computer or it should be created when i deploy the model on the hardware?

tom tsui

Is it can be using in the version of 2010a?

Longbo Wang

gary coons

I am getting this compiling error, and the file referenced is not in the folder. Is there a reason for this, I have already downloaded the simulink Arduino DUE support package

IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/cores/arduino/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/variants/arduino_due_x -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/shared/externalmode_daemon/include -o MW_analogWriteDAC.o C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinobase/src/MW_analogWriteDAC.cpp
The system cannot find the path specified.
gmake: *** [MW_analogWriteDAC.o] Error 1
The make command returned an error of 2
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.
### Build procedure for model: 'FilterTremolo' aborted due to an error.
Error(s) encountered while building "FilterTremolo":
### Failed to generate all binary outputs.

Andreas Nagl

Hello,

when trying the 'arduino_gettingstarted' example, I receive an error:

The following error occurred during deployment to your hardware board:
Could not automatically set the bootloader COM port for your Leonardo board. This may be due to a disconnected or unrecognized board.

I use an Arduino Leonardo ETH. Is the ETH option not supported or do I have a different problem?

Thanks a lot!

Best,
Andreas

Antonin

Hi Mohammad,
In case of abruptly interrupted installations, I have seen cases where reinstalling is not able to recover from the previously failing installation. One (dirty) way to fix this on Windows is to manually delete the content of the 3 following folders.
C:\Users\your_username\Downloads\MathWorks\SupportPackages\R2017b (or your version)
C:\ProgramData\MATLAB\SupportPackages\R2017b (or your version)
C:\Users\your_username\AppData\Local\Temp (or your Windows Temp folder defined by %Temp%)
DISCLAIMER: This will erase all support packages, use at your own risk, better to follow what the message says and call tech support, there is no guarantee that this will work, etc.
I hope it helps,
Antonin.

Mohammad

I get this message when I tried to install the package:
Hi,
"Something Unexpected Occurred

To resolve this issue, contact Technical Support
"

Can you please help me?

abuyahya chandir

i got this error:
C:/ProgramData/MATLAB/SupportPackages/R2016b/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/tools/avr/bin/avr-g++ -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10613 -MMD -MP -MF"MW_SerialWrite.dep" -MT"MW_SerialWrite.o" -Os -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_MEGA2560_ -D_RTT_USE_SERIAL2_ -D_RTT_USE_SERIAL1_ -DMODEL=Final_3DOF -DNUMST=2 -DNCSTATES=3 -DHAVESTDIO -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=1 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -DMW_TIMERID=5 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=64286 -DMW_SCHEDULERCOUNTER=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_BAUDRATE_SERIAL2_=9600 -D_RTT_BAUDRATE_SERIAL3_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -DMODEL=Final_3DOF -DNUMST=2 -DNCSTATES=3 -DHAVESTDIO -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/arduinobase/blocks/sfcn/include -IC:/PROGRA~1/MATLAB/R2016b/simulink/include/sf_runtime -ID:/uni_Doc/BSC_project/GCRC_MATLAB_tests/final_3dof/3DOF_Copy(2)/Final_3DOF_ert_rtw -ID:/uni_Doc/BSC_project/GCRC_MATLAB_tests/final_3dof/3DOF_Copy(2) -IC:/PROGRA~1/MATLAB/R2016b/extern/include -IC:/PROGRA~1/MATLAB/R2016b/simulink/include -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2016b/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2016b/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/arduino/avr/variants/mega -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/arduinotarget/registry/../include -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/arduinotarget/registry/../scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2016b/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/shared/externalmode_daemon/include -o "MW_SerialWrite.o" "C:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/arduinobase/src/MW_SerialWrite.cpp"
C:/ProgramData/MATLAB/SupportPackages/R2016b/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc -std=gnu11 -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10613 -MMD -MP -MF"Final_3DOF.dep" -MT"Final_3DOF.o" -Os -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_MEGA2560_ -D_RTT_USE_SERIAL2_ -D_RTT_USE_SERIAL1_ -DMODEL=Final_3DOF -DNUMST=2 -DNCSTATES=3 -DHAVESTDIO -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=1 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -DMW_TIMERID=5 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=64286 -DMW_SCHEDULERCOUNTER=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_BAUDRATE_SERIAL2_=9600 -D_RTT_BAUDRATE_SERIAL3_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_OVERRUN_DIGITAL_PIN_=13 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -DMODEL=Final_3DOF -DNUMST=2 -DNCSTATES=3 -DHAVESTDIO -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/arduinobase/blocks/sfcn/include -IC:/PROGRA~1/MATLAB/R2016b/simulink/include/sf_runtime -ID:/uni_Doc/BSC_project/GCRC_MATLAB_tests/final_3dof/3DOF_Copy(2)/Final_3DOF_ert_rtw -ID:/uni_Doc/BSC_project/GCRC_MATLAB_tests/final_3dof/3DOF_Copy(2) -IC:/PROGRA~1/MATLAB/R2016b/extern/include -IC:/PROGRA~1/MATLAB/R2016b/simulink/include -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2016b/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2016b/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/arduino/avr/variants/mega -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/arduinotarget/registry/../include -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/arduinotarget/registry/../scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2016b/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/shared/externalmode_daemon/include -o "Final_3DOF.o" "Final_3DOF.c"
In file included from Final_3DOF.c:1:0:
Final_3DOF.h:264:1: error: type 'struct <anonymous>' is too large
} BlockIO_Final_3DOF;
^
gmake: *** [Final_3DOF.o] Error 1
### Build procedure for model: 'Final_3DOF' aborted due to an error.
Error(s) encountered while building "Final_3DOF":
### Failed to generate all binary outputs.

sellam madjid

s-one

Yakun Zhang

Pradeep KS

Hi Mustafa,
Simulink Arduino Support package has a new version 17.1.4 published with a fix to handle the space in the path in “Program Files”. Please make sure you are installing the latest version of Simulink Arduino support package.

Issue Description:
It looks like 8dot3 feature is disabled in your Windows 10 machine. Please refer below link for more details.
https://technet.microsoft.com/en-us/library/ff621566(v=ws.11).aspx

The DefaultValue can have the following values:
• 0: Enables 8dot3 name creation for all volumes on the system.
• 1: Disables 8dot3 name creation for all volumes on the system.
• 2: Sets 8dot3 name creation on a per volume basis.
• 3: Disables 8dot3 name creation for all volumes except the system volume.

How to Enable 8dot3name:

1. Open a cmd as Admin and query your existing setting to restore it later:

fsutil.exe 8dot3name query

then enable:

fsutil.exe 8dot3name set 0

2. Install MATLAB
3. Run MATLAB
4. Install “Simulink Arduino Support package”
5. Try to deploy the Arduino model.

Mustafa Jawadwala

Hello folk, I am using windows 10 and i keep seeing this error. I have been trying since 2 days and have tried all options of installing and reinstalling the packages but it hasn't help

'C:\Program' is not recognized as an internal or external command,
operable program or batch file

Has anyone seen this error .. just a quick google search shows that it has been around since a while but i can't seem to get it to work with either arduino Uno, Due or 2650

Bibin

Hi, the previous generation ArduinoIO library had a library block to read encoders. I couldnt find a replacement for that in the Arduino Simulink Support package. Could you guys please suggest if there is any other way around ? Appreciate your help.

Antonin

- Supports Mac, Linux, Windows
- From 16b onwards, you can watch signals using External mode at the millisecond rate even on UNO.
- Using a multitasking re-entrant scheduler. This is hard real-time, interrupt based scheduling, you get the crème generated by Simulink by just specifying sample times in your model. Forget about that while() loop scheduling.
- Supports a wide variety of boards (Uno, Mega, Due, Leonardo, etc.)
You have in your hands a tool that sends Rovers to Mars, controls Formula 1 engines and is accessible to young students in the classroom.
Time to get dangerous...

Pradeep KS

Hi Raghvendra,
From your log, you are programming an Arduino Due board. But the the Wire library you are including is from AVR library which is not correct.

You should include Wire source files from the SAM library path as shown below:
C:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\hardware\sam\1.6.7\libraries\Wire\src

Raghvendra Cowlagi

I am trying to create a device driver block in Simulink for the Adafruit LSM303 IMU, but I keep running into compilation errors. I've copy-pasted the diagnostics output below. Any suggestions?
It seems to be looking for <avr/io.h> somewhere in the MATLAB support package path.

### Generating code into build folder: C:\Users\Raghu\Documents\Git-SRCL\rvc_teaching_matlab\ae4733\simulink-arduino\lsm303u_test\lsm303u_driver\lsm303u_test1_ert_rtw
### Invoking Target Language Compiler on lsm303u_test1.rtw
### Using System Target File: C:\Program Files\MATLAB\R2017a\rtw\c\ert\ert.tlc
### Loading TLC function libraries
......
### Initial pass through model to cache user defined code
.
### Caching model source code
.........................
### Writing header file lsm303u_test1.h
.
### Writing header file lsm303u_test1_types.h
### Writing header file rtwtypes.h
### Writing header file multiword_types.h
### Writing source file lsm303u_test1.c
### Writing header file lsm303u_test1_private.h
.
### Writing header file rtmodel.h
### Writing source file ert_main.c
### TLC code generation complete.
### Generating TLC interface API.
...
### Creating data type transition file lsm303u_test1_dt.h
.### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: Arduino ARM v1.6.7 | gmake (64-bit Windows)
### 'C:\Users\Raghu\Documents\Git-SRCL\rvc_teaching_matlab\ae4733\simulink-arduino\lsm303u_test\lsm303u_driver\lsm303u_test1_ert_rtw\lsm303u_test1.mk' is up to date
### Building 'lsm303u_test1': "C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f lsm303u_test1.mk all

C:\Users\Raghu\Documents\Git-SRCL\rvc_teaching_matlab\ae4733\simulink-arduino\lsm303u_test\lsm303u_driver\lsm303u_test1_ert_rtw>cd .

C:\Users\Raghu\Documents\Git-SRCL\rvc_teaching_matlab\ae4733\simulink-arduino\lsm303u_test\lsm303u_driver\lsm303u_test1_ert_rtw>if "" == "" ("C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f lsm303u_test1.mk all ) else ("C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f lsm303u_test1.mk )
C:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc -Os -c -g -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -DARDUINO=10607 -MMD -MP -MF"twi.dep" -MT"twi.o" -MD -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON -DUSB_MANUFACTURER=\""Unknown\"" -DUSB_PRODUCT=\""Arduino Due\"" -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_DUE_ -DMODEL=lsm303u_test1 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DON_TARGET_WAIT_FOR_START=1 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -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_TIMERCOUNT=131250 -DMW_SAM_CLOCKID=TC_CMR_TCCLKS_TIMER_CLOCK4 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_BAUDRATE_SERIAL2_=9600 -D_RTT_BAUDRATE_SERIAL3_=9600 -D_RTT_ANALOG_REF_=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DON_TARGET_WAIT_FOR_START=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=lsm303u_test1 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Raghu/Documents/Git-SRCL/rvc_teaching_matlab/ae4733/simulink-arduino/lsm303u_test/lsm303u_driver -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/arduino/avr/libraries/Wire -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/arduino/avr/libraries/Wire/src -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/arduino/avr/libraries/Wire/src/utility -IC:/Users/Raghu/Documents/Git-SRCL/rvc_teaching_matlab/ae4733/simulink-arduino/lsm303u_test/lsm303u_driver/include -IC:/Users/Raghu/Documents/Git-SRCL/rvc_teaching_matlab/ae4733/simulink-arduino/lsm303u_test/lsm303u_driver/lsm303u_test1_ert_rtw -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2017a/toolbox/coder/rtiostream/src/utils -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/system/libsam -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/system/CMSIS/CMSIS/Include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/system/CMSIS/Device/ATMEL -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/cores/arduino/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/variants/arduino_due_x -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/shared/externalmode_daemon/include -o twi.o C:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/arduino/avr/libraries/Wire/src/utility/twi.c
C:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:25:20: fatal error: avr/io.h: No such file or directory
#include <avr/io.h>
^
compilation terminated.
gmake: *** [twi.o] Error 1

C:\Users\Raghu\Documents\Git-SRCL\rvc_teaching_matlab\ae4733\simulink-arduino\lsm303u_test\lsm303u_driver\lsm303u_test1_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2

C:\Users\Raghu\Documents\Git-SRCL\rvc_teaching_matlab\ae4733\simulink-arduino\lsm303u_test\lsm303u_driver\lsm303u_test1_ert_rtw>An_error_occurred_during_the_call_to_make
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.

isk_ir

Hi, i am getting an erratic behaviour of an arduino2560 using the pwm-ports 44,45,46 (together with the digital ports 41-43,47-49 and the analog ports 9,12,13). Any ideas ?
Appreciate your help

Venkatesh Chilapur

Please try to re-install the support package and see if the error goes away. If the problem persists please contact Mathworks Technical support.

table

hey , Error when deploying simulink model to Arduino

C:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/Arduinoide.instrset/arduino-1.6.13/hardware/tools/avr/bin/avr-g++ -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10613 -MMD -MP -MF"MW_digitalio.dep" -MT"MW_digitalio.o" -Os -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_MEGA2560_ -DMODEL=arduino_gettingstarted -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=100000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_BAUDRATE_SERIAL2_=9600 -D_RTT_BAUDRATE_SERIAL3_=9600 -D_RTT_ANALOG_REF_=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=arduino_gettingstarted -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IE:/matlab experiment -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinobase/include -ID:/Program Files/MATLAB/R2017a/simulink/include/sf_runtime -IE:/matlab experiment/arduino_gettingstarted_ert_rtw -ID:/Program Files/MATLAB/R2017a/extern/include -ID:/Program Files/MATLAB/R2017a/simulink/include -ID:/Program Files/MATLAB/R2017a/rtw/c/src -ID:/Program Files/MATLAB/R2017a/rtw/c/src/ext_mode/common -ID:/Program Files/MATLAB/R2017a/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/arduino/avr/variants/mega -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/shared/externalmode_daemon/include -o MW_digitalio.o C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinobase/src/MW_digitalio.cpp
avr-g++: error: experiment: No such file or directory
avr-g++: error: Files/MATLAB/R2017a/simulink/include/sf_runtime: No such file or directory
avr-g++: error: experiment/arduino_gettingstarted_ert_rtw: No such file or directory
avr-g++: error: Files/MATLAB/R2017a/extern/include: No such file or directory
avr-g++: error: Files/MATLAB/R2017a/simulink/include: No such file or directory
avr-g++: error: Files/MATLAB/R2017a/rtw/c/src: No such file or directory
avr-g++: error: Files/MATLAB/R2017a/rtw/c/src/ext_mode/common: No such file or directory
avr-g++: error: Files/MATLAB/R2017a/rtw/c/ert: No such file or directory
gmake: *** [MW_digitalio.o] Error 1
### Build procedure for model: 'arduino_gettingstarted' aborted due to an error.
Error(s) encountered while building "arduino_gettingstarted":
### Failed to generate all binary outputs.

Venkatesh Chilapur

We are supporting WiFi ThingSpeak Read/Write Blocks in R2016b. If may want to upgrade to the same?

Nikolaus Parulian

Hi, is there any way to install "WiFi ThingSpeak Read" Simulink block in R2016a?
Appreciate your help

asante-agyei onwona

Christopher Durch

Hey,
I am using MATLAB R2016b with the Arduino Hardware Support Package. I got the following error while compiling and uploading to the Arduino ### Failed to generate all binary outputs.

Here is the code generation error report given by the Diagnostic Viewer of Simulink. Can anyone help me fixing this problem please?

"### Invoking Target Language Compiler on Regelkreis_d2c_Testmodell.rtw
### Using System Target File: C:\Program Files\MATLAB\R2016b\rtw\c\ert\ert.tlc
### Loading TLC function libraries
### Initial pass through model to cache user defined code
.
### Caching model source code
### Writing header file Regelkreis_d2c_Testmodell.h
### Writing header file Regelkreis_d2c_Testmodell_types.h
### Writing header file rtwtypes.h
### Writing source file Regelkreis_d2c_Testmodell.c
### Writing header file Regelkreis_d2c_Testmodell_private.h
.
### Writing source file Regelkreis_d2c_Testmodell_data.c
### Writing header file rtmodel.h
### Writing source file ert_main.c
### TLC code generation complete.
### Creating project marker file: rtw_proj.tmw
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: Arduino AVR v1.6.13 | gmake (64-bit Windows)
### Creating 'C:\Users\durcc\Documents\Regelkreis_d2c_Testmodell_ert_rtw\Regelkreis_d2c_Testmodell.mk' ...
### Building 'Regelkreis_d2c_Testmodell': C:\PROGRA~1\MATLAB\R2016b\bin\win64\gmake -f Regelkreis_d2c_Testmodell.mk all
C:/ProgramData/MATLAB/SupportPackages/R2016b/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc -std=gnu11 -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10613 -MMD -MP -MF"Regelkreis_d2c_Testmodell.dep" -MT"Regelkreis_d2c_Testmodell.o" -Os -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_MEGA2560_ -DMODEL=Regelkreis_d2c_Testmodell -DNUMST=2 -DNCSTATES=3 -DHAVESTDIO -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=1 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -DMW_TIMERID=1 -DMW_PRESCALAR=1024 -DMW_TIMERCOUNT=34286 -DMW_SCHEDULERCOUNTER=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_BAUDRATE_SERIAL2_=9600 -D_RTT_BAUDRATE_SERIAL3_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_NUMSERVOS_=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -DMODEL=Regelkreis_d2c_Testmodell -DNUMST=2 -DNCSTATES=3 -DHAVESTDIO -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/arduinobase/blocks/sfcn/include -IC:/Users/durcc/Documents/Regelkreis_d2c_Testmodell_ert_rtw -IC:/Users/durcc/Documents -IC:/Users/durcc/Documents/Programme/TestModellSimulink_Arduino -IC:/PROGRA~1/MATLAB/R2016b/extern/include -IC:/PROGRA~1/MATLAB/R2016b/simulink/include -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2016b/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2016b/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/arduino/avr/variants/mega -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/arduinotarget/registry/../include -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/arduinotarget/registry/../scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2016b/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/shared/externalmode_daemon/include -IC:/ProgramData/MATLAB/SupportPackages/R2016b/3P.instrset/arduinoide.instrset/arduino-1.6.13/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2016b/3P.instrset/arduinoide.instrset/arduino-1.6.13/libraries/Servo/src/avr -o "Regelkreis_d2c_Testmodell.o" "Regelkreis_d2c_Testmodell.c"
Regelkreis_d2c_Testmodell.c: In function 'Regelkreis_d2c_Testmodell_step':
Regelkreis_d2c_Testmodell.c:468:1: error: unable to find a register to spill in class 'POINTER_REGS'
}
^
Regelkreis_d2c_Testmodell.c:468:1: error: this is the insn:
(insn 561 560 563 38 (set (reg:SF 178 [ D.3181 ])
(mem:SF (post_inc:HI (reg:HI 214 [ ivtmp.32 ])) [4 MEM[base: _279, offset: 0B]+0 S4 A8])) Regelkreis_d2c_Testmodell.c:294 100 {*movsf}
(expr_list:REG_INC (reg:HI 214 [ ivtmp.32 ])
(nil)))
Regelkreis_d2c_Testmodell.c:468: confused by earlier errors, bailing out
gmake: *** [Regelkreis_d2c_Testmodell.o] Error 1
### Creating HTML report file Regelkreis_d2c_Testmodell_codegen_rpt.html
### Build procedure for model: 'Regelkreis_d2c_Testmodell' aborted due to an error.
Error(s) encountered while building "Regelkreis_d2c_Testmodell":
### Failed to generate all binary outputs."

I already tried to google it and I also tried to follow Pradeep KS's steps to solve my problem. I found component_tc.h in the right place but I could not find arduino ARMScheduler.h

Anyway I got no idea how to get my Simulink Model (simple closed loop control circuit with a PID-Controller and a transfer function) running on Arduino Mega 2560.

Thank you for your help and sorry for the large error code.

Pradeep KS

Hi Jonas,
Could you please check if CMSIS is correctly installed in the below mentioned path:
C:/ProgramData/MATLAB/SupportPackages/R2016b/3P.instrset/arduinoide.instrset/arduinosam-1.6.7/packages/arduino/hardware/sam/1.6.7/system/CMSIS

You can check by making sure that "component_tc.h" is present under folder:
F:\share\apps\RTT\Arduino\arduinosam-1.6.7\packages\arduino\hardware\sam\1.6.7\system\CMSIS\Device\ATMEL\sam3xa\include\component

From the error log, it looks like Timer library is mssing. Timer Library is part of CMSIS folder.
/../scheduler/include/arduinoARMScheduler.h:63:27: error: unknown type name 'Tc'

Jonas Dhom

How can I fix this Error. Please help

=== Simulation (Elapsed: 11 sec) ===
### Starting build procedure for model: Arduino
### Generating code into build folder: C:\Users\Jonas\Documents\MATLAB\Arduino_ert_rtw
Warning:Parameter precision loss occurred for 'Gain' of 'Arduino/Protection Board 1'. The parameter's value cannot be represented exactly using the run-time data type. A small quantization error has occurred. To disable this warning or error, in the Configuration Parameters > Diagnostics > Data Validity pane, set the 'Detect precision loss' option in the Parameters group to 'none'.
Warning:Parameter precision loss occurred for 'Gain' of 'Arduino/Protection Board 2'. The parameter's value cannot be represented exactly using the run-time data type. A small quantization error has occurred. To disable this warning or error, in the Configuration Parameters > Diagnostics > Data Validity pane, set the 'Detect precision loss' option in the Parameters group to 'none'.
Warning:Parameter precision loss occurred for 'Gain' of 'Arduino/Umrechnung'. The parameter's value cannot be represented exactly using the run-time data type. A small quantization error has occurred. To disable this warning or error, in the Configuration Parameters > Diagnostics > Data Validity pane, set the 'Detect precision loss' option in the Parameters group to 'none'.
Warning:Parameter precision loss occurred for 'Gain' of 'Arduino/Umrechnung1'. The parameter's value cannot be represented exactly using the run-time data type. A small quantization error has occurred. To disable this warning or error, in the Configuration Parameters > Diagnostics > Data Validity pane, set the 'Detect precision loss' option in the Parameters group to 'none'.
Warning:The output(s) read after the base-rate model step reflects intervening minor time steps. To observe data that is a snapshot of output(s) at major time steps, do one of the following:
* Place a Zero-Order Hold block before the continuous output port 'Arduino/Y1'.
* Clear Single output/update function, and read model output values after model_output call and before model_update call.
For more details, see "Single output/update function" in the Simulink documentation.
### Invoking Target Language Compiler on Arduino.rtw
### Using System Target File: C:\Program Files\MATLAB\R2016b\rtw\c\ert\ert.tlc
### Loading TLC function libraries
........
### Initial pass through model to cache user defined code
..
### Caching model source code
............................................
### Writing header file Arduino.h
.
### Writing header file Arduino_types.h
### Writing header file rtwtypes.h
### Writing header file multiword_types.h
### Writing source file Arduino.c
### Writing header file Arduino_private.h
.
### Writing source file Arduino_data.c
### Writing header file rtmodel.h
### Writing source file ert_main.c
### TLC code generation complete.
### Generating TLC interface API.
..........................
### Creating data type transition file Arduino_dt.h
.### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: Arduino ARM v1.6.7 | gmake (64-bit Windows)
### 'C:\Users\Jonas\Documents\MATLAB\Arduino_ert_rtw\Arduino.mk' is up to date
### Building 'Arduino': C:\PROGRA~1\MATLAB\R2016b\bin\win64\gmake -f Arduino.mk all
C:/ProgramData/MATLAB/SupportPackages/R2016b/3P.instrset/arduinoide.instrset/arduinosam-1.6.7/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc -Os -c -g -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -DARDUINO=10607 -MMD -MP -MF"Arduino.dep" -MT"Arduino.o" -MD -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON -DUSB_MANUFACTURER=\""Unknown\"" -DUSB_PRODUCT=\""Arduino Due\"" -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_DUE_ -DMODEL=Arduino -DNUMST=2 -DNCSTATES=6 -DHAVESTDIO -DON_TARGET_WAIT_FOR_START=1 -DONESTEPFCN=1 -DEXT_MODE=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=1 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -DMW_TIMERID=9 -DMW_TIMERCOUNT=13125 -DMW_SAM_CLOCKID=TC_CMR_TCCLKS_TIMER_CLOCK3 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_BAUDRATE_SERIAL2_=9600 -D_RTT_BAUDRATE_SERIAL3_=9600 -D_RTT_ANALOG_REF_=0 -DONESTEPFCN=1 -DEXT_MODE=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DON_TARGET_WAIT_FOR_START=1 -DTID01EQ=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -DMODEL=Arduino -DNUMST=2 -DNCSTATES=6 -DHAVESTDIO -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/arduinobase/blocks/sfcn/include -IC:/PROGRA~1/MATLAB/R2016b/simulink/include/sf_runtime -IC:/Users/Jonas/Documents/MATLAB/Arduino_ert_rtw -IC:/Users/Jonas/Documents/MATLAB -IC:/PROGRA~1/MATLAB/R2016b/extern/include -IC:/PROGRA~1/MATLAB/R2016b/simulink/include -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2016b/toolbox/coder/rtiostream/src/utils -IC:/ProgramData/MATLAB/SupportPackages/R2016b/3P.instrset/arduinoide.instrset/arduinosam-1.6.7/packages/arduino/hardware/sam/1.6.7/system/libsam -IC:/ProgramData/MATLAB/SupportPackages/R2016b/3P.instrset/arduinoide.instrset/arduinosam-1.6.7/packages/arduino/hardware/sam/1.6.7/system/CMSIS/CMSIS/Include -IC:/ProgramData/MATLAB/SupportPackages/R2016b/3P.instrset/arduinoide.instrset/arduinosam-1.6.7/packages/arduino/hardware/sam/1.6.7/system/CMSIS/Device/ATMEL -IC:/ProgramData/MATLAB/SupportPackages/R2016b/3P.instrset/arduinoide.instrset/arduinosam-1.6.7/packages/arduino/hardware/sam/1.6.7/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2016b/3P.instrset/arduinoide.instrset/arduinosam-1.6.7/packages/arduino/hardware/sam/1.6.7/cores/arduino/avr -IC:/ProgramData/MATLAB/SupportPackages/R2016b/3P.instrset/arduinoide.instrset/arduinosam-1.6.7/packages/arduino/hardware/sam/1.6.7/variants/arduino_due_x -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/arduinotarget/registry/../include -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/arduinotarget/registry/../scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/shared/externalmode_daemon/include -o "Arduino.o" "Arduino.c"
In file included from MW_target_hardware_resources.h:6:0,
from Arduino.h:42,
from Arduino.c:20:
C:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/arduinotarget/registry/../scheduler/include/arduinoARMScheduler.h:63:27: error: unknown type name 'Tc'
void Setup_SchedulerTimer(Tc *tc, uint32_t channel, uint32_t id, IRQn_Type irqn, uint8_t clockid, uint32_t tickcounter);
^
C:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/arduinotarget/registry/../scheduler/include/arduinoARMScheduler.h:63:66: error: unknown type name 'IRQn_Type'
void Setup_SchedulerTimer(Tc *tc, uint32_t channel, uint32_t id, IRQn_Type irqn, uint8_t clockid, uint32_t tickcounter);
^
C:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/arduinotarget/registry/../scheduler/include/arduinoARMScheduler.h:64:1: error: unknown type name 'boolean'
boolean MW_Arduino_Loop(void);
^
gmake: *** [Arduino.o] Error 1
### Creating HTML report file Arduino_codegen_rpt.html
### Build procedure for model: 'Arduino' aborted due to an error.
Error:Error(s) encountered while building "Arduino":
### Failed to generate all binary outputs.

Mathias

One of the most used hardware packages and installation does not work. Unbelievable!
Mac OS sierra 10.12.5, Matlab R2016b (and 2017a). In 2016b the download starts but doesn't seem to end (even after 20 hrs download). In 2017a the download gui opens but stays white without any content.

Olivier Cois

Compilation Error using R2017a on Arduino Due
I got the following Error Message by trying to compile for Arduino Due using R2017a - Please Help...

=== Simulation (Elapsed: 10 sec) ===
### Starting build procedure for model: TestArduinoR2017a
Error:C:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc -Os -c -g -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -DARDUINO=10607 -MMD -MP -MF"TestArduinoR2017a.dep" -MT"TestArduinoR2017a.o" -MD -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON -DUSB_MANUFACTURER=\""Unknown\"" -DUSB_PRODUCT=\""Arduino Due\"" -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_DUE_ -DMODEL=TestArduinoR2017a -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DON_TARGET_WAIT_FOR_START=1 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -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_TIMERCOUNT=131250 -DMW_SAM_CLOCKID=TC_CMR_TCCLKS_TIMER_CLOCK4 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_BAUDRATE_SERIAL2_=9600 -D_RTT_BAUDRATE_SERIAL3_=9600 -D_RTT_ANALOG_REF_=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DON_TARGET_WAIT_FOR_START=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=TestArduinoR2017a -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/coo2sh/Documents/Arduino -IC:/Users/coo2sh/Documents/Arduino/TestArduinoR2017a_ert_rtw -IC:/PROGRA~1/Matlab/R2017a/extern/include -IC:/PROGRA~1/Matlab/R2017a/simulink/include -IC:/PROGRA~1/Matlab/R2017a/rtw/c/src -IC:/PROGRA~1/Matlab/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/Matlab/R2017a/rtw/c/ert -IC:/PROGRA~1/Matlab/R2017a/toolbox/coder/rtiostream/src/utils -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/system/libsam -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/system/CMSIS/CMSIS/Include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/system/CMSIS/Device/ATMEL -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/cores/arduino/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/sam/1.6.7/variants/arduino_due_x -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/shared/externalmode_daemon/include -o TestArduinoR2017a.o TestArduinoR2017a.c
The system cannot find the path specified.
gmake: *** [TestArduinoR2017a.o] Error 1
### Build procedure for model: 'TestArduinoR2017a' aborted due to an error.
Error:Error(s) encountered while building "TestArduinoR2017a":
### Failed to generate all binary outputs.
=== Model Save (Elapsed: 0.322 sec) ===

Ajay Paswan

Pradeep KS

Hi Om,
The error log shows that make utility is not able to resolve space in the gmake path i.e."E:\Program Files\MATLAB\R2016b\bin\win64\gmake". Could you please check if your system Environment "PATH" has any cygwin entry which might conflict with the Windows cmd shell utility.
If exists, please remove those paths and try building the model.

Note: Take a back of your PATH variable before modifying.

Om Sharma

Geting error during uploading simulink model in arduino. Please help

### Generating code into build folder: C:\Users\Om\Documents\MATLAB\untitled1_ert_rtw
### Invoking Target Language Compiler on untitled1.rtw
### Using System Target File: E:\Program Files\MATLAB\R2016b\rtw\c\ert\ert.tlc
### Loading TLC function libraries
### Initial pass through model to cache user defined code
.
### Caching model source code
### Writing header file untitled1.h
### Writing header file untitled1_types.h
### Writing source file untitled1.c
### Writing header file rtwtypes.h
### Writing header file untitled1_private.h
.
### Writing source file untitled1_data.c
### Writing header file rtmodel.h
### Writing source file ert_main.c
### TLC code generation complete.
### Creating project marker file: rtw_proj.tmw
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: Arduino ARM v1.6.7 | gmake (64-bit Windows)
### Creating 'C:\Users\Om\Documents\MATLAB\untitled1_ert_rtw\untitled1.mk' ...
### Building 'untitled1': E:\Program Files\MATLAB\R2016b\bin\win64\gmake -f untitled1.mk all
'E:\Program' is not recognized as an internal or external command,
operable program or batch file.
### Creating HTML report file untitled1_codegen_rpt.html
### Build procedure for model: 'untitled1' aborted due to an error.
Error(s) encountered while building "untitled1":
### Failed to generate all binary outputs.

Gerald Lee

Pradeep KS

Hi Roxy,
Only MATLAB and Simulink License is required to program the Arduino boards.
You need Simulink Coder License to view the generated code.

Roxy Short

Does this require Simulink coder?

Justin Mellor

Finally resolved - thanks to Guarav. Uninstalled the MATLAB and Simulink Arduino Hardware Support Packages. Re-installed (just the Simulink Package) and it works fine now. Not sure if there is any issue with installing the MATLAB package as well.

Justin Mellor

R2017a arduino_gettingstarted compilation error

I have followed the getting started instructions but get this compiler error:

C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/registry/../src/MW_ArduinoHWInit.cpp:33:43: error: 'Serial_begin' was not declared in this scope
Serial_begin(0, _RTT_BAUDRATE_SERIAL0_);
^
gmake: *** [MW_ArduinoHWInit.o] Error 1
### Build procedure for model: 'arduino_gettingstarted' aborted due to an error.

The MATLAB and Simulink HW Support Packages are installed and I have installed the MinGW64 compiler:
'MEX configured to use 'MinGW64 Compiler (C)' for C language compilation.'

What am I missing?

yeang Meng Hern


Hi,

Can someone know how to solve the following issue?:

- Tried to install the package Opening the .mlpkginstall file from within MATLAB.

- The following pop-up appears during the installation.

"Error installing third party package Arduino software: Invalid zip file ( than it has been reported the installation path)

Liberato Vitiello

Hi all,

Could someone help me with the following issue?:

- Tried to install the package Opening the .mlpkginstall file from within MATLAB.

- The following pop-up appears during the installation.

"Error installing third party package Arduino software: Invalid zip file ( than it has been reported the installation path)

abishek arjunan

good

Antonin

In 16b, we added drastic improvements to External mode on Arduino Uno, Mega, Mega ADK and Due.
On Uno and Mega, you can log 1 signal @1kHz without data drops. The limited memory of Uno will allow you to monitor up to 6 signals before you run out of memory.
We increased the baudrate of Uno and Mega boards to 921400 to further improve the experience, while Due still uses 115200.

This is at least 30 times faster than in previous versions, even on the Due board.

Alexis Estevez

sahil Kumar

Hi,
I have matlab R2013a and an arduino uno and have tried to download and install the support package for Arduino by both methods and it doesnt seem to work.
When I try to manually download it and load it through matlab the open folder does not show that file.
Whereas when I try to download and install it through it asks for permission but then the progress bar is shown stuck at about 80% and then after a while I get an error , please help.
Thanks

audi alahmad

thank you for help

Antonin

Hi Rami,
Not sure if you are looking for Linux support. If you are, note that Linux is supported as a host platform for this support package from R2015b onwards.
More on the system requirements at the following page:
http://www.mathworks.com/hardware-support/system-requirements.html
I hope it helps,
Thanks,
Antonin.

Rami Al Halabi

still not working on 2014a...why??

Dan Lluch

@ tin zar - This particular .mlplginstall file is functional for 13a and beyond... opening the file in 15a will initiate the installation process for the Simulink Support Package for Arduino Hardware.

you can see an overview of the arduino options with MathWorks tools and releases first introduced here:
http://www.mathworks.com/matlabcentral/answers/242924-arduino-support-from-matlab-and-simulink-across-releases

tin zar khaing wai

can this support package also work for matlab R2015a?

Shabbeer Basha

I am able to install but not able to open the library. Please help.

Sergei P.

Waleed El-Badry

The problem of installing the package on R2014a has been reported several times. It is ironic that MATLAB package is installed with no problems. The problem has been presentiment for months although other packages are installed successfully like Raspberry Pi and USB webcam

sai kiran

When I am trying to install the arduino package it says
Possible causes:
- You have recently cleared your MATLAB preferences, or
- You are using a shared MATLAB installation and the above support packages
were installed by another user.

I am not understanding what to do.
But i have successfully installed Arduino Due package. Can anyone help me

Klont

When I double-click the aruinoio.mlpkginstall file in the Current Folder window in Matlab 2014a on Ubuntu 12.04 LTS, I get an error-dialog stating:

MATLAB Support Package for Arduino Hardware cannot be installed on this system. It requires: Base Product: MATLAB Host Platforms: Win32,Win64,Mac64

How do I connect to Arduino from Matlab from Linux?

Sina

Hi. I am trying to use this package with an Arduino Uno board that's connected to a motor driver to drive a motor to my desired position and speed (later with implementing a PID controller).
I was wondering how I can use this package with the motor real time. Or how I can design the PID controller in Simulink for this application.
Thank you.

Carlos

Thanks Md. Ashfaque & Sreeram! As a temporary solution I used the for iterator block and buffered the bytes in an array. I shall look into custom blocks later on for better efficiency.

Sreeram

Hi Carlos,

There are two options
1) One could use for iterator block or something that can read bytes one by one and then buffer them as per application needs in the model
2) or on the contrary create a custom block that uses the Serial.readBytes function from the arduino standard library. http://arduino.cc/en/Serial/ReadBytes
For creating a Custom driver block one could follow the guide published at
http://www.mathworks.in/matlabcentral/fileexchange/39354-device-drivers

Hope this helps,
Thanks,
Sreeram Mohan

Md. Ashfaque

Hi Carlos,
The best way to transmit an array of characters/string is to use the s-function builder block and simply use the Serial.print() command that is used in the Arduino IDE.

Carlos

Hello, if I want to read multiple bytes of data in each time step, what I should do with the Serial Read block since it only read 1 byte everytime? Thanks.

Özgür Akpinar

It has problems in Windows 8.1 when I try to download model to Arduino.

addie irawan

I have a problem on using most of the PWM pins in PWM block for Arduino Mega 2560. The warning prompt shows this block only for Arduino UNO not Arduino Mega although the mask prompt written it support both boards. Please help me on this

Murat Belge

Support package installer is supported since R2012a. Type in "targetinstaller" at the MATLAB command prompt to launch the installer.

A

Support Package Installer only for MATLAB 8.1 (R2013a)?

Gabriel Ortega Rosero

Hi, I´m trying to do data adquisition with arduino in simulink, I configured the device and run the configurations (build the code), but I have a problem, when I start te simulation appear a error message, "Checksum mismatch. Verify the correct target application is running and if necessary rebuild target code."

I appreciate your help, thanks!

erik popo

it's a good tool

MATLAB Release Compatibility
Created with R2014a
Compatible with R2014a to R2020b
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!