Code generation information file does not exist Problem

153 views (last 30 days)
Hello, while working on a project with Arduino and servomotors in Simulink, I get the following error. When I connect the servomotors directly to constant just to test the connection, it works well, but when I connect the servomotors to the rest of my code, it brings up de following error. Any ideas on how to fix it?
Diagnostic Viewer Message
### Starting build procedure for: Proyecto_Final_2GDL_Simulink ### Generating code and artifacts to 'Model specific' folder structure ### Generating code into build folder: C:\Users\mfimb\Desktop\Marco\Escuela\Programas\MATLAB\Robotica_Industrial\Proyecto_Final\Proyecto_Final_2GDL_Simulink_ert_rtw
'Output Port 1' of 'Proyecto_Final_2GDL_Simulink/Constantes' is not connected. [5 similar]
Component: Simulink | Category: Block warning
### Invoking Target Language Compiler on Proyecto_Final_2GDL_Simulink.rtw ### Using System Target File: C:\Program Files\MATLAB\R2021a\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 Proyecto_Final_2GDL_Simulink_types.h ### Writing source file Proyecto_Final_2GDL_Simulink.c . ### Writing header file Proyecto_Final_2GDL_Simulink_private.h ### Writing header file Proyecto_Final_2GDL_Simulink.h ### Writing header file rtwtypes.h ### Writing header file multiword_types.h ### Writing header file rtGetNaN.h . ### Writing source file rtGetNaN.c ### Writing header file rt_defines.h ### Writing header file rt_nonfinite.h ### Writing source file rt_nonfinite.c ### Writing header file rtGetInf.h . ### Writing source file rtGetInf.c ### Writing source file Proyecto_Final_2GDL_Simulink_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 Proyecto_Final_2GDL_Simulink_dt.h .### Evaluating PostCodeGenCommand specified in the model ### Using toolchain: Arduino AVR ### Creating 'C:\Users\mfimb\Desktop\Marco\Escuela\Programas\MATLAB\Robotica_Industrial\Proyecto_Final\Proyecto_Final_2GDL_Simulink_ert_rtw\Proyecto_Final_2GDL_Simulink.mk' ... ### Building 'Proyecto_Final_2GDL_Simulink': "C:\PROGRA~1\MATLAB\R2021a\bin\win64\gmake" -f wrapper.mk all C:\Users\mfimb\Desktop\Marco\Escuela\Programas\MATLAB\Robotica_Industrial\Proyecto_Final\Proyecto_Final_2GDL_Simulink_ert_rtw>cd . C:\Users\mfimb\Desktop\Marco\Escuela\Programas\MATLAB\Robotica_Industrial\Proyecto_Final\Proyecto_Final_2GDL_Simulink_ert_rtw>chcp 1252 Página de códigos activa: 1252 C:\Users\mfimb\Desktop\Marco\Escuela\Programas\MATLAB\Robotica_Industrial\Proyecto_Final\Proyecto_Final_2GDL_Simulink_ert_rtw>if "" == "" ("C:\PROGRA~1\MATLAB\R2021a\bin\win64\gmake" -f wrapper.mk all ) else ("C:\PROGRA~1\MATLAB\R2021a\bin\win64\gmake" -f wrapper.mk ) "### Generating static library." "C:/Program Files/MATLAB/R2021a/bin/win64/gmake" -j7 -C "C:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~2/STATIC~1" SHELL="%SystemRoot%/system32/cmd.exe" -f avrcomm.mk all gmake[1]: Entering directory `C:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~2/STATIC~1' "### Successfully generated libcomm.a library." gmake[1]: Leaving directory `C:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~2/STATIC~1' "C:/Program Files/MATLAB/R2021a/bin/win64/gmake" -j7 -C "C:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~2/STATIC~1" SHELL="%SystemRoot%/system32/cmd.exe" -f avrcore.mk all gmake[1]: Entering directory `C:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~2/STATIC~1' "### Successfully generated libcore.a library." gmake[1]: Leaving directory `C:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~2/STATIC~1' "C:/Program Files/MATLAB/R2021a/bin/win64/gmake" -j7 SHELL="%SystemRoot%/system32/cmd.exe" -f "Proyecto_Final_2GDL_Simulink.mk" all gmake[1]: Entering directory `C:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final/Proyecto_Final_2GDL_Simulink_ert_rtw' "C:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/tools/avr/bin/avr-g++" -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"MW_ServoWriteRead.dep" -MT"MW_ServoWriteRead.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=2 -DMW_PRESCALAR=1024 -DMW_TIMERCOUNT=131 -DMW_SCHEDULERCOUNTER=25 -DARDUINO_NUM_SERIAL_PORTS=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_NUMSERVOS_=2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DON_TARGET_WAIT_FOR_START=1 -DTID01EQ=0 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=Proyecto_Final_2GDL_Simulink -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~2/include -IC:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final/Proyecto_Final_2GDL_Simulink_ert_rtw -IC:/PROGRA~1/MATLAB/R2021a/extern/include -IC:/PROGRA~1/MATLAB/R2021a/simulink/include -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2021a/toolbox/coder/rtiostream/src -IC:/PROGRA~1/MATLAB/R2021a/toolbox/coder/rtiostream/src/utils -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/include -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/extern/src/export/include/src -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/extern/src/export/include -IC:/PROGRA~1/MATLAB/R2021a/toolbox/shared/dsp/vision/matlab/include -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/libraries/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/tools/avr/avr/include/avr -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/shared/EXTERN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/LIBRAR~1/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/hardware/arduino/avr/LIBRAR~1/Wire/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/hardware/arduino/avr/LIBRAR~1/Wire/src/utility -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/hardware/arduino/avr/LIBRAR~1/SPI/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/LIBRAR~1/Servo/src/avr -o "MW_ServoWriteRead.o" "C:/ProgramData/MATLAB/SupportPackages/R2021a/toolbox/target/supportpackages/arduinobase/src/MW_ServoWriteRead.cpp" "C:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/tools/avr/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"Proyecto_Final_2GDL_Simulink.dep" -MT"Proyecto_Final_2GDL_Simulink.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=2 -DMW_PRESCALAR=1024 -DMW_TIMERCOUNT=131 -DMW_SCHEDULERCOUNTER=25 -DARDUINO_NUM_SERIAL_PORTS=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_NUMSERVOS_=2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DON_TARGET_WAIT_FOR_START=1 -DTID01EQ=0 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=Proyecto_Final_2GDL_Simulink -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~2/include -IC:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final/Proyecto_Final_2GDL_Simulink_ert_rtw -IC:/PROGRA~1/MATLAB/R2021a/extern/include -IC:/PROGRA~1/MATLAB/R2021a/simulink/include -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2021a/toolbox/coder/rtiostream/src -IC:/PROGRA~1/MATLAB/R2021a/toolbox/coder/rtiostream/src/utils -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/include -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/extern/src/export/include/src -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/extern/src/export/include -IC:/PROGRA~1/MATLAB/R2021a/toolbox/shared/dsp/vision/matlab/include -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/libraries/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/tools/avr/avr/include/avr -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/shared/EXTERN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/LIBRAR~1/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/hardware/arduino/avr/LIBRAR~1/Wire/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/hardware/arduino/avr/LIBRAR~1/Wire/src/utility -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/hardware/arduino/avr/LIBRAR~1/SPI/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/LIBRAR~1/Servo/src/avr -o "Proyecto_Final_2GDL_Simulink.o" "C:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final/Proyecto_Final_2GDL_Simulink_ert_rtw/Proyecto_Final_2GDL_Simulink.c" "C:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/tools/avr/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"Proyecto_Final_2GDL_Simulink_data.dep" -MT"Proyecto_Final_2GDL_Simulink_data.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=2 -DMW_PRESCALAR=1024 -DMW_TIMERCOUNT=131 -DMW_SCHEDULERCOUNTER=25 -DARDUINO_NUM_SERIAL_PORTS=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_NUMSERVOS_=2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DON_TARGET_WAIT_FOR_START=1 -DTID01EQ=0 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=Proyecto_Final_2GDL_Simulink -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~2/include -IC:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final/Proyecto_Final_2GDL_Simulink_ert_rtw -IC:/PROGRA~1/MATLAB/R2021a/extern/include -IC:/PROGRA~1/MATLAB/R2021a/simulink/include -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2021a/toolbox/coder/rtiostream/src -IC:/PROGRA~1/MATLAB/R2021a/toolbox/coder/rtiostream/src/utils -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/include -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/extern/src/export/include/src -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/extern/src/export/include -IC:/PROGRA~1/MATLAB/R2021a/toolbox/shared/dsp/vision/matlab/include -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/libraries/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/tools/avr/avr/include/avr -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/shared/EXTERN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/LIBRAR~1/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/hardware/arduino/avr/LIBRAR~1/Wire/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/hardware/arduino/avr/LIBRAR~1/Wire/src/utility -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/hardware/arduino/avr/LIBRAR~1/SPI/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/LIBRAR~1/Servo/src/avr -o "Proyecto_Final_2GDL_Simulink_data.o" "C:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final/Proyecto_Final_2GDL_Simulink_ert_rtw/Proyecto_Final_2GDL_Simulink_data.c" "C:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/tools/avr/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"rtGetInf.dep" -MT"rtGetInf.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=2 -DMW_PRESCALAR=1024 -DMW_TIMERCOUNT=131 -DMW_SCHEDULERCOUNTER=25 -DARDUINO_NUM_SERIAL_PORTS=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_NUMSERVOS_=2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DON_TARGET_WAIT_FOR_START=1 -DTID01EQ=0 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=Proyecto_Final_2GDL_Simulink -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~2/include -IC:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final/Proyecto_Final_2GDL_Simulink_ert_rtw -IC:/PROGRA~1/MATLAB/R2021a/extern/include -IC:/PROGRA~1/MATLAB/R2021a/simulink/include -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2021a/toolbox/coder/rtiostream/src -IC:/PROGRA~1/MATLAB/R2021a/toolbox/coder/rtiostream/src/utils -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/include -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/extern/src/export/include/src -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/extern/src/export/include -IC:/PROGRA~1/MATLAB/R2021a/toolbox/shared/dsp/vision/matlab/include -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/libraries/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/tools/avr/avr/include/avr -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/shared/EXTERN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/LIBRAR~1/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/hardware/arduino/avr/LIBRAR~1/Wire/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/hardware/arduino/avr/LIBRAR~1/Wire/src/utility -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/hardware/arduino/avr/LIBRAR~1/SPI/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/LIBRAR~1/Servo/src/avr -o "rtGetInf.o" "C:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final/Proyecto_Final_2GDL_Simulink_ert_rtw/rtGetInf.c" "C:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/tools/avr/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"rtGetNaN.dep" -MT"rtGetNaN.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=2 -DMW_PRESCALAR=1024 -DMW_TIMERCOUNT=131 -DMW_SCHEDULERCOUNTER=25 -DARDUINO_NUM_SERIAL_PORTS=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_NUMSERVOS_=2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DON_TARGET_WAIT_FOR_START=1 -DTID01EQ=0 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=Proyecto_Final_2GDL_Simulink -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~2/include -IC:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final/Proyecto_Final_2GDL_Simulink_ert_rtw -IC:/PROGRA~1/MATLAB/R2021a/extern/include -IC:/PROGRA~1/MATLAB/R2021a/simulink/include -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2021a/toolbox/coder/rtiostream/src -IC:/PROGRA~1/MATLAB/R2021a/toolbox/coder/rtiostream/src/utils -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/include -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/extern/src/export/include/src -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/extern/src/export/include -IC:/PROGRA~1/MATLAB/R2021a/toolbox/shared/dsp/vision/matlab/include -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/arduino/avr/variants/standard -IC:/ProgramDataIn file included from C:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final/Proyecto_Final_2GDL_Simulink_ert_rtw/Proyecto_Final_2GDL_Simulink.c:20:0: C:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final/Proyecto_Final_2GDL_Simulink_ert_rtw/Proyecto_Final_2GDL_Simulink.h:106:1: error: type 'struct <anonymous>' is too large } B_Proyecto_Final_2GDL_Simulin_T; ^ /MATLAB/SupportPackages/R2021a/aIDE/libraries/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/tools/avr/avr/include/avr -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/shared/EXTERN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/LIBRAR~1/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/hardware/arduino/avr/LIBRAR~1/Wire/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/hardware/arduino/avr/LIBRAR~1/Wire/src/utility -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/hardware/arduino/avr/LIBRAR~1/SPI/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/LIBRAR~1/Servo/src/avr -o "rtGetNaN.o" "C:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final/Proyecto_Final_2GDL_Simulink_ert_rtw/rtGetNaN.c" "C:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/tools/avr/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"rt_nonfinite.dep" -MT"rt_nonfinite.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=2 -DMW_PRESCALAR=1024 -DMW_TIMERCOUNT=131 -DMW_SCHEDULERCOUNTER=25 -DARDUINO_NUM_SERIAL_PORTS=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_NUMSERVOS_=2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DON_TARGET_WAIT_FOR_START=1 -DTID01EQ=0 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=Proyecto_Final_2GDL_Simulink -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~2/include -IC:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final/Proyecto_Final_2GDL_Simulink_ert_rtw -IC:/PROGRA~1/MATLAB/R2021a/extern/include -IC:/PROGRA~1/MATLAB/R2021a/simulink/include -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2021a/toolbox/coder/rtiostream/src -IC:/PROGRA~1/MATLAB/R2021a/toolbox/coder/rtiostream/src/utils -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/include -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/extern/src/export/include/src -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/extern/src/export/include -IC:/PROGRA~1/MATLAB/R2021a/toolbox/shared/dsp/vision/matlab/include -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/libraries/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/tools/avr/avr/include/avr -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/shared/EXTERN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/LIBRAR~1/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/hardware/arduino/avr/LIBRAR~1/Wire/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/hardware/arduino/avr/LIBRAR~1/Wire/src/utility -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/hardware/arduino/avr/LIBRAR~1/SPI/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/LIBRAR~1/Servo/src/avr -o "rt_nonfinite.o" "C:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final/Proyecto_Final_2GDL_Simulink_ert_rtw/rt_nonfinite.c" "C:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/tools/avr/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"updown.dep" -MT"updown.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=2 -DMW_PRESCALAR=1024 -DMW_TIMERCOUNT=131 -DMW_SCHEDULERCOUNTER=25 -DARDUINO_NUM_SERIAL_PORTS=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_NUMSERVOS_=2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DON_TARGET_WAIT_FOR_START=1 -DTID01EQ=0 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=Proyecto_Final_2GDL_Simulink -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~2/include -IC:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final/Proyecto_Final_2GDL_Simulink_ert_rtw -IC:/PROGRA~1/MATLAB/R2021a/extern/include -IC:/PROGRA~1/MATLAB/R2021a/simulink/include -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2021a/toolbox/coder/rtiostream/src -IC:/PROGRA~1/MATLAB/R2021a/toolbox/coder/rtiostream/src/utils -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/include -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/extern/src/export/include/src -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/extern/src/export/include -IC:/PROGRA~1/MATLAB/R2021a/toolbox/shared/dsp/vision/matlab/include -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATIn file included from C:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final/Proyecto_Final_2GDL_Simulink_ert_rtw/Proyecto_Final_2GDL_Simulink_data.c:20:0: C:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final/Proyecto_Final_2GDL_Simulink_ert_rtw/Proyecto_Final_2GDL_Simulink.h:106:1: error: type 'struct <anonymous>' is too large } B_Proyecto_Final_2GDL_Simulin_T; ^ LAB/SupportPackages/R2021a/aIDE/libraries/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/tools/avr/avr/include/avr -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/shared/EXTERN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/LIBRAR~1/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/hardware/arduino/avr/LIBRAR~1/Wire/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/hardware/arduino/avr/LIBRAR~1/Wire/src/utility -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/hardware/arduino/avr/LIBRAR~1/SPI/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/LIBRAR~1/Servo/src/avr -o "updown.o" "C:/PROGRA~1/MATLAB/R2021a/rtw/c/src/ext_mode/common/updown.c" "C:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/tools/avr/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"ext_work.dep" -MT"ext_work.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=2 -DMW_PRESCALAR=1024 -DMW_TIMERCOUNT=131 -DMW_SCHEDULERCOUNTER=25 -DARDUINO_NUM_SERIAL_PORTS=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_NUMSERVOS_=2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DON_TARGET_WAIT_FOR_START=1 -DTID01EQ=0 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=Proyecto_Final_2GDL_Simulink -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~2/include -IC:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final/Proyecto_Final_2GDL_Simulink_ert_rtw -IC:/PROGRA~1/MATLAB/R2021a/extern/include -IC:/PROGRA~1/MATLAB/R2021a/simulink/include -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2021a/toolbox/coder/rtiostream/src -IC:/PROGRA~1/MATLAB/R2021a/toolbox/coder/rtiostream/src/utils -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/include -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/extern/src/export/include/src -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/extern/src/export/include -IC:/PROGRA~1/MATLAB/R2021a/toolbox/shared/dsp/vision/matlab/include -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/libraries/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/tools/avr/avr/include/avr -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/shared/EXTERN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/LIBRAR~1/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/hardware/arduino/avr/LIBRAR~1/Wire/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/hardware/arduino/avr/LIBRAR~1/Wire/src/utility -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/hardware/arduino/avr/LIBRAR~1/SPI/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/aIDE/LIBRAR~1/Servo/src/avr -o "ext_work.o" "C:/PROGRA~1/MATLAB/R2021a/rtw/c/src/ext_mode/common/ext_work.c" gmake[1]: *** [Proyecto_Final_2GDL_Simulink.o] Error 1 gmake[1]: *** Waiting for unfinished jobs.... gmake[1]: *** [Proyecto_Final_2GDL_Simulink_data.o] Error 1 gmake[1]: Leaving directory `C:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final/Proyecto_Final_2GDL_Simulink_ert_rtw' gmake: *** [all] Error 2 C:\Users\mfimb\Desktop\Marco\Escuela\Programas\MATLAB\Robotica_Industrial\Proyecto_Final\Proyecto_Final_2GDL_Simulink_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2 C:\Users\mfimb\Desktop\Marco\Escuela\Programas\MATLAB\Robotica_Industrial\Proyecto_Final\Proyecto_Final_2GDL_Simulink_ert_rtw>exit /B 1 ### Build procedure for Proyecto_Final_2GDL_Simulink aborted due to an error.
Build Summary
1
Elapsed: 0.3 sec
Top model targets built: Model Action Rebuild Reason ======================================================================================== Proyecto_Final_2GDL_Simulink Failed Code generation information file does not exist. 0 of 1 models built (0 models already up to date) Build duration: 0h 0m 11.541s
Error(s) encountered while building "Proyecto_Final_2GDL_Simulink"
Component: Simulink | Category: Model error

Answers (1)

Walter Roberson
Walter Roberson on 22 Nov 2021
Notice this part:
"C:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/tools/avr/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"updown.dep" -MT"updown.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=2 -DMW_PRESCALAR=1024 -DMW_TIMERCOUNT=131 -DMW_SCHEDULERCOUNTER=25 -DARDUINO_NUM_SERIAL_PORTS=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -D_RTT_NUMSERVOS_=2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DON_TARGET_WAIT_FOR_START=1 -DTID01EQ=0 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=Proyecto_Final_2GDL_Simulink -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/toolbox/target/SUPPOR~1/ARDUIN~2/include -IC:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final/Proyecto_Final_2GDL_Simulink_ert_rtw -IC:/PROGRA~1/MATLAB/R2021a/extern/include -IC:/PROGRA~1/MATLAB/R2021a/simulink/include -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2021a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2021a/toolbox/coder/rtiostream/src -IC:/PROGRA~1/MATLAB/R2021a/toolbox/coder/rtiostream/src/utils -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/include -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/extern/src/export/include/src -IC:/PROGRA~1/MATLAB/R2021a/toolbox/dsp/extern/src/export/include -IC:/PROGRA~1/MATLAB/R2021a/toolbox/shared/dsp/vision/matlab/include -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2021a/aIDE/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATIn file included from C:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final/Proyecto_Final_2GDL_Simulink_ert_rtw/Proyecto_Final_2GDL_Simulink_data.c:20:0: C:/Users/mfimb/Desktop/Marco/Escuela/Programas/MATLAB/Robotica_Industrial/Proyecto_Final/Proyecto_Final_2GDL_Simulink_ert_rtw/Proyecto_Final_2GDL_Simulink.h:106:1: error: type 'struct <anonymous>' is too large } B_Proyecto_Final_2GDL_Simulin_T; ^
And read:
It appears that some gcc-based compilers have a limit if 4 Gigabytes for a struct, and your code needs more than that.
Your compilation failed, so it did not have necessary files at later stages.
I would point out that this would have been significantly easier for us to detect if you had formatted the log into separate lines, similar to the way that I went through by hand and formatted the log in https://www.mathworks.com/matlabcentral/answers/1584024-hello-when-i-try-to-run-this-model-on-an-arduino-mega-i-get-this-error/ . Formatting those logs by hand is a fair bit of work, but is easy if someone who has access to the original log drops the log into a code block in the Answers editor.
  1 Comment
Marco Antonio Fimbres Schraidt
Edited: Marco Antonio Fimbres Schraidt on 23 Nov 2021
Sorry for the formatting part, I didn't know I could format it with the answers editor (this is the first time I make a question in the Matlab forums). As to the part with the struct being to large, I will share the connection in Simulink that makes the problem arise.
As you can see in the image, I have 2 signals that aren't connected to anything. Those signals have the information I want in the servomotors. To test the motors, I have them connected to a constant and when I run the program, it compiles correctly without any problem.
However, when I make the following connection, the Diagnostic Viewer gives me the error message "Code generation information file does not exist" and the log that I already shared.
Just to clarify: In the "Select Columns" block, I am giving to the input (In1) a Row Vector and the index (Idx) the iteration provided by the "For Iterator". By selecting the columns, I'm trying to get every individual value out of the Row Vector into the servomotors. If any additional information is needed, I can answer.

Sign in to comment.

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!