Borrar filtros
Borrar filtros

Problem when downloading Code from Simulink to Arduino Mega 2560

2 visualizaciones (últimos 30 días)
Sirazhudin Alib
Sirazhudin Alib el 28 de Oct. de 2017
Comentada: ILIA KOLOSHIN el 28 de Nov. de 2021
### Generating code into build folder: C:\Users\Сираж\Documents\MATLAB\untitled_ert_rtw ### Invoking Target Language Compiler on untitled.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 untitled.h ### Writing header file untitled_types.h ### Writing source file untitled.c ### Writing header file rtwtypes.h . ### Writing header file untitled_private.h ### Writing source file untitled_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.13 | gmake (64-bit Windows) ### 'C:\Users\Сираж\Documents\MATLAB\untitled_ert_rtw\untitled.mk' is up to date ### Building 'untitled': "C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f untitled.mk all C:\Users\Сираж\Documents\MATLAB\untitled_ert_rtw>cd . C:\Users\Сираж\Documents\MATLAB\untitled_ert_rtw>if "" == "" ("C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f untitled.mk all ) else ("C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f untitled.mk ) C:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/tools/avr/bin/avr-g++ -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10613 -MMD -MP -MF"MW_digitalio.dep" -MT"MW_digitalio.o" -Os -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO_AVR_ADK -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_MEGA2560_ -DMODEL=untitled -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=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 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DMW_TIMERID=5 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=59286 -DMW_SCHEDULERCOUNTER=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_BAUDRATE_SERIAL2_=9600 -D_RTT_BAUDRATE_SERIAL3_=9600 -D_RTT_ANALOG_REF_=0 -DTERMFCN=1 -DONESTEPFCN=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 -DSTACK_SIZE=64 -DRT -DMODEL=untitled -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/╤шЁрц/Documents/MATLAB -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinobase/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include/sf_runtime -IC:/Users/╤шЁрц/Documents/MATLAB/untitled_ert_rtw -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/arduino/avr/variants/mega -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/shared/externalmode_daemon/include -o MW_digitalio.o C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinobase/src/MW_digitalio.cpp In file included from C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinobase/src/MW_digitalio.cpp:2:0: C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinobase/include/MW_digitalio.h:3:22: fatal error: rtwtypes.h: No such file or directory #include "rtwtypes.h" ^ compilation terminated. gmake: * [MW_digitalio.o] Error 1 C:\Users\Сираж\Documents\MATLAB\untitled_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2 C:\Users\Сираж\Documents\MATLAB\untitled_ert_rtw>An_error_occurred_during_the_call_to_make "An_error_occurred_during_the_call_to_make" не является внутренней или внешней командой, исполняемой программой или пакетным файлом. ### Creating HTML report file untitled_codegen_rpt.html ### Build procedure for model: 'untitled' aborted due to an error. Error(s) encountered while building "untitled": ### Failed to generate all binary outputs.
  2 comentarios
ILIA KOLOSHIN
ILIA KOLOSHIN el 28 de Nov. de 2021
@Sirazhudin Alib All folders on your way must ba with English words.
You have "Сираж" and "шЁрц". Change this on Eng and will be ok:)

Iniciar sesión para comentar.

Respuestas (1)

Francis GROSBOIS
Francis GROSBOIS el 16 de Nov. de 2017
Hello,
I had the same problem, due to the name of the directory "séquentiel", i am french. Changed in "sequentiel" and all is ok for me. Perhaps the name Сираж is not understand...
  1 comentario
ILIA KOLOSHIN
ILIA KOLOSHIN el 28 de Nov. de 2021
Thank you!
I had the same problem and your solve helped me!
All folders on your way must ba with English words

Iniciar sesión para comentar.

Categorías

Más información sobre Embedded Coder en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by