Compile error regarding 'arm-none-eabi-gcc.exe' with Arduino Due support package

15 次查看(过去 30 天)
The customer is using arduinodue_gettingstarted model, he is getting an error when running the "Run To Target Hardware" choosing the Arduino Due and clicking "Deploy to Hardware." he downloaded the support package from:
The call to realtime_make_rtw_hook, during the after_make hook generated the following error: 
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"C:/Users/dxq130330/Documents/MATLAB/untitled_rtt" -I"C:/Users/dxq130330/Documents/MATLAB" -I"C:/Program Files/MATLAB/R2014b/extern/include" -I"C:/Program Files/MATLAB/R2014b/simulink/include" -I"C:/Program Files/MATLAB/R2014b/rtw/c/src" -I"C:/Program Files/MATLAB/R2014b/rtw/c/src/ext_mode/common" -I"C:/Program Files/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=untitled" -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 ./ert_main.c ./untitled.c ./untitled_data.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/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"C:/Users/dxq130330/Documents/MATLAB/untitled_rtt" -I"C:/Users/dxq130330/Documents/MATLAB" -I"C:/Program Files/MATLAB/R2014b/extern/include" -I"C:/Program Files/MATLAB/R2014b/simulink/include" -I"C:/Program Files/MATLAB/R2014b/rtw/c/src" -I"C:/Program Files/MATLAB/R2014b/rtw/c/src/ext_mode/common" -I"C:/Program Files/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=untitled" -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 ./ert_main.c ./untitled.c ./untitled_data.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 Component: Simulink | Category: Block error

采纳的回答

MathWorks Support Team
MathWorks Support Team about 21 hours 前
编辑:MathWorks Support Team about 10 hours 前
This issue is similar to the one discussed in the link below:
First, try the following:
1. Login as Administrator
2. Install Arduino Due support package
3. Try deploying the Arduino Due model "arduinodue_communication".
If it does not resolve the issue please consider the following:
Symptom: Arduino Due compiler "arm-none-eabi-gcc.exe" fails to create its intermediate files in the TMP directory for local users and compiler crashes with the below error. This issue occurs sometimes even if the local user has Admin rights.
"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 "
Please place the attached files in the Support package installed path as shown below:
a. "arduinoPreBuild.p" file in the following path:
<Support Package Installed Path>\arduinobase\toolbox\realtime\targets\arduino\+realtime\+internal. 
(Please delete (overwrite) the existing p file)
b. "arduinoPreDownload.p" file in:
<Support Package Installed Path>\arduinobase\toolbox\realtime\targets\arduino\+realtime\+internal. 
(Please delete (overwrite) the existing p file)Example for release R2014b:C:\MATLAB\SupportPackages\R2014b\arduinobase\toolbox\realtime\targets\arduino\+realtime\+internalHere the <Support Package Installed Path> is C:\MATLAB\SupportPackages\R2014bc. Then enter "rehash toolboxcache" in the MATLAB Command Window.d. Finally, please enter "savepath" in that MATLAB Command Window to save the path changes.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

产品


版本

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by