MATLAB Answers

Failed to generate all binary outputs.

3 views (last 30 days)
Tarek Omran
Tarek Omran on 25 Mar 2021
=== Simulation (Elapsed: 47 sec) ===
### Starting build procedure for model: myDCMotorControl
### Generating code and artifacts to 'Model specific' folder structure
### Generating code into build folder: C:\Users\User\Desktop\kit\myDCMotorControl_ert_rtw
### Invoking Target Language Compiler on myDCMotorControl.rtw
### Using System Target File: C:\Program Files\Polyspace\R2019a\rtw\c\ert\ert.tlc
### Loading TLC function libraries
......
### Initial pass through model to cache user defined code
.
### Caching model source code
..........................................................
### Writing header file myDCMotorControl_types.h
### Writing header file myDCMotorControl.h
.
### Writing source file myDCMotorControl.c
### Writing header file rtwtypes.h
### Writing header file multiword_types.h
### Writing header file rt_nonfinite.h
### Writing source file rt_nonfinite.c
.
### Writing header file rtGetInf.h
### Writing source file rtGetInf.c
### Writing header file rtGetNaN.h
### Writing source file rtGetNaN.c
### Writing header file myDCMotorControl_private.h
### Writing source file myDCMotorControl_data.c
.
### Writing header file rtmodel.h
### Writing source file ert_main.c
### TLC code generation complete.
### Generating TLC interface API.
.....................
### Creating data type transition file myDCMotorControl_dt.h
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: Arduino ARM
### Creating 'C:\Users\User\Desktop\kit\myDCMotorControl_ert_rtw\myDCMotorControl.mk' ...
### Building 'myDCMotorControl': "C:\PROGRA~1\POLYSP~1\R2019a\bin\win64\gmake" -f myDCMotorControl.mk all
C:\Users\User\Desktop\kit\myDCMotorControl_ert_rtw>cd .
C:\Users\User\Desktop\kit\myDCMotorControl_ert_rtw>if "" == "" ("C:\PROGRA~1\POLYSP~1\R2019a\bin\win64\gmake" -f myDCMotorControl.mk all ) else ("C:\PROGRA~1\POLYSP~1\R2019a\bin\win64\gmake" -f myDCMotorControl.mk )
C:/ProgramData/MATLAB/SupportPackages/R2019a/3P.instrset/arduinoide.instrset/idepkgs/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -std=gnu++11 -fno-threadsafe-statics -fno-rtti -fno-exceptions -Os -c -g -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -DARDUINO=10801 -MMD -MP -MF"MW_arduinoI2C.dep" -MT"MW_arduinoI2C.o" -MMD -mcpu=cortex-m0plus -fpermissive -DF_CPU=48000000L -DARDUINO_SAMD_MKR1000 -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x824e -DUSBCON -DUSB_MANUFACTURER=\""Unknown\"" -DUSB_PRODUCT=\""Genuino MKR1000\"" -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_MKR1000_ -DMODEL=myDCMotorControl -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DON_TARGET_WAIT_FOR_START=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DMW_TIMERID=9 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=18750 -DMW_SCHEDULERCOUNTER=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_ANALOG_REF_=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DON_TARGET_WAIT_FOR_START=1 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=myDCMotorControl -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/User/Desktop/kit -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2019a/toolbox/target/shared/svd/include -IC:/Users/User/Desktop/kit/myDCMotorControl_ert_rtw -IC:/PROGRA~1/POLYSP~1/R2019a/extern/include -IC:/PROGRA~1/POLYSP~1/R2019a/simulink/include -IC:/PROGRA~1/POLYSP~1/R2019a/rtw/c/src -IC:/PROGRA~1/POLYSP~1/R2019a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/POLYSP~1/R2019a/rtw/c/ert -IC:/PROGRA~1/POLYSP~1/R2019a/toolbox/coder/rtiostream/src -IC:/PROGRA~1/POLYSP~1/R2019a/toolbox/coder/rtiostream/src/utils -IC:/ProgramData/MATLAB/SupportPackages/R2019a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include -IC:/ProgramData/MATLAB/SupportPackages/R2019a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL -IC:/ProgramData/MATLAB/SupportPackages/R2019a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/samd/1.6.20/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2019a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/samd/1.6.20/variants/mkr1000 -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2019a/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2019a/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2019a/toolbox/target/SUPPOR~1/ARMCOR~1/SCHEDU~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2019a/toolbox/target/SUPPOR~1/ARDUIN~2/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2019a/toolbox/target/shared/EXTERN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2019a/toolbox/target/SUPPOR~1/ARMCOR~1/xcp/include -IC:/ProgramData/MATLAB/SupportPackages/R2019a/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/hardware/samd/1.6.20/libraries/Wire -o MW_arduinoI2C.o C:/ProgramData/MATLAB/SupportPackages/R2019a/toolbox/target/supportpackages/arduinobase/src/MW_arduinoI2C.cpp
In file included from C:/Users/User/Desktop/kit/myDCMotorControl_ert_rtw/MW_target_hardware_resources.h:8:0,
from C:/ProgramData/MATLAB/SupportPackages/R2019a/toolbox/target/supportpackages/arduinobase/src/MW_arduinoI2C.cpp:5:
C:/PROGRA~3/MATLAB/SUPPOR~1/R2019a/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include/arduinoARM_M0plusScheduler.h:9:21: fatal error: Arduino.h: No such file or directory
#include "Arduino.h"
^
compilation terminated.
gmake: *** [MW_arduinoI2C.o] Error 1
C:\Users\User\Desktop\kit\myDCMotorControl_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
C:\Users\User\Desktop\kit\myDCMotorControl_ert_rtw>exit 1
### Creating HTML report file myDCMotorControl_codegen_rpt.html
### Build procedure for model: 'myDCMotorControl' aborted due to an error.
Error:Error(s) encountered while building "myDCMotorControl":
### Failed to generate all binary outputs.

Answers (0)

Community Treasure Hunt

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

Start Hunting!