Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

3.4
3.4 | 5 ratings Rate this file 265 Downloads (last 30 days) File Size: 15.1 KB File ID: #45071 Version: 1.1
image thumbnail

Simulink Support Package for Arduino Due Hardware

by

 

06 Mar 2014 (Updated )

Run models on Arduino Due.

| Watch this File

File Information
Description

Installer file for Simulink support package for Arduino Due Hardware for MATLAB releases R2014a, R2014b, and R2015a. For more details on capabilities for this support package, please visit:
www.mathworks.com/hardware-support/arduino-simulink.html
Opening the .mlpkginstall file from your operating system or from within MATLAB will initiate the installation process for this Hardware Support Package and acquire the latest support package available for the releases aforementioned.

Starting with release R2015b, the Simulink support for Arduino Due is included within the standard Simulink Support Package for Arduino Hardware (http://www.mathworks.com/matlabcentral/fileexchange/40312), and a separate support package installation is no longer needed.

Required Products Simulink
MATLAB
MATLAB release MATLAB 8.5 (R2015a)
MATLAB Search Path
/
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (32)
28 Mar 2016 Anand Singh

HI,

what are the feature support in due with matlab?
I want to implement image processing tools in hardware, which hardware board works good with Matlab related to image processing?

Thank you
Anand

04 Mar 2016 Pradeep KS

Hi Ali,
We need more information regarding MATLAB version, Simulink Arduino support package version you are using. Please let us know about these info for further analysis.

Also do you have cygwin environemnt in the path. We have few cases where if cygwin is on the path, gmake utility we are launching will be overridden by the make utility which is part of cygwin. Please make sure you remove the cygwin paths from environment variables.

Comment only
03 Mar 2016 Ali Afzal

Hi, I am trying to run the basic blinking led example and I am getting this error. I will be grateful to anybody who will put me in right direction

The call to realtime_make_rtw_hook, during the after_make hook generated the following error:
The build failed with the following message: cs-make: untitled.mk: No such file or directory
cs-make: *** No rule to make target `untitled.mk'. Stop.

The build process will terminate as a result.

The build failed with the following message: cs-make: untitled.mk: No such file or directory
cs-make: *** No rule to make target `untitled.mk'. Stop.

Comment only
12 Feb 2016 Jason Muller  
03 Feb 2016 Jason Muller

Hello, I am getting a similar error to everyone else. I am trying to do the basic example LED blink. But when I try to deploy to hardware a message pops up that says that the program arm_none_eabi_gcc has stopped working properly. In the debug output I see it has exited with code '3'. This is a brand new Due with Matlab 2014a 64-bit under Windows 8.1. I installed this Matlab today and downloaded the Due board support package without incident. I have specifically run Matlab as an administrator (my user account has administrator privileges anyway). Does anyone know why this is happening?

Comment only
15 Jan 2016 Siddharth Santhamoorthy

Hi,
I'm getting the same error as Eduard Veinte. I'm using Matlab 2014b. Simulink is unable to DEPLOY to HARDWARE. And the same message as Eduard's appears. Any help would be appreciated.

Regards
Siddharth

26 Nov 2015 Antonin

Antonin (view profile)

Hi Lays25,
Glad to see that you can run external mode on Arduino Due in 15b, that proves my previous comment on Due support in 15b.
The MATLAB command you are trying to run is part of the MATLAB Support Package for Arduino Hardware, which is a different package. The Simulink package is not built on top of the MATLAB package, they are independent packages and provide 2 different workflows.
Things you can try:
Make sure you have properly installed the MATLAB support package, you can download it using the following link:

http://in.mathworks.com/matlabcentral/fileexchange/47522-matlab-support-package-for-arduino®-hardware

Try the auto-detect of the board, this means just run a=arduino
I would suggest, you post to the page related to the MATLAB support package if you still face problems.
I hope it helps,
Good luck,
Antonin.

Comment only
26 Nov 2015 lays25

lays25 (view profile)

I'd like to add something to my previous comment. Despite being unable to connect to the board from the Matlab command window, I can run a simple example Simulink model in External mode (which means connecting to the board), why is that?

Comment only
25 Nov 2015 lays25

lays25 (view profile)

Hi, I am using Matlab 2015a and Arduino Due. I have installed all available Arduino support packages but when I try to connect using "a = arduino('com11', 'due')", I get the following message:

Updating server code on board Due (COM11). Please wait.
Cannot program board Due (COM11). Please make sure the board is supported and the port and board type are correct.

Now I know for sure that the board is not faulty since my professor was able to connect to it on his laptop with Matlab 2015b.

What can I do to solve this problem?

Comment only
24 Nov 2015 Antonin

Antonin (view profile)

Hi B.B.,

Our support for Arduino Due is now merged into the main Arduino package for simpler installation.
For 15b onwards, get Arduino Due support with:

http://www.mathworks.com/matlabcentral/fileexchange/40312-simulink-support-package-for-arduino-hardware

I hope it helps!

Comment only
23 Nov 2015 B.B.

B.B. (view profile)

does not work with 2015b!

Comment only
19 Nov 2015 mohsen salehi  
26 Oct 2015 Eduard Veinte

Hi
I have an Arduino Due in MATLAB r2014b, I have not been able to they run in Simulik the most basic program to generate pulses in a digital exit, the following message appears:

The call to realtime_make_rtw_hook, during the after_make hook generated the following error:
The build failed with the following message: "C:/MATLAB/SupportPackages/R2014b/arduino-1.5.6-r2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-gcc" -I"C:/MATLAB/SupportPackages/R2014b/arduinobase/toolbox/realtime/targets/arduino/include" -I"C:/MATLAB/SupportPackages/R2014b/arduinobase/toolbox/realtime/targets/arduino/blocks/sfcn/include" -I"D:/Documents and Settings/HOUSE/Mis documentos/MATLAB/ArduinoDue/SalidaDigitalPulsos_rtt" -I"D:/Documents and Settings/HOUSE/Mis documentos/MATLAB/ArduinoDue" -I"C:/Archivos de programa/MATLAB/R2014b/extern/include" -I"C:/Archivos de programa/MATLAB/R2014b/simulink/include" -I"C:/Archivos de programa/MATLAB/R2014b/rtw/c/src" -I"C:/Archivos de programa/MATLAB/R2014b/rtw/c/src/ext_mode/common" -I"C:/Archivos de programa/MATLAB/R2014b/rtw/c/ert" -I"C:/MATLAB/SupportPackages/R2014b/arduino-1.5.6-r2/hardware/arduino/sam/system/libsam" -I"C:/MATLAB/SupportPackages/R2014b/arduino-1.5.6-r2/hardware/arduino/sam/system/CMSIS/CMSIS/Include" -I"C:/MATLAB/SupportPackages/R2014b/arduino-1.5.6-r2/hardware/arduino/sam/system/CMSIS/Device/ATMEL" -I"C:/MATLAB/SupportPackages/R2014b/arduino-1.5.6-r2/hardware/arduino/sam/cores/arduino" -I"C:/MATLAB/SupportPackages/R2014b/arduino-1.5.6-r2/hardware/arduino/sam/cores/arduino/USB" -I"C:/MATLAB/SupportPackages/R2014b/arduino-1.5.6-r2/hardware/arduino/sam/variants/arduino_due_x" -I"C:/MATLAB/SupportPackages/R2014b/arduinodue/toolbox/realtime/targets/arduinodue/include" -I"C:/MATLAB/SupportPackages/R2014b/arduino-1.5.6-r2/libraries/Servo/src" -I"C:/MATLAB/SupportPackages/R2014b/arduino-1.5.6-r2/libraries/Servo/src/sam" -c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -mcpu=cortex-m3 -mthumb -I. -D"MODEL=SalidaDigitalPulsos" -D"NUMST=1" -D"NCSTATES=0" -D"HAVESTDIO=" -D"ONESTEPFCN=0" -D"TERMFCN=1" -D"MAT_FILE=0" -D"MULTI_INSTANCE_CODE=0" -D"INTEGER_CODE=0" -D"MT=0" -D"CLASSIC_INTERFACE=0" -D"ALLOCATIONFCN=0" -D"TID01EQ=0" -D"printf=iprintf" -D"F_CPU=84000000" -D"_RUNONTARGETHARDWARE_BUILD_=" -D"_ROTH_DUE_=" -D"ARDUINO=156" -D"ARDUINO_SAM_DUE=" -D"ARDUINO_ARCH_SAM=" -D"__SAM3X8E__=" -D"USB_PID=0x003e" -D"USB_VID=0x2341" -D"USBCON=" -D"_RTT_NUMSERVOS_=0" -D"_RTT_SINGLE_TASKING_MODE_=" ./IPAddress.cpp ./Print.cpp ./Reset.cpp ./RingBuffer.cpp ./Stream.cpp ./UARTClass.cpp ./USARTClass.cpp ./CDC.cpp ./HID.cpp ./USBCore.cpp ./WInterrupts.c ./WMath.cpp ./WString.cpp ./cortex_handlers.c ./cxxabi-compat.cpp ./hooks.c ./iar_calls_sam3.c ./itoa.c ./syscalls_sam3.c ./wiring.c ./wiring_analog.c ./wiring_digital.c ./wiring_pulse.cpp ./wiring_shift.c ./variant.cpp ./io_wrappers.cpp ./TimerTickScheduler.c ./arm_cortex_m_multitasking.c ./SalidaDigitalPulsos.c ./SalidaDigitalPulsos_data.c ./ert_main.c

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
cs-make: *** [IPAddress.o] Error 3

The build process will terminate as a result.

The build failed with the following message: "C:/MATLAB/SupportPackages/R2014b/arduino-1.5.6-r2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-gcc" -I"C:/MATLAB/SupportPackages/R2014b/arduinobase/toolbox/realtime/targets/arduino/include" -I"C:/MATLAB/SupportPackages/R2014b/arduinobase/toolbox/realtime/targets/arduino/blocks/sfcn/include" -I"D:/Documents and Settings/HOUSE/Mis documentos/MATLAB/ArduinoDue/SalidaDigitalPulsos_rtt" -I"D:/Documents and Settings/HOUSE/Mis documentos/MATLAB/ArduinoDue" -I"C:/Archivos de programa/MATLAB/R2014b/extern/include" -I"C:/Archivos de programa/MATLAB/R2014b/simulink/include" -I"C:/Archivos de programa/MATLAB/R2014b/rtw/c/src" -I"C:/Archivos de programa/MATLAB/R2014b/rtw/c/src/ext_mode/common" -I"C:/Archivos de programa/MATLAB/R2014b/rtw/c/ert" -I"C:/MATLAB/SupportPackages/R2014b/arduino-1.5.6-r2/hardware/arduino/sam/system/libsam" -I"C:/MATLAB/SupportPackages/R2014b/arduino-1.5.6-r2/hardware/arduino/sam/system/CMSIS/CMSIS/Include" -I"C:/MATLAB/SupportPackages/R2014b/arduino-1.5.6-r2/hardware/arduino/sam/system/CMSIS/Device/ATMEL" -I"C:/MATLAB/SupportPackages/R2014b/arduino-1.5.6-r2/hardware/arduino/sam/cores/arduino" -I"C:/MATLAB/SupportPackages/R2014b/arduino-1.5.6-r2/hardware/arduino/sam/cores/arduino/USB" -I"C:/MATLAB/SupportPackages/R2014b/arduino-1.5.6-r2/hardware/arduino/sam/variants/arduino_due_x" -I"C:/MATLAB/SupportPackages/R2014b/arduinodue/toolbox/realtime/targets/arduinodue/include" -I"C:/MATLAB/SupportPackages/R2014b/arduino-1.5.6-r2/libraries/Servo/src" -I"C:/MATLAB/SupportPackages/R2014b/arduino-1.5.6-r2/libraries/Servo/src/sam" -c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -mcpu=cortex-m3 -mthumb -I. -D"MODEL=SalidaDigitalPulsos" -D"NUMST=1" -D"NCSTATES=0" -D"HAVESTDIO=" -D"ONESTEPFCN=0" -D"TERMFCN=1" -D"MAT_FILE=0" -D"MULTI_INSTANCE_CODE=0" -D"INTEGER_CODE=0" -D"MT=0" -D"CLASSIC_INTERFACE=0" -D"ALLOCATIONFCN=0" -D"TID01EQ=0" -D"printf=iprintf" -D"F_CPU=84000000" -D"_RUNONTARGETHARDWARE_BUILD_=" -D"_ROTH_DUE_=" -D"ARDUINO=156" -D"ARDUINO_SAM_DUE=" -D"ARDUINO_ARCH_SAM=" -D"__SAM3X8E__=" -D"USB_PID=0x003e" -D"USB_VID=0x2341" -D"USBCON=" -D"_RTT_NUMSERVOS_=0" -D"_RTT_SINGLE_TASKING_MODE_=" ./IPAddress.cpp ./Print.cpp ./Reset.cpp ./RingBuffer.cpp ./Stream.cpp ./UARTClass.cpp ./USARTClass.cpp ./CDC.cpp ./HID.cpp ./USBCore.cpp ./WInterrupts.c ./WMath.cpp ./WString.cpp ./cortex_handlers.c ./cxxabi-compat.cpp ./hooks.c ./iar_calls_sam3.c ./itoa.c ./syscalls_sam3.c ./wiring.c ./wiring_analog.c ./wiring_digital.c ./wiring_pulse.cpp ./wiring_shift.c ./variant.cpp ./io_wrappers.cpp ./TimerTickScheduler.c ./arm_cortex_m_multitasking.c ./SalidaDigitalPulsos.c ./SalidaDigitalPulsos_data.c ./ert_main.c

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
cs-make: *** [IPAddress.o] Error 3

some solution, some advice?

Comment only
08 Oct 2015 Samuel Ignatius  
27 Mar 2015 alexander sanchez

can somebody help I'm trying to install the arduino due package but it sends me a message saying that simulink cant be remove

Comment only
19 Nov 2014 miguel

miguel (view profile)

hola, quisiera saber que archivo debo cargar al arduino DUE para que funcione con matlab gracias

Comment only
30 Sep 2014 Pradeep KS

@Liz: In this issue, arm-none-eabi-gcc application is crashing due to not having write permission to create compiler intermediate temporary files in TMP directory.

Solution:

1. Try running MATLAB as Administrator.
or
2. Make sure your user id is having admin rights.

HTH.

Comment only
24 Sep 2014 Liz

Liz (view profile)

I am getting the same errors that Useok got. Has anyone figured out a way to resolve this?

Comment only
19 Sep 2014 Brian McKay

Brian McKay (view profile)

@sho: Thanks for your feedback. We are definitely looking into adding support for the DAC channels in a future update.

Comment only
16 Sep 2014 sho

sho (view profile)

Thank you for this great support package.

Will we see support for the dacs and general resolution settings for the analog in and outputs in the future?

Or if i can do these settings manually, pls tell me how, i really would like to use the 12 bit analog inputs to measure some temperature.

best regards and continue your great work :)

Comment only
27 Aug 2014 Philipp

@stijn:I think you can use them by using the S-Function builder and implement some Arduino code by hand. But I have not tried it yet. Hence you are right, it would be great to have a block in the Simulink Library for using the DAC's.
Other questions:
Is it possible to change the ADC parameters from 10 to 12bits?
Why's the reference voltage of the Analog Input Block set to 5V? The next step in the Options is 2.56V but what about the 3.3V the Due is normally having?

Comment only
15 Aug 2014 stijn

stijn (view profile)

Will the analog outputs (DAC) be supported? (basically the reason for buying the due)

Comment only
16 Jul 2014 Brian McKay

Brian McKay (view profile)

@mahmoud: To gain direct access to the C code, you require our Simulink Coder and Embedded Coder products.

Comment only
04 Jul 2014 mahmoud

when using "Deploy to Hardware" i can not use any other arduino libraries not supported in simulink ......... how can i generate a C code for arduino target to integrate it with arduino IDE to use it with other function or for integrating it with an RTOS ??

Comment only
11 Jun 2014 José Emmanuel

the same error continuing happening
I removed .NET contents with this software
http://blogs.msdn.com/astebner/pages/8904493.aspx
as Pradeep Ks recommended, after I installed Microsoft .NET Framework 4.5.1, but the arm-none-eabi-gcc.exe error continuing happening when I press the deploy button. Something else that we have to do to use the Arduino Due package?

Comment only
30 May 2014 Pradeep KS

It doesn't look like an issue in the Arduino Due support package. Looks like the compiler arm-none-eabi-gcc.exe is corrupted or some problem with the PC environment which is causing termination of arm-none-eabi-gcc.exe execution.

Similar bugs are reported in web on arm-none-eabi-gcc.exe crashing anb below link points to one of it.

http://e2e.ti.com/support/microcontrollers/stellaris_arm/f/471/t/45369.aspx?pi171693=1

Please try to remove .NET contents and reinstall it. Then try depolying the Arduino Due model.

Comment only
29 May 2014 Abhi

Abhi (view profile)

I get the same error and the same diagnostic message as previously mentioned by 'Useok'. I wonder if any follow up work has been carried out to solve this problem

Comment only
21 May 2014 Useok

Useok (view profile)

I installed this package on 2014a.
But after I click the deploy button of getting started example model it shows an error regarding 'arm-none-eabi-gcc.exe' and stopped compiling.

It shows same error on the other computer.
Is there any guy suffering from this problem? or is there any solutions?

Diagnostic viewer of Matlab shows this:

<Code Generation>

The call to realtime_make_rtw_hook, during the after_make hook generated the following error:
The build failed with the following message: "C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-gcc" -I"C:/MATLAB/SupportPackages/R2014a/arduino/include" -I"C:/MATLAB/SupportPackages/R2014a/arduino/blocks/sfcn/include" -I"C:/Users/biorobotics/Documents/MATLAB/arduinodue_gettingstarted_rtt" -I"C:/Users/biorobotics/Documents/MATLAB" -I"C:/MATLAB/SupportPackages/R2014a/arduinodue/arduinoduedemos" -I"C:/Program Files/MATLAB/R2014a/extern/include" -I"C:/Program Files/MATLAB/R2014a/simulink/include" -I"C:/Program Files/MATLAB/R2014a/rtw/c/src" -I"C:/Program Files/MATLAB/R2014a/rtw/c/src/ext_mode/common" -I"C:/Program Files/MATLAB/R2014a/rtw/c/ert" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/system/libsam" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/system/CMSIS/CMSIS/Include" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/system/CMSIS/Device/ATMEL" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/cores/arduino" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/cores/arduino/USB" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/variants/arduino_due_x" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/libraries/Servo/src" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/libraries/Servo/arch/sam" -c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -mcpu=cortex-m3 -mthumb -I. -D"MODEL=arduinodue_gettingstarted" -D"NUMST=1" -D"NCSTATES=0" -D"HAVESTDIO=" -D"ONESTEPFCN=0" -D"TERMFCN=1" -D"MAT_FILE=0" -D"MULTI_INSTANCE_CODE=0" -D"INTEGER_CODE=0" -D"MT=0" -D"CLASSIC_INTERFACE=0" -D"ALLOCATIONFCN=0" -D"TID01EQ=0" -D"printf=iprintf" -D"F_CPU=84000000" -D"_RUNONTARGETHARDWARE_BUILD_=" -D"_ROTH_DUE_=" -D"ARDUINO=154" -D"ARDUINO_SAM_DUE=" -D"ARDUINO_ARCH_SAM=" -D"__SAM3X8E__=" -D"USB_PID=0x003e" -D"USB_VID=0x2341" -D"USBCON=" -D"_RTT_NUMSERVOS_=0" ./IPAddress.cpp ./Print.cpp ./Reset.cpp ./RingBuffer.cpp ./Stream.cpp ./UARTClass.cpp ./USARTClass.cpp ./CDC.cpp ./HID.cpp ./USBCore.cpp ./WInterrupts.c ./WMath.cpp ./WString.cpp ./cortex_handlers.c ./cxxabi-compat.cpp ./hooks.c ./iar_calls_sam3.c ./itoa.c ./syscalls_sam3.c ./wiring.c ./wiring_analog.c ./wiring_digital.c ./wiring_pulse.cpp ./wiring_shift.c ./variant.cpp ./io_wrappers.cpp ./arduinodue_gettingstarted.c ./arduinodue_gettingstarted_data.c ./ert_main.c

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
cs-make: *** [IPAddress.o] Error 255

The build process will terminate as a result.

The build failed with the following message: "C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-gcc" -I"C:/MATLAB/SupportPackages/R2014a/arduino/include" -I"C:/MATLAB/SupportPackages/R2014a/arduino/blocks/sfcn/include" -I"C:/Users/biorobotics/Documents/MATLAB/arduinodue_gettingstarted_rtt" -I"C:/Users/biorobotics/Documents/MATLAB" -I"C:/MATLAB/SupportPackages/R2014a/arduinodue/arduinoduedemos" -I"C:/Program Files/MATLAB/R2014a/extern/include" -I"C:/Program Files/MATLAB/R2014a/simulink/include" -I"C:/Program Files/MATLAB/R2014a/rtw/c/src" -I"C:/Program Files/MATLAB/R2014a/rtw/c/src/ext_mode/common" -I"C:/Program Files/MATLAB/R2014a/rtw/c/ert" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/system/libsam" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/system/CMSIS/CMSIS/Include" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/system/CMSIS/Device/ATMEL" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/cores/arduino" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/cores/arduino/USB" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/variants/arduino_due_x" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/libraries/Servo/src" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/libraries/Servo/arch/sam" -c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -mcpu=cortex-m3 -mthumb -I. -D"MODEL=arduinodue_gettingstarted" -D"NUMST=1" -D"NCSTATES=0" -D"HAVESTDIO=" -D"ONESTEPFCN=0" -D"TERMFCN=1" -D"MAT_FILE=0" -D"MULTI_INSTANCE_CODE=0" -D"INTEGER_CODE=0" -D"MT=0" -D"CLASSIC_INTERFACE=0" -D"ALLOCATIONFCN=0" -D"TID01EQ=0" -D"printf=iprintf" -D"F_CPU=84000000" -D"_RUNONTARGETHARDWARE_BUILD_=" -D"_ROTH_DUE_=" -D"ARDUINO=154" -D"ARDUINO_SAM_DUE=" -D"ARDUINO_ARCH_SAM=" -D"__SAM3X8E__=" -D"USB_PID=0x003e" -D"USB_VID=0x2341" -D"USBCON=" -D"_RTT_NUMSERVOS_=0" ./IPAddress.cpp ./Print.cpp ./Reset.cpp ./RingBuffer.cpp ./Stream.cpp ./UARTClass.cpp ./USARTClass.cpp ./CDC.cpp ./HID.cpp ./USBCore.cpp ./WInterrupts.c ./WMath.cpp ./WString.cpp ./cortex_handlers.c ./cxxabi-compat.cpp ./hooks.c ./iar_calls_sam3.c ./itoa.c ./syscalls_sam3.c ./wiring.c ./wiring_analog.c ./wiring_digital.c ./wiring_pulse.cpp ./wiring_shift.c ./variant.cpp ./io_wrappers.cpp ./arduinodue_gettingstarted.c ./arduinodue_gettingstarted_data.c ./ert_main.c

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
cs-make: *** [IPAddress.o] Error 255

Comment only
21 May 2014 Useok

Useok (view profile)

Diagnostic viewer of Matlab shows this:

<Code Generation>

The call to realtime_make_rtw_hook, during the after_make hook generated the following error:
The build failed with the following message: "C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-gcc" -I"C:/MATLAB/SupportPackages/R2014a/arduino/include" -I"C:/MATLAB/SupportPackages/R2014a/arduino/blocks/sfcn/include" -I"C:/Users/biorobotics/Documents/MATLAB/arduinodue_gettingstarted_rtt" -I"C:/Users/biorobotics/Documents/MATLAB" -I"C:/MATLAB/SupportPackages/R2014a/arduinodue/arduinoduedemos" -I"C:/Program Files/MATLAB/R2014a/extern/include" -I"C:/Program Files/MATLAB/R2014a/simulink/include" -I"C:/Program Files/MATLAB/R2014a/rtw/c/src" -I"C:/Program Files/MATLAB/R2014a/rtw/c/src/ext_mode/common" -I"C:/Program Files/MATLAB/R2014a/rtw/c/ert" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/system/libsam" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/system/CMSIS/CMSIS/Include" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/system/CMSIS/Device/ATMEL" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/cores/arduino" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/cores/arduino/USB" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/variants/arduino_due_x" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/libraries/Servo/src" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/libraries/Servo/arch/sam" -c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -mcpu=cortex-m3 -mthumb -I. -D"MODEL=arduinodue_gettingstarted" -D"NUMST=1" -D"NCSTATES=0" -D"HAVESTDIO=" -D"ONESTEPFCN=0" -D"TERMFCN=1" -D"MAT_FILE=0" -D"MULTI_INSTANCE_CODE=0" -D"INTEGER_CODE=0" -D"MT=0" -D"CLASSIC_INTERFACE=0" -D"ALLOCATIONFCN=0" -D"TID01EQ=0" -D"printf=iprintf" -D"F_CPU=84000000" -D"_RUNONTARGETHARDWARE_BUILD_=" -D"_ROTH_DUE_=" -D"ARDUINO=154" -D"ARDUINO_SAM_DUE=" -D"ARDUINO_ARCH_SAM=" -D"__SAM3X8E__=" -D"USB_PID=0x003e" -D"USB_VID=0x2341" -D"USBCON=" -D"_RTT_NUMSERVOS_=0" ./IPAddress.cpp ./Print.cpp ./Reset.cpp ./RingBuffer.cpp ./Stream.cpp ./UARTClass.cpp ./USARTClass.cpp ./CDC.cpp ./HID.cpp ./USBCore.cpp ./WInterrupts.c ./WMath.cpp ./WString.cpp ./cortex_handlers.c ./cxxabi-compat.cpp ./hooks.c ./iar_calls_sam3.c ./itoa.c ./syscalls_sam3.c ./wiring.c ./wiring_analog.c ./wiring_digital.c ./wiring_pulse.cpp ./wiring_shift.c ./variant.cpp ./io_wrappers.cpp ./arduinodue_gettingstarted.c ./arduinodue_gettingstarted_data.c ./ert_main.c

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
cs-make: *** [IPAddress.o] Error 255

The build process will terminate as a result.

The build failed with the following message: "C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-gcc" -I"C:/MATLAB/SupportPackages/R2014a/arduino/include" -I"C:/MATLAB/SupportPackages/R2014a/arduino/blocks/sfcn/include" -I"C:/Users/biorobotics/Documents/MATLAB/arduinodue_gettingstarted_rtt" -I"C:/Users/biorobotics/Documents/MATLAB" -I"C:/MATLAB/SupportPackages/R2014a/arduinodue/arduinoduedemos" -I"C:/Program Files/MATLAB/R2014a/extern/include" -I"C:/Program Files/MATLAB/R2014a/simulink/include" -I"C:/Program Files/MATLAB/R2014a/rtw/c/src" -I"C:/Program Files/MATLAB/R2014a/rtw/c/src/ext_mode/common" -I"C:/Program Files/MATLAB/R2014a/rtw/c/ert" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/system/libsam" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/system/CMSIS/CMSIS/Include" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/system/CMSIS/Device/ATMEL" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/cores/arduino" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/cores/arduino/USB" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/hardware/arduino/sam/variants/arduino_due_x" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/libraries/Servo/src" -I"C:/MATLAB/SupportPackages/R2014a/arduino-1.5.4/libraries/Servo/arch/sam" -c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -mcpu=cortex-m3 -mthumb -I. -D"MODEL=arduinodue_gettingstarted" -D"NUMST=1" -D"NCSTATES=0" -D"HAVESTDIO=" -D"ONESTEPFCN=0" -D"TERMFCN=1" -D"MAT_FILE=0" -D"MULTI_INSTANCE_CODE=0" -D"INTEGER_CODE=0" -D"MT=0" -D"CLASSIC_INTERFACE=0" -D"ALLOCATIONFCN=0" -D"TID01EQ=0" -D"printf=iprintf" -D"F_CPU=84000000" -D"_RUNONTARGETHARDWARE_BUILD_=" -D"_ROTH_DUE_=" -D"ARDUINO=154" -D"ARDUINO_SAM_DUE=" -D"ARDUINO_ARCH_SAM=" -D"__SAM3X8E__=" -D"USB_PID=0x003e" -D"USB_VID=0x2341" -D"USBCON=" -D"_RTT_NUMSERVOS_=0" ./IPAddress.cpp ./Print.cpp ./Reset.cpp ./RingBuffer.cpp ./Stream.cpp ./UARTClass.cpp ./USARTClass.cpp ./CDC.cpp ./HID.cpp ./USBCore.cpp ./WInterrupts.c ./WMath.cpp ./WString.cpp ./cortex_handlers.c ./cxxabi-compat.cpp ./hooks.c ./iar_calls_sam3.c ./itoa.c ./syscalls_sam3.c ./wiring.c ./wiring_analog.c ./wiring_digital.c ./wiring_pulse.cpp ./wiring_shift.c ./variant.cpp ./io_wrappers.cpp ./arduinodue_gettingstarted.c ./arduinodue_gettingstarted_data.c ./ert_main.c

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
cs-make: *** [IPAddress.o] Error 255

Comment only
14 May 2014 Jorge

Jorge (view profile)

It would be nice if was possible to use this package with r2013b ...

Comment only
11 Mar 2014 Moataz Muhammad

Please, I need this package for my graduation project. Can we have a version for Matlab 2013b ?

Comment only
10 Mar 2014 Shouvik Das

Can we also have this for 2013b

Comment only
Updates
07 Mar 2014 1.1

image thumbnail

04 Sep 2015 1.1

Updating to account for the merge of the Arduino Due with the standard Arduino HSP.

Contact us