File Exchange

image thumbnail

Simulink Support Package for Arduino Due Hardware

version 1.1 (15.1 KB) by

Run models on Arduino Due.

211 Downloads

Updated

Simulink® Support Package for Arduino® Due Hardware enables you to create and run Simulink models on the Arduino Due. The support package includes a library of Simulink blocks for the microcontroller's digital and analog connectivity and serial communications. Other Arduino boards are supported through the Simulink Support Package for Arduino Hardware.

This support package is functional for R2014a through R2015a. Starting with release R2015b, the Simulink support for Arduino Due is included within the standard Simulink Support Package for Arduino Hardware, and a separate support package installation for Due is no longer needed.

Comments and Ratings (36)

Pradeep KS

Hi Leyiju,
Could you please provide the MATLAB version and the complete error log.
From the error you mentioned below, it looks like the Arduino support package is not completely installed. Please try reinstalling the support package.
Error: The system can not find the specified path.

leyiju

leyiju (view profile)

The call to realtime_make_rtw_hook, during the after_make hook generated the following error:
The build failed with the following message: 系统找不到指定的路径。
who can help me?!!

Pradeep KS

Hi Carlos,
Code generation is not allowed when present working directory is set any folder inside MATLAB installation area.

Please set you pwd to folder other than MATLAB installation area and try deploying the model.

HTH.

Hello
I'm trying to communicate the Arduino Due with Simulink, the simplest example "blink an LED" in the last step the Simulink has a fault.

anyone can give a stand, please? follows the failure:

Your current working folder is:
C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin
Simulink does not permit you to modify the MATLAB installation area.
Please change to a working folder that is not in the MATLAB
installation area and re-try the previous command.
Component: Simulink | Category: Model error

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

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.

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.

Jason Muller

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?

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

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.

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?

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?

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!

B.B.

B.B. (view profile)

does not work with 2015b!

mohsen salehi

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?

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

miguel

miguel (view profile)

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

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.

Liz

Liz (view profile)

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

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.

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 :)

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?

stijn

stijn (view profile)

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

Brian McKay

Brian McKay (view profile)

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

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 ??

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?

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.

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

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

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

Jorge

Jorge (view profile)

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

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

Shouvik Das

Can we also have this for 2013b

Updates

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

image thumbnail

MATLAB Release
MATLAB 8.5 (R2015a)

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

» Watch video