how do I fix "failed to generate all binary outputs" error

78 views (last 30 days)
I have built a simulink model for a VEX microcontroller and it appears to work very well when I simulate it but I get this error when I try to buid it:
Error(s) encountered while building model "test":
### Failed to generate all binary outputs.
the log is:
D:\Users\serickson\Documents\MATLAB\test_grt_rtw>cd .
D:\Users\serickson\Documents\MATLAB\test_grt_rtw>if "" == "" (C:\PROGRA~1\MATLAB\R2014a\bin\win64\gmake -f test.mk all ) else (C:\PROGRA~1\MATLAB\R2014a\bin\win64\gmake -f test.mk )
C:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/bin/lcc64 -c -w -noregistrylookup -nodeclspec -IC:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/include64 -DMAT_FILE=1 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DRT -DUSE_RTMODEL -ID:/Users/serickson/Documents/MATLAB/test_grt_rtw -ID:/Users/serickson/Documents/MATLAB -ID:/MATLAB -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -Fo"rtGetInf.obj" "rtGetInf.c"
C:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/bin/lcc64 -c -w -noregistrylookup -nodeclspec -IC:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/include64 -DMAT_FILE=1 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DRT -DUSE_RTMODEL -ID:/Users/serickson/Documents/MATLAB/test_grt_rtw -ID:/Users/serickson/Documents/MATLAB -ID:/MATLAB -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -Fo"rtGetNaN.obj" "rtGetNaN.c"
C:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/bin/lcc64 -c -w -noregistrylookup -nodeclspec -IC:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/include64 -DMAT_FILE=1 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DRT -DUSE_RTMODEL -ID:/Users/serickson/Documents/MATLAB/test_grt_rtw -ID:/Users/serickson/Documents/MATLAB -ID:/MATLAB -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -Fo"rt_nonfinite.obj" "rt_nonfinite.c"
C:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/bin/lcc64 -c -w -noregistrylookup -nodeclspec -IC:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/include64 -DMAT_FILE=1 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DRT -DUSE_RTMODEL -ID:/Users/serickson/Documents/MATLAB/test_grt_rtw -ID:/Users/serickson/Documents/MATLAB -ID:/MATLAB -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -Fo"test.obj" "test.c"
cpp: d:\users\serickson\documents\matlab\test_grt_rtw\test_private.h:55 test.c:17 Could not find include file "API.h"
cpp: d:\users\serickson\documents\matlab\test_grt_rtw\test_private.h:56 test.c:17 Could not find include file "API.h"
0 errors, 2 warnings
C:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/bin/lcc64 -c -w -noregistrylookup -nodeclspec -IC:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/include64 -DMAT_FILE=1 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DRT -DUSE_RTMODEL -ID:/Users/serickson/Documents/MATLAB/test_grt_rtw -ID:/Users/serickson/Documents/MATLAB -ID:/MATLAB -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -Fo"test_data.obj" "test_data.c"
cpp: d:\users\serickson\documents\matlab\test_grt_rtw\test_private.h:55 test_data.c:17 Could not find include file "API.h"
cpp: d:\users\serickson\documents\matlab\test_grt_rtw\test_private.h:56 test_data.c:17 Could not find include file "API.h"
0 errors, 2 warnings
C:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/bin/lcc64 -c -w -noregistrylookup -nodeclspec -IC:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/include64 -DMAT_FILE=1 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DRT -DUSE_RTMODEL -ID:/Users/serickson/Documents/MATLAB/test_grt_rtw -ID:/Users/serickson/Documents/MATLAB -ID:/MATLAB -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -Fo"rt_main.obj" "C:/PROGRA~1/MATLAB/R2014a/rtw/c/src/common/rt_main.c"
C:/PROGRA~1/MATLAB/R2014a/sys/perl/win32/bin/perl.exe C:/PROGRA~1/MATLAB/R2014a/rtw/c/tools/mkvc_lnk.pl test.lnk rtGetInf.obj rtGetNaN.obj rt_nonfinite.obj test.obj test_data.obj rt_logging.obj
"### Creating standalone executable "../test.exe" ..."
C:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/bin/lcclnk64 -s -LC:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/lib64 -o ../test.exe @test.lnk rt_main.obj
test.obj .text: undefined reference to 'joystickGetAnalog'
test.obj .text: undefined reference to 'motorSet'
gmake: *** [../test.exe] Error 4
D:\Users\serickson\Documents\MATLAB\test_grt_rtw>echo The make command returned an error of 2
The make command returned an error of 2
D:\Users\serickson\Documents\MATLAB\test_grt_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.
can anyone help?
thanks

Answers (11)

JUAN JOSE MUÑOZ
JUAN JOSE MUÑOZ on 20 Jan 2018
change the path of my file because the previous one had folders with space, my new route was: c: / desktop / test / archivosimulink, and it worked, thank you, I think that if you want to leave your route you should remove all the spaces to the folders the route

Ranush Wickramarathne
Ranush Wickramarathne on 3 Feb 2017
I think this error occurs because of the folder names we using and the file's name. Try to avoid keywords which are reserved in matlab and use underscore, dash etc for file names.

T Meyers
T Meyers on 13 Oct 2020
I hate to dig up an old thread but sometimes I get "failed to load binaries" error from Matlab Simulink C2000 Coder and wanted to document it.
Like mentioned above, the issue is the ENTIRE folder name (from C:/ down) containing spaces, dashes(-), periods(.) or keywords. When my Matlab folder is in the cloud (i.e. Dropbox) - I am almost guaranteed to encounter this error. My solution - copy the Matlab folder to Downloads and rename it.
If you only get the error in C2000 coder and the folder name was fixed, then C2000 Coder or Code Composer Studio was not properly installed. You might need to reinstall CCS followed by C2000 Coder in that case.

Jan
Jan on 26 Sep 2014
This seems to be a reason for failing:
Could not find include file "API.h"
Where is the required file?

Sandeep Math
Sandeep Math on 6 Jan 2015
Edited: Walter Roberson on 19 Mar 2018
Hello Steven,
It appears like the support package installation did not complete successfully because the API.h should have been on your MATLAB path otherwise. The build failed since MATLAB is not able to find this header file. To fix this issue, at the MATLAB Command prompt execute:
pathtool
This will open a dialog that will let you add folders to MATLAB path. Here, add the following paths and then Save.
C:\MATLAB\SupportPackages\R2014b\armcortexbasedvexmicrocontroller\toolbox\target\supportpackages\vexarmcortex
C:\MATLAB\SupportPackages\R2014b\armcortexbasedvexmicrocontroller\toolbox\target\supportpackages\vexarmcortex\blocks
C:\MATLAB\SupportPackages\R2014b\armcortexbasedvexmicrocontroller\toolbox\target\supportpackages\vexarmcortex\blocks\mex
C:\MATLAB\SupportPackages\R2014b\armcortexbasedvexmicrocontroller\toolbox\target\supportpackages\vexarmcortex\blocks\masks
C:\MATLAB\SupportPackages\R2014b\armcortexbasedvexmicrocontroller\toolbox\target\supportpackages\vexarmcortex\registry
C:\MATLAB\SupportPackages\R2014b\armcortexbasedvexmicrocontroller\toolbox\target\supportpackages\vexarmcortex\resources
C:\MATLAB\SupportPackages\R2014b\armcortexbasedvexmicrocontroller\toolbox\target\supportpackages\vexarmcortex\vexarmcortex_examples
Please note that the C:\MATLAB\SupportPackages\R2014b\ in the path names might be different in your case. So navigate to the appropraite folder on your machine and add all these to the MATLAB path. Save and Close.
Now, you should be able to build your model successfully.
If you are still running into issues, please contact us at bestrobotics@mathworks.com
  2 Comments
Aniket Adhvaryu
Aniket Adhvaryu on 14 Oct 2016
Edited: Walter Roberson on 19 Oct 2016
C:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/tools/avr/bin/avr-gcc -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10601 -MMD -MP -MF"HCSR04_SFunction.dep" -MT"HCSR04_SFunction.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=HCSR04_SFunction -DNUMST=1 -DNCSTATES=0 -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=0 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=30000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=2 -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=0 -DON_TARGET_WAIT_FOR_START=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -DMODEL=HCSR04_SFunction -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/admin/DOCUME~1/MATLAB/ADARSH~1/MATLAB~1/HCSR04~2 -IC:/Users/admin/DOCUME~1/MATLAB/ADARSH~1/MATLAB~1 -IC:/extern/include -IC:/simulink/include -IC:/rtw/c/src -IC:/rtw/c/src/ext_mode/common -IC://rtw/c/ert -IC://rtw/c/src/ext_mode/common -IC:/toolbox/coder/rtiostream/src/utils -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/arduino/avr/cores/arduino -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/arduino/avr/variants/standard -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/libraries/Servo/src -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinotarget/registry/../include -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinotarget/registry/../scheduler/include -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinobase/include -o "HCSR04_SFunction.o" "C:/Users/admin/DOCUME~1/MATLAB/ADARSH~1/MATLAB~1/HCSR04~2/HCSR04_SFunction.c"
C:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/tools/avr/bin/avr-gcc -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10601 -MMD -MP -MF"ext_svr.dep" -MT"ext_svr.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=HCSR04_SFunction -DNUMST=1 -DNCSTATES=0 -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=0 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=30000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=2 -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=0 -DON_TARGET_WAIT_FOR_START=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -DMODEL=HCSR04_SFunction -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/admin/DOCUME~1/MATLAB/ADARSH~1/MATLAB~1/HCSR04~2 -IC:/Users/admin/DOCUME~1/MATLAB/ADARSH~1/MATLAB~1 -IC:/extern/include -IC:/simulink/include -IC:/rtw/c/src -IC:/rtw/c/src/ext_mode/common -IC://rtw/c/ert -IC://rtw/c/src/ext_mode/common -IC:/toolbox/coder/rtiostream/src/utils -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/arduino/avr/cores/arduino -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/arduino/avr/variants/standard -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/libraries/Servo/src -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinotarget/registry/../include -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinotarget/registry/../scheduler/include -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinobase/include -o "ext_svr.o" "C://rtw/c/src/ext_mode/common/ext_svr.c"
C:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/tools/avr/bin/avr-gcc -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10601 -MMD -MP -MF"updown.dep" -MT"updown.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=HCSR04_SFunction -DNUMST=1 -DNCSTATES=0 -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=0 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=30000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=2 -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=0 -DON_TARGET_WAIT_FOR_START=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -DMODEL=HCSR04_SFunction -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/admin/DOCUME~1/MATLAB/ADARSH~1/MATLAB~1/HCSR04~2 -IC:/Users/admin/DOCUME~1/MATLAB/ADARSH~1/MATLAB~1 -IC:/extern/include -IC:/simulink/include -IC:/rtw/c/src -IC:/rtw/c/src/ext_mode/common -IC://rtw/c/ert -IC://rtw/c/src/ext_mode/common -IC:/toolbox/coder/rtiostream/src/utils -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/arduino/avr/cores/arduino -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/arduino/avr/variants/standard -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/libraries/Servo/src -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinotarget/registry/../include -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinotarget/registry/../scheduler/include -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinobase/include -o "updown.o" "C://rtw/c/src/ext_mode/common/updown.c"
C:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/tools/avr/bin/avr-gcc -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10601 -MMD -MP -MF"ext_work.dep" -MT"ext_work.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=HCSR04_SFunction -DNUMST=1 -DNCSTATES=0 -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=0 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=30000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=2 -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=0 -DON_TARGET_WAIT_FOR_START=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -DMODEL=HCSR04_SFunction -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/admin/DOCUME~1/MATLAB/ADARSH~1/MATLAB~1/HCSR04~2 -IC:/Users/admin/DOCUME~1/MATLAB/ADARSH~1/MATLAB~1 -IC:/extern/include -IC:/simulink/include -IC:/rtw/c/src -IC:/rtw/c/src/ext_mode/common -IC://rtw/c/ert -IC://rtw/c/src/ext_mode/common -IC:/toolbox/coder/rtiostream/src/utils -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/arduino/avr/cores/arduino -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/arduino/avr/variants/standard -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/libraries/Servo/src -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinotarget/registry/../include -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinotarget/registry/../scheduler/include -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinobase/include -o "ext_work.o" "C://rtw/c/src/ext_mode/common/ext_work.c"
C:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/tools/avr/bin/avr-gcc -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10601 -MMD -MP -MF"rtiostream_utils.dep" -MT"rtiostream_utils.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=HCSR04_SFunction -DNUMST=1 -DNCSTATES=0 -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=0 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=30000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=2 -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=0 -DON_TARGET_WAIT_FOR_START=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -DMODEL=HCSR04_SFunction -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/admin/DOCUME~1/MATLAB/ADARSH~1/MATLAB~1/HCSR04~2 -IC:/Users/admin/DOCUME~1/MATLAB/ADARSH~1/MATLAB~1 -IC:/extern/include -IC:/simulink/include -IC:/rtw/c/src -IC:/rtw/c/src/ext_mode/common -IC://rtw/c/ert -IC://rtw/c/src/ext_mode/common -IC:/toolbox/coder/rtiostream/src/utils -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/arduino/avr/cores/arduino -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/arduino/avr/variants/standard -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/libraries/Servo/src -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinotarget/registry/../include -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinotarget/registry/../scheduler/include -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinobase/include -o "rtiostream_utils.o" "C:/toolbox/coder/rtiostream/src/utils/rtiostream_utils.c"
C:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/tools/avr/bin/avr-g++ -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10601 -MMD -MP -MF"sf_HCSR04_wrapper.dep" -MT"sf_HCSR04_wrapper.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=HCSR04_SFunction -DNUMST=1 -DNCSTATES=0 -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=0 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=30000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=2 -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=0 -DON_TARGET_WAIT_FOR_START=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -DMODEL=HCSR04_SFunction -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/admin/DOCUME~1/MATLAB/ADARSH~1/MATLAB~1/HCSR04~2 -IC:/Users/admin/DOCUME~1/MATLAB/ADARSH~1/MATLAB~1 -IC:/extern/include -IC:/simulink/include -IC:/rtw/c/src -IC:/rtw/c/src/ext_mode/common -IC://rtw/c/ert -IC://rtw/c/src/ext_mode/common -IC:/toolbox/coder/rtiostream/src/utils -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/arduino/avr/cores/arduino -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/arduino/avr/variants/standard -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/libraries/Servo/src -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinotarget/registry/../include -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinotarget/registry/../scheduler/include -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinobase/include -o "sf_HCSR04_wrapper.o" "C:/Users/admin/DOCUME~1/MATLAB/ADARSH~1/MATLAB~1/sf_HCSR04_wrapper.cpp"
C:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/tools/avr/bin/avr-gcc -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10601 -MMD -MP -MF"ext_serial_pkt.dep" -MT"ext_serial_pkt.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=HCSR04_SFunction -DNUMST=1 -DNCSTATES=0 -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=0 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=30000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=2 -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=0 -DON_TARGET_WAIT_FOR_START=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -DMODEL=HCSR04_SFunction -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/admin/DOCUME~1/MATLAB/ADARSH~1/MATLAB~1/HCSR04~2 -IC:/Users/admin/DOCUME~1/MATLAB/ADARSH~1/MATLAB~1 -IC:/extern/include -IC:/simulink/include -IC:/rtw/c/src -IC:/rtw/c/src/ext_mode/common -IC://rtw/c/ert -IC://rtw/c/src/ext_mode/common -IC:/toolbox/coder/rtiostream/src/utils -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/arduino/avr/cores/arduino -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/arduino/avr/variants/standard -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/libraries/Servo/src -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinotarget/registry/../include -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinotarget/registry/../scheduler/include -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinobase/include -o "ext_serial_pkt.o" "C://rtw/c/src/ext_mode/serial/ext_serial_pkt.c"
C:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/tools/avr/bin/avr-gcc -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10601 -MMD -MP -MF"rtiostream_serial_interface.dep" -MT"rtiostream_serial_interface.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=HCSR04_SFunction -DNUMST=1 -DNCSTATES=0 -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=0 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=30000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=2 -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=0 -DON_TARGET_WAIT_FOR_START=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -DMODEL=HCSR04_SFunction -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/admin/DOCUME~1/MATLAB/ADARSH~1/MATLAB~1/HCSR04~2 -IC:/Users/admin/DOCUME~1/MATLAB/ADARSH~1/MATLAB~1 -IC:/extern/include -IC:/simulink/include -IC:/rtw/c/src -IC:/rtw/c/src/ext_mode/common -IC://rtw/c/ert -IC://rtw/c/src/ext_mode/common -IC:/toolbox/coder/rtiostream/src/utils -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/arduino/avr/cores/arduino -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/arduino/avr/variants/standard -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/libraries/Servo/src -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinotarget/registry/../include -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinotarget/registry/../scheduler/include -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinobase/include -o "rtiostream_serial_interface.o" "C://rtw/c/src/ext_mode/serial/rtiostream_serial_interface.c"
C:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/tools/avr/bin/avr-gcc -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10601 -MMD -MP -MF"ext_svr_serial_transport.dep" -MT"ext_svr_serial_transport.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=HCSR04_SFunction -DNUMST=1 -DNCSTATES=0 -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=0 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=30000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=2 -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=0 -DON_TARGET_WAIT_FOR_START=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -DMODEL=HCSR04_SFunction -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/admin/DOCUME~1/MATLAB/ADARSH~1/MATLAB~1/HCSR04~2 -IC:/Users/admin/DOCUME~1/MATLAB/ADARSH~1/MATLAB~1 -IC:/extern/include -IC:/simulink/include -IC:/rtw/c/src -IC:/rtw/c/src/ext_mode/common -IC://rtw/c/ert -IC://rtw/c/src/ext_mode/common -IC:/toolbox/coder/rtiostream/src/utils -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/arduino/avr/cores/arduino -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/arduino/avr/variants/standard -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/libraries/Servo/src -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinotarget/registry/../include -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinotarget/registry/../scheduler/include -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinobase/include -o "ext_svr_serial_transport.o" "C://rtw/c/src/ext_mode/serial/ext_svr_serial_transport.c"
C:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/tools/avr/bin/avr-gcc -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10601 -MMD -MP -MF"ert_main.dep" -MT"ert_main.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=HCSR04_SFunction -DNUMST=1 -DNCSTATES=0 -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=0 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -D_MW_ARDUINO_LOOP_=1 -DMW_ARDUINO_STEP_SIZE=30000 -DMW_ARDUINO_MICROS -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=2 -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=0 -DON_TARGET_WAIT_FOR_START=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -DMODEL=HCSR04_SFunction -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/admin/DOCUME~1/MATLAB/ADARSH~1/MATLAB~1/HCSR04~2 -IC:/Users/admin/DOCUME~1/MATLAB/ADARSH~1/MATLAB~1 -IC:/extern/include -IC:/simulink/include -IC:/rtw/c/src -IC:/rtw/c/src/ext_mode/common -IC://rtw/c/ert -IC://rtw/c/src/ext_mode/common -IC:/toolbox/coder/rtiostream/src/utils -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/arduino/avr/cores/arduino -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/arduino/avr/variants/standard -IC:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/libraries/Servo/src -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinotarget/registry/../include -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinotarget/registry/../scheduler/include -IC:/MATLAB/supportpackages/R2016a_1/toolbox/target/supportpackages/arduinobase/include -o "ert_main.o" "C:/Users/admin/DOCUME~1/MATLAB/ADARSH~1/MATLAB~1/HCSR04~2/ert_main.c"
"### Creating standalone executable "../HCSR04_SFunction.elf" ..."
C:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/tools/avr/bin/avr-gcc -w -Os -Wl,--gc-sections,--relax -mmcu=atmega328p -o ../HCSR04_SFunction.elf HCSR04_SFunction.o ext_svr.o updown.o ext_work.o rtiostream_utils.o sf_HCSR04_wrapper.o hooks.o WInterrupts.o wiring.o wiring_analog.o wiring_digital.o wiring_pulse.o wiring_shift.o abi.o CDC.o HardwareSerial.o HardwareSerial0.o HardwareSerial1.o HardwareSerial2.o HardwareSerial3.o HID.o IPAddress.o new.o Print.o Stream.o Tone.o USBCore.o WMath.o WString.o MW_ArduinoHWInit.o io_wrappers.o arduinoAVRScheduler.o ext_serial_pkt.o rtiostream_serial_interface.o ext_svr_serial_transport.o rtiostream_serial.o ert_main.o -lm
Tone.o: In function `__vector_7':
C:/MATLAB/SupportPackages/R2016a_1/arduino-1.6.1/hardware/arduino/avr/cores/arduino/Tone.cpp:536: multiple definition of `__vector_7'
sf_HCSR04_wrapper.o:C:/Users/admin/DOCUME~1/MATLAB/ADARSH~1/MATLAB~1/NewPing.cpp:214: first defined here
c:/matlab/supportpackages/r2016a_1/arduino-1.6.1/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions
collect2.exe: error: ld returned 1 exit status
gmake: *** [../HCSR04_SFunction.elf] Error 1
### Build procedure for model: 'HCSR04_SFunction' aborted due to an error.
Error(s) encountered while building "HCSR04_SFunction":
### Failed to generate all binary outputs.
I am also facing same problem with Ultrasonic Sensor.
Can you please help on this?
Thanks, ANiket
Jan
Jan on 19 Oct 2016
Please, Aniket Adhvaryu, post a new question in a new thread, not as comment to an answer to another question. Thanks.

Sign in to comment.


Luke
Luke on 16 Nov 2017
just change the CCS version to the one that you have installed in code generation->toolchain.

kang guan guy
kang guan guy on 27 Jan 2018
i also facing this problem. it happen i use external or deploy the hardware.

abdeldjalil mir
abdeldjalil mir on 19 Mar 2018
first you unistall the package from matlab then you go to the directorie where you install the lastest package -delete all folder contaning arduino and package suport -go to matlab and install the package firts you dont get the libraries but if you reinstall the hardware package you will get it
for me i have the same probleme and i resolve it now

TRAN PHUC
TRAN PHUC on 22 Feb 2019
I have a problem. I need help
  1 Comment
Walter Roberson
Walter Roberson on 22 Feb 2019
Edited: Walter Roberson on 22 Feb 2019
You stored your files in E:\new folder with a space in the directory name. You need to rename that directory so that there is no space in the directory name.
Also it looks like you need to switch to fixed-step solver for use with grc.

Sign in to comment.


George Iskander
George Iskander on 3 Jul 2019
Check the folder containing the files, it shouldn't contain spaces or the name of the file itself be a reserved name or contain spaces.

Vasavi Sai
Vasavi Sai on 14 Jun 2021
Hi,
I faced same problem and I solved it by changing the path.
Just created a folder in desktop and copied file to that folder.
Then start deburging to F28335 controller.
Good Luck

Categories

Find more on Arduino Hardware in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!