Gmake error 2 while deploying simulink model into arduino mega 2560
8 次查看(过去 30 天)
显示 更早的评论
Hello all,
I've created one npmc controller which uses neural network as prediction model. Since last week i've been trying to implement it on a set up using arduino mega 2560, but while doing so i'm getting following error. I would really appreciate it if anybody could guide me in this regard. I've already tried suggestion present on forum but that didn't solve the issue.
Thank you in advance.
### Starting build procedure for: nntrial
### Generating code and artifacts to 'Model specific' folder structure
### Generating code into build folder: C:\Users\hitar\Documents\MATLAB\nntrial_ert_rtw
### Invoking Target Language Compiler on nntrial.rtw
### Using System Target File: C:\Program Files\MATLAB\R2023a\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 nntrial_types.h
### Writing source file nntrial.c
### Writing header file nntrial_private.h
.
### Writing header file nntrial.h
### Writing header file rtwtypes.h
### Writing header file multiword_types.h
### Writing header file rtGetInf.h
### Writing source file rtGetInf.c
.
### Writing header file rtGetNaN.h
### Writing source file rtGetNaN.c
### Writing header file rt_nonfinite.h
### Writing source file rt_nonfinite.c
### Writing source file nntrial_data.c
.
### Writing header file rtmodel.h
### Writing source file ert_main.c
### TLC code generation complete (took 13.547s).
### Creating extmode_task_info.m.
### Creating external mode types file ext_mode_types.h
.### Allocated 1024 bytes for internal data structures of XCP stack. Considered a maximum of 4 Object Descriptor Tables (ODTs) and 4 Data Acquisition objects (DAQs), with no more than 3 ODTs in each DAQ and no more than 7 entries in each ODT.
### Allocated 2718 bytes for storage of XCP packets. Considered 670 bytes for Command Transfer Objects (CTOs) and 2048 bytes for Data Transfer Objects (DTOs).
### For more information, see Memory Allocation for Communication Buffers.
### Saving binary information cache.
### Using toolchain: Arduino AVR
### Creating 'C:\Users\hitar\Documents\MATLAB\nntrial_ert_rtw\nntrial.mk' ...
### Building 'nntrial': "C:\PROGRA~1\MATLAB\R2023a\bin\win64\gmake" -f wrapper.mk all
C:\Users\hitar\Documents\MATLAB\nntrial_ert_rtw>cd .
C:\Users\hitar\Documents\MATLAB\nntrial_ert_rtw>if "all" == "" ("C:\PROGRA~1\MATLAB\R2023a\bin\win64\gmake" -f wrapper.mk all ) else ("C:\PROGRA~1\MATLAB\R2023a\bin\win64\gmake" -f wrapper.mk all )
"### Generating static library."
"C:/Program Files/MATLAB/R2023a/bin/win64/gmake" -j3 -C "C:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/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/R2023a/toolbox/target/SUPPOR~1/ARDUIN~2/STATIC~1'
"### Successfully generated libcore.a library."
gmake[1]: Leaving directory `C:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/toolbox/target/SUPPOR~1/ARDUIN~2/STATIC~1'
"C:/Program Files/MATLAB/R2023a/bin/win64/gmake" -j3 SHELL="%SystemRoot%/system32/cmd.exe" -f "nntrial.mk" all
gmake[1]: Entering directory `C:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw'
"C:/ProgramData/MATLAB/SupportPackages/R2023a/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_AnalogInput.dep" -MT"MW_AnalogInput.o" -Os -g -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_MEGA2560_ -DARDUINO_NUM_SERIAL_PORTS=4 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DXCP_MAX_DAQ=65535 -DXCP_MIN_DAQ=0 -DXCP_MAX_EVENT_CHANNEL=128 -DXCP_ID_FIELD_TYPE=0 -DXCP_TIMESTAMP_SIZE=4 -DXCP_ADDRESS_GRANULARITY=XCP_ADDRESS_GRANULARITY_BYTE -DCODERTARGET_XCP_DAQ_PACKED_MODE -DCODERTARGET_XCP_MAX_CONTIGUOUS_SAMPLES=2 -DMW_TIMERID=5 -DMW_PRESCALAR=1024 -DMW_TIMERCOUNT=49911 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=4 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_BAUDRATE_SERIAL2_=9600 -D_RTT_BAUDRATE_SERIAL3_=9600 -D_RTT_CONFIG_SERIAL0_=SERIAL_8N1 -D_RTT_CONFIG_SERIAL1_=SERIAL_8N1 -D_RTT_CONFIG_SERIAL2_=SERIAL_8N1 -D_RTT_CONFIG_SERIAL3_=SERIAL_8N1 -D_RTT_ANALOG_REF_=0 -DMW_RTIO_SERIAL0 -D_RTT_PWM_BLOCKS_ -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DXCP_EXTMODE_SIMULATION_TIME_IN_TICKS -DXCP_DAQ_SUPPORT -DXCP_CALIBRATION_SUPPORT -DXCP_TIMESTAMP_SUPPORT -DXCP_TIMESTAMP_BASED_ON_SIMULATION_TIME -DXCP_SET_MTA_SUPPORT -DEXTMODE_XCP_TRIGGER_SUPPORT -DINTERNAL_XCP_MEM_BLOCK_1_SIZE=128 -DINTERNAL_XCP_MEM_BLOCK_1_NUMBER=1 -DINTERNAL_XCP_MEM_BLOCK_2_SIZE=168 -DINTERNAL_XCP_MEM_BLOCK_2_NUMBER=4 -DINTERNAL_XCP_MEM_BLOCK_3_SIZE=56 -DINTERNAL_XCP_MEM_BLOCK_3_NUMBER=4 -DINTERNAL_XCP_MEM_RESERVED_POOLS_TOTAL_SIZE=2718 -DINTERNAL_XCP_MEM_RESERVED_POOLS_NUMBER=5 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=2048 -DON_TARGET_WAIT_FOR_START=1 -DTID01EQ=1 -DXCP_MEM_BLOCK_1_SIZE=32 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=56 -DXCP_MEM_BLOCK_2_NUMBER=1 -DXCP_MEM_BLOCK_3_SIZE=56 -DXCP_MEM_BLOCK_3_NUMBER=1 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=397 -DXCP_MEM_RESERVED_POOLS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=3 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=2 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=nntrial -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/hitar/Documents/MATLAB -IC:/PROGRA~1/MATLAB/R2023a/toolbox/target/shared/svd/common/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/toolbox/target/SUPPOR~1/ARDUIN~2/include -IC:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw -IC:/PROGRA~1/MATLAB/R2023a/extern/include -IC:/PROGRA~1/MATLAB/R2023a/simulink/include -IC:/PROGRA~1/MATLAB/R2023a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2023a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2023a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/common -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/protocol/src -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/protocol/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/transport/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/transport/src -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/platform/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/platform/default -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/ext_mode/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/ext_mode/src -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/arduino/avr/variants/mega -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/tools/avr/avr/include/avr -o "MW_AnalogInput.o" "C:/ProgramData/MATLAB/SupportPackages/R2023a/toolbox/target/supportpackages/arduinobase/src/MW_AnalogInput.cpp"
"C:/ProgramData/MATLAB/SupportPackages/R2023a/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"ArduinoPinHandleMap.dep" -MT"ArduinoPinHandleMap.o" -Os -g -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_MEGA2560_ -DARDUINO_NUM_SERIAL_PORTS=4 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DXCP_MAX_DAQ=65535 -DXCP_MIN_DAQ=0 -DXCP_MAX_EVENT_CHANNEL=128 -DXCP_ID_FIELD_TYPE=0 -DXCP_TIMESTAMP_SIZE=4 -DXCP_ADDRESS_GRANULARITY=XCP_ADDRESS_GRANULARITY_BYTE -DCODERTARGET_XCP_DAQ_PACKED_MODE -DCODERTARGET_XCP_MAX_CONTIGUOUS_SAMPLES=2 -DMW_TIMERID=5 -DMW_PRESCALAR=1024 -DMW_TIMERCOUNT=49911 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=4 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_BAUDRATE_SERIAL2_=9600 -D_RTT_BAUDRATE_SERIAL3_=9600 -D_RTT_CONFIG_SERIAL0_=SERIAL_8N1 -D_RTT_CONFIG_SERIAL1_=SERIAL_8N1 -D_RTT_CONFIG_SERIAL2_=SERIAL_8N1 -D_RTT_CONFIG_SERIAL3_=SERIAL_8N1 -D_RTT_ANALOG_REF_=0 -DMW_RTIO_SERIAL0 -D_RTT_PWM_BLOCKS_ -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DXCP_EXTMODE_SIMULATION_TIME_IN_TICKS -DXCP_DAQ_SUPPORT -DXCP_CALIBRATION_SUPPORT -DXCP_TIMESTAMP_SUPPORT -DXCP_TIMESTAMP_BASED_ON_SIMULATION_TIME -DXCP_SET_MTA_SUPPORT -DEXTMODE_XCP_TRIGGER_SUPPORT -DINTERNAL_XCP_MEM_BLOCK_1_SIZE=128 -DINTERNAL_XCP_MEM_BLOCK_1_NUMBER=1 -DINTERNAL_XCP_MEM_BLOCK_2_SIZE=168 -DINTERNAL_XCP_MEM_BLOCK_2_NUMBER=4 -DINTERNAL_XCP_MEM_BLOCK_3_SIZE=56 -DINTERNAL_XCP_MEM_BLOCK_3_NUMBER=4 -DINTERNAL_XCP_MEM_RESERVED_POOLS_TOTAL_SIZE=2718 -DINTERNAL_XCP_MEM_RESERVED_POOLS_NUMBER=5 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=2048 -DON_TARGET_WAIT_FOR_START=1 -DTID01EQ=1 -DXCP_MEM_BLOCK_1_SIZE=32 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=56 -DXCP_MEM_BLOCK_2_NUMBER=1 -DXCP_MEM_BLOCK_3_SIZE=56 -DXCP_MEM_BLOCK_3_NUMBER=1 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=397 -DXCP_MEM_RESERVED_POOLS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=3 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=2 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=nntrial -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/hitar/Documents/MATLAB -IC:/PROGRA~1/MATLAB/R2023a/toolbox/target/shared/svd/common/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/toolbox/target/SUPPOR~1/ARDUIN~2/include -IC:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw -IC:/PROGRA~1/MATLAB/R2023a/extern/include -IC:/PROGRA~1/MATLAB/R2023a/simulink/include -IC:/PROGRA~1/MATLAB/R2023a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2023a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2023a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/common -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/protocol/src -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/protocol/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/transport/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/transport/src -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/platform/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/platform/default -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/ext_mode/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/ext_mode/src -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/arduino/avr/variants/mega -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/tools/avr/avr/include/avr -o "ArduinoPinHandleMap.o" "C:/ProgramData/MATLAB/SupportPackages/R2023a/toolbox/target/supportpackages/arduinobase/src/ArduinoPinHandleMap.cpp"
"C:/ProgramData/MATLAB/SupportPackages/R2023a/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_PWM.dep" -MT"MW_PWM.o" -Os -g -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_MEGA2560_ -DARDUINO_NUM_SERIAL_PORTS=4 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DXCP_MAX_DAQ=65535 -DXCP_MIN_DAQ=0 -DXCP_MAX_EVENT_CHANNEL=128 -DXCP_ID_FIELD_TYPE=0 -DXCP_TIMESTAMP_SIZE=4 -DXCP_ADDRESS_GRANULARITY=XCP_ADDRESS_GRANULARITY_BYTE -DCODERTARGET_XCP_DAQ_PACKED_MODE -DCODERTARGET_XCP_MAX_CONTIGUOUS_SAMPLES=2 -DMW_TIMERID=5 -DMW_PRESCALAR=1024 -DMW_TIMERCOUNT=49911 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=4 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_BAUDRATE_SERIAL2_=9600 -D_RTT_BAUDRATE_SERIAL3_=9600 -D_RTT_CONFIG_SERIAL0_=SERIAL_8N1 -D_RTT_CONFIG_SERIAL1_=SERIAL_8N1 -D_RTT_CONFIG_SERIAL2_=SERIAL_8N1 -D_RTT_CONFIG_SERIAL3_=SERIAL_8N1 -D_RTT_ANALOG_REF_=0 -DMW_RTIO_SERIAL0 -D_RTT_PWM_BLOCKS_ -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DXCP_EXTMODE_SIMULATION_TIME_IN_TICKS -DXCP_DAQ_SUPPORT -DXCP_CALIBRATION_SUPPORT -DXCP_TIMESTAMP_SUPPORT -DXCP_TIMESTAMP_BASED_ON_SIMULATION_TIME -DXCP_SET_MTA_SUPPORT -DEXTMODE_XCP_TRIGGER_SUPPORT -DINTERNAL_XCP_MEM_BLOCK_1_SIZE=128 -DINTERNAL_XCP_MEM_BLOCK_1_NUMBER=1 -DINTERNAL_XCP_MEM_BLOCK_2_SIZE=168 -DINTERNAL_XCP_MEM_BLOCK_2_NUMBER=4 -DINTERNAL_XCP_MEM_BLOCK_3_SIZE=56 -DINTERNAL_XCP_MEM_BLOCK_3_NUMBER=4 -DINTERNAL_XCP_MEM_RESERVED_POOLS_TOTAL_SIZE=2718 -DINTERNAL_XCP_MEM_RESERVED_POOLS_NUMBER=5 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=2048 -DON_TARGET_WAIT_FOR_START=1 -DTID01EQ=1 -DXCP_MEM_BLOCK_1_SIZE=32 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=56 -DXCP_MEM_BLOCK_2_NUMBER=1 -DXCP_MEM_BLOCK_3_SIZE=56 -DXCP_MEM_BLOCK_3_NUMBER=1 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=397 -DXCP_MEM_RESERVED_POOLS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=3 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=2 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=nntrial -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/hitar/Documents/MATLAB -IC:/PROGRA~1/MATLAB/R2023a/toolbox/target/shared/svd/common/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/toolbox/target/SUPPOR~1/ARDUIN~2/include -IC:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw -IC:/PROGRA~1/MATLAB/R2023a/extern/include -IC:/PROGRA~1/MATLAB/R2023a/simulink/include -IC:/PROGRA~1/MATLAB/R2023a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2023a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2023a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/common -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/protocol/src -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/protocol/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/transport/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/transport/src -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/platform/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/platform/default -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/ext_mode/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/ext_mode/src -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/arduino/avr/variants/mega -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/tools/avr/avr/include/avr -o "MW_PWM.o" "C:/ProgramData/MATLAB/SupportPackages/R2023a/toolbox/target/supportpackages/arduinobase/src/MW_PWM.cpp"
"C:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/tools/avr/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"MW_PWMDriver.dep" -MT"MW_PWMDriver.o" -Os -g -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_MEGA2560_ -DARDUINO_NUM_SERIAL_PORTS=4 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DXCP_MAX_DAQ=65535 -DXCP_MIN_DAQ=0 -DXCP_MAX_EVENT_CHANNEL=128 -DXCP_ID_FIELD_TYPE=0 -DXCP_TIMESTAMP_SIZE=4 -DXCP_ADDRESS_GRANULARITY=XCP_ADDRESS_GRANULARITY_BYTE -DCODERTARGET_XCP_DAQ_PACKED_MODE -DCODERTARGET_XCP_MAX_CONTIGUOUS_SAMPLES=2 -DMW_TIMERID=5 -DMW_PRESCALAR=1024 -DMW_TIMERCOUNT=49911 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=4 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_BAUDRATE_SERIAL2_=9600 -D_RTT_BAUDRATE_SERIAL3_=9600 -D_RTT_CONFIG_SERIAL0_=SERIAL_8N1 -D_RTT_CONFIG_SERIAL1_=SERIAL_8N1 -D_RTT_CONFIG_SERIAL2_=SERIAL_8N1 -D_RTT_CONFIG_SERIAL3_=SERIAL_8N1 -D_RTT_ANALOG_REF_=0 -DMW_RTIO_SERIAL0 -D_RTT_PWM_BLOCKS_ -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DXCP_EXTMODE_SIMULATION_TIME_IN_TICKS -DXCP_DAQ_SUPPORT -DXCP_CALIBRATION_SUPPORT -DXCP_TIMESTAMP_SUPPORT -DXCP_TIMESTAMP_BASED_ON_SIMULATION_TIME -DXCP_SET_MTA_SUPPORT -DEXTMODE_XCP_TRIGGER_SUPPORT -DINTERNAL_XCP_MEM_BLOCK_1_SIZE=128 -DINTERNAL_XCP_MEM_BLOCK_1_NUMBER=1 -DINTERNAL_XCP_MEM_BLOCK_2_SIZE=168 -DINTERNAL_XCP_MEM_BLOCK_2_NUMBER=4 -DINTERNAL_XCP_MEM_BLOCK_3_SIZE=56 -DINTERNAL_XCP_MEM_BLOCK_3_NUMBER=4 -DINTERNAL_XCP_MEM_RESERVED_POOLS_TOTAL_SIZE=2718 -DINTERNAL_XCP_MEM_RESERVED_POOLS_NUMBER=5 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=2048 -DON_TARGET_WAIT_FOR_START=1 -DTID01EQ=1 -DXCP_MEM_BLOCK_1_SIZE=32 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=56 -DXCP_MEM_BLOCK_2_NUMBER=1 -DXCP_MEM_BLOCK_3_SIZE=56 -DXCP_MEM_BLOCK_3_NUMBER=1 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=397 -DXCP_MEM_RESERVED_POOLS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=3 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=2 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=nntrial -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/hitar/Documents/MATLAB -IC:/PROGRA~1/MATLAB/R2023a/toolbox/target/shared/svd/common/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/toolbox/target/SUPPOR~1/ARDUIN~2/include -IC:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw -IC:/PROGRA~1/MATLAB/R2023a/extern/include -IC:/PROGRA~1/MATLAB/R2023a/simulink/include -IC:/PROGRA~1/MATLAB/R2023a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2023a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2023a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/common -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/protocol/src -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/protocol/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/transport/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/transport/src -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/platform/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/platform/default -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/ext_mode/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/ext_mode/src -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/arduino/avr/variants/mega -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/tools/avr/avr/include/avr -o "MW_PWMDriver.o" "C:/ProgramData/MATLAB/SupportPackages/R2023a/toolbox/target/supportpackages/arduinobase/src/MW_PWMDriver.c"
"C:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/tools/avr/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"xcp_ext_mode.dep" -MT"xcp_ext_mode.o" -Os -g -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_MEGA2560_ -DARDUINO_NUM_SERIAL_PORTS=4 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DXCP_MAX_DAQ=65535 -DXCP_MIN_DAQ=0 -DXCP_MAX_EVENT_CHANNEL=128 -DXCP_ID_FIELD_TYPE=0 -DXCP_TIMESTAMP_SIZE=4 -DXCP_ADDRESS_GRANULARITY=XCP_ADDRESS_GRANULARITY_BYTE -DCODERTARGET_XCP_DAQ_PACKED_MODE -DCODERTARGET_XCP_MAX_CONTIGUOUS_SAMPLES=2 -DMW_TIMERID=5 -DMW_PRESCALAR=1024 -DMW_TIMERCOUNT=49911 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=4 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_BAUDRATE_SERIAL2_=9600 -D_RTT_BAUDRATE_SERIAL3_=9600 -D_RTT_CONFIG_SERIAL0_=SERIAL_8N1 -D_RTT_CONFIG_SERIAL1_=SERIAL_8N1 -D_RTT_CONFIG_SERIAL2_=SERIAL_8N1 -D_RTT_CONFIG_SERIAL3_=SERIAL_8N1 -D_RTT_ANALOG_REF_=0 -DMW_RTIO_SERIAL0 -D_RTT_PWM_BLOCKS_ -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DXCP_EXTMODE_SIMULATION_TIME_IN_TICKS -DXCP_DAQ_SUPPORT -DXCP_CALIBRATION_SUPPORT -DXCP_TIMESTAMP_SUPPORT -DXCP_TIMESTAMP_BASED_ON_SIMULATION_TIME -DXCP_SET_MTA_SUPPORT -DEXTMODE_XCP_TRIGGER_SUPPORT -DINTERNAL_XCP_MEM_BLOCK_1_SIZE=128 -DINTERNAL_XCP_MEM_BLOCK_1_NUMBER=1 -DINTERNAL_XCP_MEM_BLOCK_2_SIZE=168 -DINTERNAL_XCP_MEM_BLOCK_2_NUMBER=4 -DINTERNAL_XCP_MEM_BLOCK_3_SIZE=56 -DINTERNAL_XCP_MEM_BLOCK_3_NUMBER=4 -DINTERNAL_XCP_MEM_RESERVED_POOLS_TOTAL_SIZE=2718 -DINTERNAL_XCP_MEM_RESERVED_POOLS_NUMBER=5 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=2048 -DON_TARGET_WAIT_FOR_START=1 -DTID01EQ=1 -DXCP_MEM_BLOCK_1_SIZE=32 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=56 -DXCP_MEM_BLOCK_2_NUMBER=1 -DXCP_MEM_BLOCK_3_SIZE=56 -DXCP_MEM_BLOCK_3_NUMBER=1 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=397 -DXCP_MEM_RESERVED_POOLS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=3 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=2 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=nntrial -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/hitar/Documents/MATLAB -IC:/PROGRA~1/MATLAB/R2023a/toolbox/target/shared/svd/common/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/toolbox/target/SUPPOR~1/ARDUIN~2/include -IC:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw -IC:/PROGRA~1/MATLAB/R2023a/extern/include -IC:/PROGRA~1/MATLAB/R2023a/simulink/include -IC:/PROGRA~1/MATLAB/R2023a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2023a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2023a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/common -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/protocol/src -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/protocol/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/transport/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/transport/src -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/platform/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/platform/default -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/ext_mode/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/ext_mode/src -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/arduino/avr/variants/mega -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/tools/avr/avr/include/avr -o "xcp_ext_mode.o" "C:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/ext_mode/src/xcp_ext_mode.c"
"C:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/tools/avr/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"nntrial.dep" -MT"nntrial.o" -Os -g -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_MEGA2560_ -DARDUINO_NUM_SERIAL_PORTS=4 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DXCP_MAX_DAQ=65535 -DXCP_MIN_DAQ=0 -DXCP_MAX_EVENT_CHANNEL=128 -DXCP_ID_FIELD_TYPE=0 -DXCP_TIMESTAMP_SIZE=4 -DXCP_ADDRESS_GRANULARITY=XCP_ADDRESS_GRANULARITY_BYTE -DCODERTARGET_XCP_DAQ_PACKED_MODE -DCODERTARGET_XCP_MAX_CONTIGUOUS_SAMPLES=2 -DMW_TIMERID=5 -DMW_PRESCALAR=1024 -DMW_TIMERCOUNT=49911 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=4 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_BAUDRATE_SERIAL2_=9600 -D_RTT_BAUDRATE_SERIAL3_=9600 -D_RTT_CONFIG_SERIAL0_=SERIAL_8N1 -D_RTT_CONFIG_SERIAL1_=SERIAL_8N1 -D_RTT_CONFIG_SERIAL2_=SERIAL_8N1 -D_RTT_CONFIG_SERIAL3_=SERIAL_8N1 -D_RTT_ANALOG_REF_=0 -DMW_RTIO_SERIAL0 -D_RTT_PWM_BLOCKS_ -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DXCP_EXTMODE_SIMULATION_TIME_IN_TICKS -DXCP_DAQ_SUPPORT -DXCP_CALIBRATION_SUPPORT -DXCP_TIMESTAMP_SUPPORT -DXCP_TIMESTAMP_BASED_ON_SIMULATION_TIME -DXCP_SET_MTA_SUPPORT -DEXTMODE_XCP_TRIGGER_SUPPORT -DINTERNAL_XCP_MEM_BLOCK_1_SIZE=128 -DINTERNAL_XCP_MEM_BLOCK_1_NUMBER=1 -DINTERNAL_XCP_MEM_BLOCK_2_SIZE=168 -DINTERNAL_XCP_MEM_BLOCK_2_NUMBER=4 -DINTERNAL_XCP_MEM_BLOCK_3_SIZE=56 -DINTERNAL_XCP_MEM_BLOCK_3_NUMBER=4 -DINTERNAL_XCP_MEM_RESERVED_POOLS_TOTAL_SIZE=2718 -DINTERNAL_XCP_MEM_RESERVED_POOLS_NUMBER=5 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=2048 -DON_TARGET_WAIT_FOR_START=1 -DTID01EQ=1 -DXCP_MEM_BLOCK_1_SIZE=32 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=56 -DXCP_MEM_BLOCK_2_NUMBER=1 -DXCP_MEM_BLOCK_3_SIZE=56 -DXCP_MEM_BLOCK_3_NUMBER=1 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=397 -DXCP_MEM_RESERVED_POOLS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=3 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=2 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=nntrial -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/hitar/Documents/MATLAB -IC:/PROGRA~1/MATLAB/R2023a/toolbox/target/shared/svd/common/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/toolbox/target/SUPPOR~1/ARDUIN~2/include -IC:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw -IC:/PROGRA~1/MATLAB/R2023a/extern/include -IC:/PROGRA~1/MATLAB/R2023a/simulink/include -IC:/PROGRA~1/MATLAB/R2023a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2023a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2023a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/common -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/protocol/src -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/protocol/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/transport/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/transport/src -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/platform/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/platform/default -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/ext_mode/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/ext_mode/src -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/arduino/avr/variants/mega -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/tools/avr/avr/include/avr -o "nntrial.o" "C:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw/nntrial.c"
"C:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/tools/avr/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"nntrial_data.dep" -MT"nntrial_data.o" -Os -g -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_MEGA2560_ -DARDUINO_NUM_SERIAL_PORTS=4 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DXCP_MAX_DAQ=65535 -DXCP_MIN_DAQ=0 -DXCP_MAX_EVENT_CHANNEL=128 -DXCP_ID_FIELD_TYPE=0 -DXCP_TIMESTAMP_SIZE=4 -DXCP_ADDRESS_GRANULARITY=XCP_ADDRESS_GRANULARITY_BYTE -DCODERTARGET_XCP_DAQ_PACKED_MODE -DCODERTARGET_XCP_MAX_CONTIGUOUS_SAMPLES=2 -DMW_TIMERID=5 -DMW_PRESCALAR=1024 -DMW_TIMERCOUNT=49911 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=4 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_BAUDRATE_SERIAL2_=9600 -D_RTT_BAUDRATE_SERIAL3_=9600 -D_RTT_CONFIG_SERIAL0_=SERIAL_8N1 -D_RTT_CONFIG_SERIAL1_=SERIAL_8N1 -D_RTT_CONFIG_SERIAL2_=SERIAL_8N1 -D_RTT_CONFIG_SERIAL3_=SERIAL_8N1 -D_RTT_ANALOG_REF_=0 -DMW_RTIO_SERIAL0 -D_RTT_PWM_BLOCKS_ -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DXCP_EXTMODE_SIMULATION_TIME_IN_TICKS -DXCP_DAQ_SUPPORT -DXCP_CALIBRATION_SUPPORT -DXCP_TIMESTAMP_SUPPORT -DXCP_TIMESTAMP_BASED_ON_SIMULATION_TIME -DXCP_SET_MTA_SUPPORT -DEXTMODE_XCP_TRIGGER_SUPPORT -DINTERNAL_XCP_MEM_BLOCK_1_SIZE=128 -DINTERNAL_XCP_MEM_BLOCK_1_NUMBER=1 -DINTERNAL_XCP_MEM_BLOCK_2_SIZE=168 -DINTERNAL_XCP_MEM_BLOCK_2_NUMBER=4 -DINTERNAL_XCP_MEM_BLOCK_3_SIZE=56 -DINTERNAL_XCP_MEM_BLOCK_3_NUMBER=4 -DINTERNAL_XCP_MEM_RESERVED_POOLS_TOTAL_SIZE=2718 -DINTERNAL_XCP_MEM_RESERVED_POOLS_NUMBER=5 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=2048 -DON_TARGET_WAIT_FOR_START=1 -DTID01EQ=1 -DXCP_MEM_BLOCK_1_SIZE=32 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=56 -DXCP_MEM_BLOCK_2_NUMBER=1 -DXCP_MEM_BLOCK_3_SIZE=56 -DXCP_MEM_BLOCK_3_NUMBER=1 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=397 -DXCP_MEM_RESERVED_POOLS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=3 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=2 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=nntrial -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/hitar/Documents/MATLAB -IC:/PROGRA~1/MATLAB/R2023a/toolbox/target/shared/svd/common/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/toolbox/target/SUPPOR~1/ARDUIN~2/include -IC:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw -IC:/PROGRA~1/MATLAB/R2023a/extern/include -IC:/PROGRA~1/MATLAB/R2023a/simulink/include -IC:/PROGRA~1/MATLAB/R2023a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2023a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2023a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/common -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/protocol/src -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/protocol/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/transport/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/transport/src -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/platform/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/platform/default -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/ext_mode/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/ext_mode/src -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/arduino/avr/variants/mega -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/tools/avr/avr/include/avr -o "nntrial_data.o" "C:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw/nntrial_data.c"
In file included from C:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw/nntrial.h:36:0,
from C:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw/nntrial.c:20:
C:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw/nntrial_types.h:347:10: error: size of array 'data' is too large
real_T data[16275];
^~~~
C:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw/nntrial_types.h:365:10: error: size of array 'data' is too large
real_T data[30625];
^~~~
C:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw/nntrial_types.h:884:10: error: size of array 'data' is too large
real_T data[16275];
^~~~
In file included from C:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw/nntrial.c:20:0:
C:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw/nntrial.h:87:10: error: size of array 'y_data' is too large
real_T y_data[30625];
^~~~~~
C:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw/nntrial.h:92:10: error: size of array 'B_data' is too large
real_T B_data[16275];
^~~~~~
"C:/ProgramData/MATLAB/SupportPackages/R2023a/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 -g -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_MEGA2560_ -DARDUINO_NUM_SERIAL_PORTS=4 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DXCP_MAX_DAQ=65535 -DXCP_MIN_DAQ=0 -DXCP_MAX_EVENT_CHANNEL=128 -DXCP_ID_FIELD_TYPE=0 -DXCP_TIMESTAMP_SIZE=4 -DXCP_ADDRESS_GRANULARITY=XCP_ADDRESS_GRANULARITY_BYTE -DCODERTARGET_XCP_DAQ_PACKED_MODE -DCODERTARGET_XCP_MAX_CONTIGUOUS_SAMPLES=2 -DMW_TIMERID=5 -DMW_PRESCALAR=1024 -DMW_TIMERCOUNT=49911 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=4 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_BAUDRATE_SERIAL2_=9600 -D_RTT_BAUDRATE_SERIAL3_=9600 -D_RTT_CONFIG_SERIAL0_=SERIAL_8N1 -D_RTT_CONFIG_SERIAL1_=SERIAL_8N1 -D_RTT_CONFIG_SERIAL2_=SERIAL_8N1 -D_RTT_CONFIG_SERIAL3_=SERIAL_8N1 -D_RTT_ANALOG_REF_=0 -DMW_RTIO_SERIAL0 -D_RTT_PWM_BLOCKS_ -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DXCP_EXTMODE_SIMULATION_TIME_IN_TICKS -DXCP_DAQ_SUPPORT -DXCP_CALIBRATION_SUPPORT -DXCP_TIMESTAMP_SUPPORT -DXCP_TIMESTAMP_BASED_ON_SIMULATION_TIME -DXCP_SET_MTA_SUPPORT -DEXTMODE_XCP_TRIGGER_SUPPORT -DINTERNAL_XCP_MEM_BLOCK_1_SIZE=128 -DINTERNAL_XCP_MEM_BLOCK_1_NUMBER=1 -DINTERNAL_XCP_MEM_BLOCK_2_SIZE=168 -DINTERNAL_XCP_MEM_BLOCK_2_NUMBER=4 -DINTERNAL_XCP_MEM_BLOCK_3_SIZE=56 -DINTERNAL_XCP_MEM_BLOCK_3_NUMBER=4 -DINTERNAL_XCP_MEM_RESERVED_POOLS_TOTAL_SIZE=2718 -DINTERNAL_XCP_MEM_RESERVED_POOLS_NUMBER=5 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=2048 -DON_TARGET_WAIT_FOR_START=1 -DTID01EQ=1 -DXCP_MEM_BLOCK_1_SIZE=32 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=56 -DXCP_MEM_BLOCK_2_NUMBER=1 -DXCP_MEM_BLOCK_3_SIZE=56 -DXCP_MEM_BLOCK_3_NUMBER=1 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=397 -DXCP_MEM_RESERVED_POOLS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=3 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=2 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=nntrial -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/hitar/Documents/MATLAB -IC:/PROGRA~1/MATLAB/R2023a/toolbox/target/shared/svd/common/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/toolbox/target/SUPPOR~1/ARDUIN~2/include -IC:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw -IC:/PROGRA~1/MATLAB/R2023a/extern/include -IC:/PROGRA~1/MATLAB/R2023a/simulink/include -IC:/PROGRA~1/MATLAB/R2023a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2023a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2023a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/common -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/protocol/src -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/protocol/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/transport/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/transport/src -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/platform/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/slave/platform/default -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/ext_mode/include -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/xcp/src/target/ext_mode/src -IC:/PROGRA~1/MATLAB/R2023a/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/arduino/avr/variants/mega -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023a/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/ProgramData/MATLAB/SupportPackages/R2023a/aIDE/hardware/tools/avr/avr/include/avr -o "rtGetInf.o" "C:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw/rtGetInf.c"
In file included from C:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw/nntrial.h:36:0,
from C:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw/nntrial_data.c:20:
C:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw/nntrial_types.h:347:10: error: size of array 'data' is too large
real_T data[16275];
^~~~
C:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw/nntrial_types.h:365:10: error: size of array 'data' is too large
real_T data[30625];
^~~~
C:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw/nntrial_types.h:884:10: error: size of array 'data' is too large
real_T data[16275];
^~~~
In file included from C:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw/nntrial_data.c:20:0:
C:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw/nntrial.h:87:10: error: size of array 'y_data' is too large
real_T y_data[30625];
^~~~~~
C:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw/nntrial.h:92:10: error: size of array 'B_data' is too large
real_T B_data[16275];
^~~~~~
gmake[1]: *** [nntrial_data.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
gmake[1]: *** [nntrial.o] Error 1
gmake[1]: Leaving directory `C:/Users/hitar/Documents/MATLAB/nntrial_ert_rtw'
gmake: *** [all] Error 2
C:\Users\hitar\Documents\MATLAB\nntrial_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
C:\Users\hitar\Documents\MATLAB\nntrial_ert_rtw>exit /B 1
### Build procedure for nntrial aborted due to an error.
Build Summary
Top model targets built:
Model Action Rebuild Reason
===================================================================
nntrial Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date)
Build duration: 0h 5m 18.671s
Error(s) encountered while building "nntrial"
Component:Simulink | Category:Model error
0 个评论
回答(1 个)
Nathan Hardenberg
2023-5-8
I am guessing a bit here, but it seems that you hit the hardware limitations of the arduino. The following error, which occours multiple times, got me to this guess.
error: size of array 'data' is too large
real_T data[16275];
While simple neural networks can be used (e.g. https://www.youtube.com/watch?v=md_i-RrWzoQ&ab_channel=ramcontech) a big NN could definetly be to much for the Arduino. If this should be the case, depolying your NN on the Arduino is not possible
6 个评论
Nathan Hardenberg
2023-5-11
I have one idea! But I'm not an expert so take it with a grain of salt.
You can build your model without deploying it.
Then check the file sizes of the my_model.eep and my_model.elf files.
- the .eep file should be smaller than 4 KB
- the .elf file should be smaller than 248 KB
- (Arduino memory from here)
If they are larger, your code/model is to very likely to big for the arduino. If not the problem may be elsewhere
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Arduino Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!