Error massage "failed to generate binary outputs"

1 次查看(过去 30 天)
I have made a model for a flasher in Simulink, but when I pressed the button ''deploy to hardware'' to generate the code for the arduino Uno, I constantly get the error massage: "failed to generate all binary outputs''. I have already tried to restard the arduino, redownloading the arduino support package for simulink and changing the location of the simulation cache and code generation folder to another folder in "documents". I also haven't used any spaces in the file name.
You can find the full diagnostics here:
### Generating code into build folder: D:\persoonlijke map Davide\Documenten\MATLAB\Practicum_1_ert_rtw
### Invoking Target Language Compiler on Practicum_1.rtw
### Using System Target File: C:\Program Files\MATLAB\R2018a\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 Practicum_1_types.h
### Writing header file Practicum_1.h
### Writing source file Practicum_1.c
### Writing header file rtwtypes.h
### Writing header file multiword_types.h
### Writing header file Practicum_1_private.h
### Writing header file rtmodel.h
.
### Writing source file Practicum_1_data.c
### Writing source file ert_main.c
### TLC code generation complete.
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: Arduino AVR v1.8.1 | gmake (64-bit Windows)
### 'D:\persoonlijke map Davide\Documenten\MATLAB\Practicum_1_ert_rtw\Practicum_1.mk' is up to date
### Building 'Practicum_1': "C:\PROGRA~1\MATLAB\R2018a\bin\win64\gmake" -f Practicum_1.mk all
D:\persoonlijke map Davide\Documenten\MATLAB\Practicum_1_ert_rtw>cd .
D:\persoonlijke map Davide\Documenten\MATLAB\Practicum_1_ert_rtw>if "" == "" ("C:\PROGRA~1\MATLAB\R2018a\bin\win64\gmake" -f Practicum_1.mk all ) else ("C:\PROGRA~1\MATLAB\R2018a\bin\win64\gmake" -f Practicum_1.mk )
C:/ProgramData/MATLAB/SupportPackages/R2018a/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-g++ -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"MW_digitalio.dep" -MT"MW_digitalio.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=Practicum_1 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -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=1 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=59286 -DMW_SCHEDULERCOUNTER=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=Practicum_1 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -ID:/persoonlijke map Davide/Documenten/MATLAB -IC:/ProgramData/MATLAB/SupportPackages/R2018a/toolbox/target/supportpackages/arduinobase/include -ID:/persoonlijke map Davide/Documenten/MATLAB/Practicum_1_ert_rtw -ID:/persoonlijke map Davide/Documenten/Practica -IC:/PROGRA~1/MATLAB/R2018a/extern/include -IC:/PROGRA~1/MATLAB/R2018a/simulink/include -IC:/PROGRA~1/MATLAB/R2018a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2018a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2018a/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2018a/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2018a/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2018a/3P.instrset/arduinoide.instrset/arduino-1.8.1/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2018a/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2018a/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2018a/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2018a/toolbox/target/shared/externalmode_daemon/include -o MW_digitalio.o C:/ProgramData/MATLAB/SupportPackages/R2018a/toolbox/target/supportpackages/arduinobase/src/MW_digitalio.cpp
avr-g++: error: map: No such file or directory
avr-g++: error: Davide/Documenten/MATLAB: No such file or directory
avr-g++: error: map: No such file or directory
avr-g++: error: Davide/Documenten/MATLAB/Practicum_1_ert_rtw: No such file or directory
avr-g++: error: map: No such file or directory
avr-g++: error: Davide/Documenten/Practica: No such file or directory
gmake: *** [MW_digitalio.o] Error 1
D:\persoonlijke map Davide\Documenten\MATLAB\Practicum_1_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
D:\persoonlijke map Davide\Documenten\MATLAB\Practicum_1_ert_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.
### Creating HTML report file Practicum_1_codegen_rpt.html
(36): warning: generic lexer warning: Unterminated 'C++' style comment
### Build procedure for model: 'Practicum_1' aborted due to an error.
Error(s) encountered while building "Practicum_1":
### Failed to generate all binary outputs.

采纳的回答

Pruthvi Muppavarapu
The Simulink Support Package for Arduino Hardware may not work correctly in working directories containing spaces when 8dot3 names have been disabled.
A possible workaround is to use a working directory, named without spaces.
  1 个评论
Davide Caris
Davide Caris 2019-2-18
It worked. I forgot to rename one of the directories without spaces which was the only cause of the issue.
Thanks for the help!

请先登录,再进行评论。

更多回答(0 个)

类别

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

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by