How to fix "Failed to generate all binary outputs"

1 回表示 (過去 30 日間)
mohamed bernor
mohamed bernor 2018 年 6 月 8 日
Code Generation 1
Elapsed: 27 sec
### Generating code into build folder: C:\Users\Public\projetmcc3_ert_rtw
### Invoking Target Language Compiler on projetmcc3.rtw
### Using System Target File: C:\Program Files\MATLAB\R2017a\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 projetmcc3.h
.
### Writing header file projetmcc3_types.h
### Writing header file rtwtypes.h
### Writing header file multiword_types.h
### Writing source file projetmcc3.c
### Writing header file projetmcc3_private.h
.
### Writing source file projetmcc3_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 projetmcc3_dt.h
.### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: Arduino AVR v1.6.13 | gmake (64-bit Windows)
### Creating 'C:\Users\Public\projetmcc3_ert_rtw\projetmcc3.mk' ...
### Building 'projetmcc3': "C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f projetmcc3.mk all
C:\Users\Public\projetmcc3_ert_rtw>cd . C:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/shared/externalmode_daemon/include -o ert_main.o ert_main.c "### Creating standalone executable "../projetmcc3.elf" ..." C:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc -w -Os -Wl,--gc-sections,--relax -mmcu=atmega328p -o ../projetmcc3.elf projetmcc3.o projetmcc3_data.o ext_work.o rtiostream_utils.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 PluggableUSB.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 rtiostream_interface.o ext_svr_daemon.o rtiostream_serial_daemon.o updown.o daemon_checksum.o ert_main.o -lm MW_ArduinoHWInit.o: In function `MW_Arduino_Init': C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/registry/../src/MW_ArduinoHWInit.cpp:33: undefined reference to `Serial_begin(int, long)' collect2.exe: error: ld returned 1 exit status gmake: * [../projetmcc3.elf] Error 1
C:\Users\Public\projetmcc3_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2
C:\Users\Public\projetmcc3_ert_rtw>An_error_occurred_during_the_call_to_make 'An_error_occurred_during_the_call_to_make' n'est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes. ### Creating HTML report file projetmcc3_codegen_rpt.html ### Build procedure for model: 'projetmcc3' aborted due to an error. Error(s) encountered while building "projetmcc3": ### Failed to generate all binary outputs.

回答 (0 件)

カテゴリ

Help Center および File ExchangeArduino Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by