avr-gcc: fatal error: no input files compilation terminated.

6 views (last 30 days)
I am trying to run the simple LED blinking model with Simulink and Arduino UNO. However the compilation is failing. As advised I checked a lot of the previous MATLAB threads however I didn't get a solution.
Thank you in advance
### Generating code into build folder: C:\MATLAB\SupportPackages\R2016a\arduino-1.6.1\arduino1_ert_rtw ### Invoking Target Language Compiler on arduino1.rtw ### Using System Target File: C:\Program Files\MATLAB\R2016a\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 arduino1.h ### Writing header file arduino1_types.h ### Writing header file rtwtypes.h ### Writing source file arduino1.c ### Writing header file arduino1_private.h . ### Writing source file arduino1_data.c ### Writing header file rtmodel.h ### Writing source file ert_main.c ### TLC code generation complete. ### Evaluating PostCodeGenCommand specified in the model ### Using toolchain: Arduino AVR v1.6.1 | gmake (64-bit Windows) ### 'C:\MATLAB\SupportPackages\R2016a\arduino-1.6.1\arduino1_ert_rtw\arduino1.mk' is up to date ### Building 'arduino1': C:\PROGRA~1\MATLAB\R2016a\bin\win64\gmake -f arduino1.mk all C:/MATLAB/SupportPackages/R2016a/arduino-1.6.1/hardware/tools/avr/bin/avr-gcc -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10601 -MMD -MP -MF"arduino1.dep" -MT"arduino1.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=arduino1 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DONESTEPFCN=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 -DMW_TIMERID=1 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=59286 -DMW_SCHEDULERCOUNTER=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -DMODEL=arduino1 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/MATLAB/SupportPackages/R2016a/toolbox/target/supportpackages/arduinobase/include -IC:/MATLAB/SupportPackages/R2016a/toolbox/target/supportpackages/arduinobase/blocks/sfcn/include -IC:/PROGRA~1/MATLAB/R2016a/simulink/include/sf_runtime -IC:/MATLAB/SupportPackages/R2016a/arduino-1.6.1/arduino1_ert_rtw -IC:/MATLAB/SupportPackages/R2016a/arduino-1.6.1 -IC:/Users/admin/Desktop/aaditya/iHUB/R&D/HOWDOE~1 -IC:/PROGRA~1/MATLAB/R2016a/extern/include -IC:/PROGRA~1/MATLAB/R2016a/simulink/include -IC:/PROGRA~1/MATLAB/R2016a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2016a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2016a/rtw/c/ert -IC:/MATLAB/SupportPackages/R2016a/arduino-1.6.1/hardware/arduino/avr/cores/arduino -IC:/MATLAB/SupportPackages/R2016a/arduino-1.6.1/hardware/arduino/avr/variants/standard -IC:/MATLAB/SupportPackages/R2016a/arduino-1.6.1/libraries/Servo/src -IC:/MATLAB/SupportPackages/R2016a/toolbox/target/supportpackages/arduinotarget/registry/../include -IC:/MATLAB/SupportPackages/R2016a/toolbox/target/supportpackages/arduinotarget/registry/../scheduler/include -o "arduino1.o" "arduino1.c" avr-gcc: fatal error: no input files compilation terminated. 'D' is not recognized as an internal or external command, operable program or batch file. gmake: * [arduino1.o] Error 1 ### Creating HTML report file arduino1_codegen_rpt.html ### Build procedure for model: 'arduino1' aborted due to an error. Error(s) encountered while building "arduino1": ### Failed to generate all binary outputs.

Answers (0)

Categories

Find more on Arduino Hardware in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!