Device Driver Block: Compile Error... No Such Directory

46 views (last 30 days)
Greetings,
Preamble:
I followed the instructions found on the documention for Device Driver Blocks in an attempt to learn more about building a device driver in Simulink for the RoboClaw motor driver. The provider gives a cpp and header file for use in the Arduino IDE environment. Quite frankly, I am suprised to find no one has done this already as I searched the File Exchange for a solution before attempting on my own.
How to reproduce:
The documentation link provided in the preamble is a seven part sequence. I followed each part to the letter being sure to copy and paste code and tripple checking my spelling of the digitalio_arduino.cpp and digitalio_arduino.h file names in the src directory.
Issue:
On the final part of the sequence, I connected and Arduino Mega Board to the computer and verified the connection is established. When I click the Build and Tune button it fails quickly and states the digitalio_arduino.h file can't be found.
Below is the output of this effort.
### Starting build procedure for: untitled
"### Generating static library."
"C:/Program Files/MATLAB/R2024b/bin/win64/gmake" -j9 -C "C:/PROGRA~3/MATLAB/SUPPOR~1/R2024b/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/R2024b/toolbox/target/SUPPOR~1/ARDUIN~2/STATIC~1'
"### Successfully generated libcore.a library."
gmake[1]: Leaving directory `C:/PROGRA~3/MATLAB/SUPPOR~1/R2024b/toolbox/target/SUPPOR~1/ARDUIN~2/STATIC~1'
"C:/Program Files/MATLAB/R2024b/bin/win64/gmake" -j9 SHELL="%SystemRoot%/system32/cmd.exe" -f "untitled.mk" all
gmake[1]: Entering directory `C:/Users/Coach/MATLAB/Projects/my_driver/untitled_ert_rtw'
"C:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"d_ard.dep" -MT"d_ard.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 -DXCP_ADDRESS_GRANULARITY=XCP_ADDRESS_GRANULARITY_BYTE -DCODERTARGET_XCP_DAQ_PACKED_MODE -DCODERTARGET_XCP_MAX_CONTIGUOUS_SAMPLES=2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=5 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=34286 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=4 -DARDUINO_SERIAL_RECEIVE_BUFFER_SIZE=64 -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 -DMW_NUM_PINS=70 -D_ONBOARD_EEPROM_SIZE_=4096 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEXT_MODE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -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 -DXCP_MEM_BLOCK_1_SIZE=0 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=0 -DXCP_MEM_BLOCK_2_NUMBER=0 -DXCP_MEM_BLOCK_3_SIZE=0 -DXCP_MEM_BLOCK_3_NUMBER=0 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=130 -DXCP_MEM_RESERVED_POOLS_NUMBER=1 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=3 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=1 -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=2048 -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=untitled -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/Coach/MATLAB/Projects/my_driver -IC:/Users/Coach/MATLAB/Projects/my_driver/include -IC:/Users/Coach/MATLAB/Projects/my_driver/untitled_ert_rtw -IC:/PROGRA~1/MATLAB/R2024b/extern/include -IC:/PROGRA~1/MATLAB/R2024b/simulink/include -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/common -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/transport/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/transport/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/platform/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/platform/default -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/ext_mode/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/ext_mode/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/hardware/avr/1.8.3/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/hardware/avr/1.8.3/variants/mega -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include -o "d_ard.o" "C:/Users/Coach/MATLAB/Projects/my_driver/src/digitalio_arduino.cpp"
"C:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/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 -DXCP_ADDRESS_GRANULARITY=XCP_ADDRESS_GRANULARITY_BYTE -DCODERTARGET_XCP_DAQ_PACKED_MODE -DCODERTARGET_XCP_MAX_CONTIGUOUS_SAMPLES=2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=5 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=34286 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=4 -DARDUINO_SERIAL_RECEIVE_BUFFER_SIZE=64 -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 -DMW_NUM_PINS=70 -D_ONBOARD_EEPROM_SIZE_=4096 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEXT_MODE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -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 -DXCP_MEM_BLOCK_1_SIZE=0 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=0 -DXCP_MEM_BLOCK_2_NUMBER=0 -DXCP_MEM_BLOCK_3_SIZE=0 -DXCP_MEM_BLOCK_3_NUMBER=0 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=130 -DXCP_MEM_RESERVED_POOLS_NUMBER=1 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=3 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=1 -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=2048 -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=untitled -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/Coach/MATLAB/Projects/my_driver -IC:/Users/Coach/MATLAB/Projects/my_driver/include -IC:/Users/Coach/MATLAB/Projects/my_driver/untitled_ert_rtw -IC:/PROGRA~1/MATLAB/R2024b/extern/include -IC:/PROGRA~1/MATLAB/R2024b/simulink/include -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/common -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/transport/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/transport/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/platform/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/platform/default -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/ext_mode/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/ext_mode/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/hardware/avr/1.8.3/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/hardware/avr/1.8.3/variants/mega -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include -o "xcp_ext_mode.o" "C:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/ext_mode/src/xcp_ext_mode.c"
"C:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"untitled.dep" -MT"untitled.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 -DXCP_ADDRESS_GRANULARITY=XCP_ADDRESS_GRANULARITY_BYTE -DCODERTARGET_XCP_DAQ_PACKED_MODE -DCODERTARGET_XCP_MAX_CONTIGUOUS_SAMPLES=2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=5 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=34286 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=4 -DARDUINO_SERIAL_RECEIVE_BUFFER_SIZE=64 -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 -DMW_NUM_PINS=70 -D_ONBOARD_EEPROM_SIZE_=4096 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEXT_MODE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -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 -DXCP_MEM_BLOCK_1_SIZE=0 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=0 -DXCP_MEM_BLOCK_2_NUMBER=0 -DXCP_MEM_BLOCK_3_SIZE=0 -DXCP_MEM_BLOCK_3_NUMBER=0 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=130 -DXCP_MEM_RESERVED_POOLS_NUMBER=1 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=3 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=1 -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=2048 -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=untitled -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/Coach/MATLAB/Projects/my_driver -IC:/Users/Coach/MATLAB/Projects/my_driver/include -IC:/Users/Coach/MATLAB/Projects/my_driver/untitled_ert_rtw -IC:/PROGRA~1/MATLAB/R2024b/extern/include -IC:/PROGRA~1/MATLAB/R2024b/simulink/include -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/common -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/transport/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/transport/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/platform/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/platform/default -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/ext_mode/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/ext_mode/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/hardware/avr/1.8.3/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/hardware/avr/1.8.3/variants/mega -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include -o "untitled.o" "C:/Users/Coach/MATLAB/Projects/my_driver/untitled_ert_rtw/untitled.c"
"C:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"untitled_data.dep" -MT"untitled_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 -DXCP_ADDRESS_GRANULARITY=XCP_ADDRESS_GRANULARITY_BYTE -DCODERTARGET_XCP_DAQ_PACKED_MODE -DCODERTARGET_XCP_MAX_CONTIGUOUS_SAMPLES=2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=5 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=34286 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=4 -DARDUINO_SERIAL_RECEIVE_BUFFER_SIZE=64 -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 -DMW_NUM_PINS=70 -D_ONBOARD_EEPROM_SIZE_=4096 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEXT_MODE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -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 -DXCP_MEM_BLOCK_1_SIZE=0 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=0 -DXCP_MEM_BLOCK_2_NUMBER=0 -DXCP_MEM_BLOCK_3_SIZE=0 -DXCP_MEM_BLOCK_3_NUMBER=0 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=130 -DXCP_MEM_RESERVED_POOLS_NUMBER=1 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=3 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=1 -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=2048 -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=untitled -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/Coach/MATLAB/Projects/my_driver -IC:/Users/Coach/MATLAB/Projects/my_driver/include -IC:/Users/Coach/MATLAB/Projects/my_driver/untitled_ert_rtw -IC:/PROGRA~1/MATLAB/R2024b/extern/include -IC:/PROGRA~1/MATLAB/R2024b/simulink/include -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/common -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/transport/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/transport/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/platform/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/platform/default -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/ext_mode/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/ext_mode/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/hardware/avr/1.8.3/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/hardware/avr/1.8.3/variants/mega -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include -o "untitled_data.o" "C:/Users/Coach/MATLAB/Projects/my_driver/untitled_ert_rtw/untitled_data.c"
In file included from C:/Users/Coach/MATLAB/Projects/my_driver/untitled_ert_rtw/untitled.c:2:0:
C:/Users/Coach/MATLAB/Projects/my_driver/untitled_ert_rtw/untitled.h:11:10: fatal error: d_ard.h: No such file or directory
#include "digitalio_arduino.h"
^~~~~~~~~
compilation terminated.
"C:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"xcp_ext_common.dep" -MT"xcp_ext_common.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 -DXCP_ADDRESS_GRANULARITY=XCP_ADDRESS_GRANULARITY_BYTE -DCODERTARGET_XCP_DAQ_PACKED_MODE -DCODERTARGET_XCP_MAX_CONTIGUOUS_SAMPLES=2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=5 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=34286 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=4 -DARDUINO_SERIAL_RECEIVE_BUFFER_SIZE=64 -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 -DMW_NUM_PINS=70 -D_ONBOARD_EEPROM_SIZE_=4096 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEXT_MODE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -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 -DXCP_MEM_BLOCK_1_SIZE=0 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=0 -DXCP_MEM_BLOCK_2_NUMBER=0 -DXCP_MEM_BLOCK_3_SIZE=0 -DXCP_MEM_BLOCK_3_NUMBER=0 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=130 -DXCP_MEM_RESERVED_POOLS_NUMBER=1 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=3 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=1 -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=2048 -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=untitled -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/Coach/MATLAB/Projects/my_driver -IC:/Users/Coach/MATLAB/Projects/my_driver/include -IC:/Users/Coach/MATLAB/Projects/my_driver/untitled_ert_rtw -IC:/PROGRA~1/MATLAB/R2024b/extern/include -IC:/PROGRA~1/MATLAB/R2024b/simulink/include -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/common -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/transport/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/transport/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/platform/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/platform/default -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/ext_mode/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/ext_mode/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/hardware/avr/1.8.3/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/hardware/avr/1.8.3/variants/mega -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include -o "xcp_ext_common.o" "C:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/ext_mode/src/xcp_ext_common.c"
In file included from C:/Users/Coach/MATLAB/Projects/my_driver/untitled_ert_rtw/untitled_data.c:2:0:
C:/Users/Coach/MATLAB/Projects/my_driver/untitled_ert_rtw/untitled.h:11:10: fatal error: d_ard.h: No such file or directory
#include "digitalio_arduino.h"
^~~~~~~~~
compilation terminated.
"C:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"xcp_ext_classic_trigger.dep" -MT"xcp_ext_classic_trigger.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 -DXCP_ADDRESS_GRANULARITY=XCP_ADDRESS_GRANULARITY_BYTE -DCODERTARGET_XCP_DAQ_PACKED_MODE -DCODERTARGET_XCP_MAX_CONTIGUOUS_SAMPLES=2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=5 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=34286 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=4 -DARDUINO_SERIAL_RECEIVE_BUFFER_SIZE=64 -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 -DMW_NUM_PINS=70 -D_ONBOARD_EEPROM_SIZE_=4096 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEXT_MODE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -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 -DXCP_MEM_BLOCK_1_SIZE=0 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=0 -DXCP_MEM_BLOCK_2_NUMBER=0 -DXCP_MEM_BLOCK_3_SIZE=0 -DXCP_MEM_BLOCK_3_NUMBER=0 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=130 -DXCP_MEM_RESERVED_POOLS_NUMBER=1 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=3 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=1 -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=2048 -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=untitled -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/Coach/MATLAB/Projects/my_driver -IC:/Users/Coach/MATLAB/Projects/my_driver/include -IC:/Users/Coach/MATLAB/Projects/my_driver/untitled_ert_rtw -IC:/PROGRA~1/MATLAB/R2024b/extern/include -IC:/PROGRA~1/MATLAB/R2024b/simulink/include -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/common -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/transport/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/transport/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/platform/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/platform/default -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/ext_mode/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/ext_mode/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/hardware/avr/1.8.3/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/hardware/avr/1.8.3/variants/mega -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include -o "xcp_ext_classic_trigger.o" "C:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/ext_mode/src/xcp_ext_classic_trigger.c"
"C:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"xcp.dep" -MT"xcp.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 -DXCP_ADDRESS_GRANULARITY=XCP_ADDRESS_GRANULARITY_BYTE -DCODERTARGET_XCP_DAQ_PACKED_MODE -DCODERTARGET_XCP_MAX_CONTIGUOUS_SAMPLES=2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=5 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=34286 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=4 -DARDUINO_SERIAL_RECEIVE_BUFFER_SIZE=64 -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 -DMW_NUM_PINS=70 -D_ONBOARD_EEPROM_SIZE_=4096 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEXT_MODE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -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 -DXCP_MEM_BLOCK_1_SIZE=0 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=0 -DXCP_MEM_BLOCK_2_NUMBER=0 -DXCP_MEM_BLOCK_3_SIZE=0 -DXCP_MEM_BLOCK_3_NUMBER=0 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=130 -DXCP_MEM_RESERVED_POOLS_NUMBER=1 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=3 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=1 -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=2048 -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=untitled -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/Coach/MATLAB/Projects/my_driver -IC:/Users/Coach/MATLAB/Projects/my_driver/include -IC:/Users/Coach/MATLAB/Projects/my_driver/untitled_ert_rtw -IC:/PROGRA~1/MATLAB/R2024b/extern/include -IC:/PROGRA~1/MATLAB/R2024b/simulink/include -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/common -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/transport/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/transport/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/platform/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/platform/default -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/ext_mode/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/ext_mode/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/hardware/avr/1.8.3/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/hardware/avr/1.8.3/variants/mega -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include -o "xcp.o" "C:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/src/xcp.c"
"C:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"xcp_standard.dep" -MT"xcp_standard.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 -DXCP_ADDRESS_GRANULARITY=XCP_ADDRESS_GRANULARITY_BYTE -DCODERTARGET_XCP_DAQ_PACKED_MODE -DCODERTARGET_XCP_MAX_CONTIGUOUS_SAMPLES=2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=5 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=34286 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=4 -DARDUINO_SERIAL_RECEIVE_BUFFER_SIZE=64 -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 -DMW_NUM_PINS=70 -D_ONBOARD_EEPROM_SIZE_=4096 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEXT_MODE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -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 -DXCP_MEM_BLOCK_1_SIZE=0 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=0 -DXCP_MEM_BLOCK_2_NUMBER=0 -DXCP_MEM_BLOCK_3_SIZE=0 -DXCP_MEM_BLOCK_3_NUMBER=0 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=130 -DXCP_MEM_RESERVED_POOLS_NUMBER=1 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=3 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=1 -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=2048 -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=untitled -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/Coach/MATLAB/Projects/my_driver -IC:/Users/Coach/MATLAB/Projects/my_driver/include -IC:/Users/Coach/MATLAB/Projects/my_driver/untitled_ert_rtw -IC:/PROGRA~1/MATLAB/R2024b/extern/include -IC:/PROGRA~1/MATLAB/R2024b/simulink/include -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/common -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/transport/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/transport/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/platform/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/platform/default -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/ext_mode/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/ext_mode/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/hardware/avr/1.8.3/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/hardware/avr/1.8.3/variants/mega -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include -o "xcp_standard.o" "C:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/src/xcp_standard.c"
"C:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"xcp_daq.dep" -MT"xcp_daq.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 -DXCP_ADDRESS_GRANULARITY=XCP_ADDRESS_GRANULARITY_BYTE -DCODERTARGET_XCP_DAQ_PACKED_MODE -DCODERTARGET_XCP_MAX_CONTIGUOUS_SAMPLES=2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=5 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=34286 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=4 -DARDUINO_SERIAL_RECEIVE_BUFFER_SIZE=64 -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 -DMW_NUM_PINS=70 -D_ONBOARD_EEPROM_SIZE_=4096 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEXT_MODE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -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 -DXCP_MEM_BLOCK_1_SIZE=0 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=0 -DXCP_MEM_BLOCK_2_NUMBER=0 -DXCP_MEM_BLOCK_3_SIZE=0 -DXCP_MEM_BLOCK_3_NUMBER=0 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=130 -DXCP_MEM_RESERVED_POOLS_NUMBER=1 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=3 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=1 -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=2048 -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=untitled -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/Coach/MATLAB/Projects/my_driver -IC:/Users/Coach/MATLAB/Projects/my_driver/include -IC:/Users/Coach/MATLAB/Projects/my_driver/untitled_ert_rtw -IC:/PROGRA~1/MATLAB/R2024b/extern/include -IC:/PROGRA~1/MATLAB/R2024b/simulink/include -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/common -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/transport/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/transport/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/platform/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/platform/default -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/ext_mode/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/ext_mode/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/hardware/avr/1.8.3/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/hardware/avr/1.8.3/variants/mega -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include -o "xcp_daq.o" "C:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/src/xcp_daq.c"
"C:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"xcp_calibration.dep" -MT"xcp_calibration.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 -DXCP_ADDRESS_GRANULARITY=XCP_ADDRESS_GRANULARITY_BYTE -DCODERTARGET_XCP_DAQ_PACKED_MODE -DCODERTARGET_XCP_MAX_CONTIGUOUS_SAMPLES=2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=5 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=34286 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=4 -DARDUINO_SERIAL_RECEIVE_BUFFER_SIZE=64 -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 -DMW_NUM_PINS=70 -D_ONBOARD_EEPROM_SIZE_=4096 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEXT_MODE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -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 -DXCP_MEM_BLOCK_1_SIZE=0 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=0 -DXCP_MEM_BLOCK_2_NUMBER=0 -DXCP_MEM_BLOCK_3_SIZE=0 -DXCP_MEM_BLOCK_3_NUMBER=0 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=130 -DXCP_MEM_RESERVED_POOLS_NUMBER=1 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=3 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=1 -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=2048 -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=untitled -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/Coach/MATLAB/Projects/my_driver -IC:/Users/Coach/MATLAB/Projects/my_driver/include -IC:/Users/Coach/MATLAB/Projects/my_driver/untitled_ert_rtw -IC:/PROGRA~1/MATLAB/R2024b/extern/include -IC:/PROGRA~1/MATLAB/R2024b/simulink/include -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/common -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/transport/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/transport/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/platform/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/platform/default -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/ext_mode/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/ext_mode/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/hardware/avr/1.8.3/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/hardware/avr/1.8.3/variants/mega -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include -o "xcp_calibration.o" "C:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/src/xcp_calibration.c"
"C:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"xcp_fifo.dep" -MT"xcp_fifo.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 -DXCP_ADDRESS_GRANULARITY=XCP_ADDRESS_GRANULARITY_BYTE -DCODERTARGET_XCP_DAQ_PACKED_MODE -DCODERTARGET_XCP_MAX_CONTIGUOUS_SAMPLES=2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=5 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=34286 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=4 -DARDUINO_SERIAL_RECEIVE_BUFFER_SIZE=64 -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 -DMW_NUM_PINS=70 -D_ONBOARD_EEPROM_SIZE_=4096 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEXT_MODE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -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 -DXCP_MEM_BLOCK_1_SIZE=0 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=0 -DXCP_MEM_BLOCK_2_NUMBER=0 -DXCP_MEM_BLOCK_3_SIZE=0 -DXCP_MEM_BLOCK_3_NUMBER=0 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=130 -DXCP_MEM_RESERVED_POOLS_NUMBER=1 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=3 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=1 -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=2048 -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=untitled -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/Coach/MATLAB/Projects/my_driver -IC:/Users/Coach/MATLAB/Projects/my_driver/include -IC:/Users/Coach/MATLAB/Projects/my_driver/untitled_ert_rtw -IC:/PROGRA~1/MATLAB/R2024b/extern/include -IC:/PROGRA~1/MATLAB/R2024b/simulink/include -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2024b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/common -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/protocol/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/transport/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/transport/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/platform/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/platform/default -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/ext_mode/include -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/ext_mode/src -IC:/PROGRA~1/MATLAB/R2024b/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/hardware/avr/1.8.3/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/hardware/avr/1.8.3/variants/mega -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2024b/aCLI/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include -o "xcp_fifo.o" "C:/PROGRA~1/MATLAB/R2024b/toolbox/coder/xcp/src/target/server/transport/src/xcp_fifo.c"
gmake[1]: *** [untitled.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
gmake[1]: *** [untitled_data.o] Error 1
gmake[1]: Leaving directory `C:/Users/Coach/MATLAB/Projects/my_driver/untitled_ert_rtw'
gmake: *** [all] Error 2
The make command returned an error of 2
### Build procedure for untitled aborted due to an error.

Accepted Answer

Clayton Allen
Clayton Allen on 26 Nov 2024 at 2:32
The answer to this question was actually pretty simple.
In the documentation, it is specified that the cpp and the header files must be saved in the appropriate directory (src, and include). I glossed over this detail and thus caused hours of frustration.

More Answers (1)

Sumukh
Sumukh on 25 Nov 2024 at 10:53
It is possible that the error is due to a corrupted installation of the MATLAB Support Package for Arduino hardware. I had a similar issue with the header files, and I resolved this issue by performing a clean install of the Arduino Support Package by referring to the following article from MathWorks Support Team:
Please note that the above process will remove all support packages installed and will have to be reinstalled again.
After uninstalling the support package, I executed the following command, reinstalled the support package again and the header file issue was resolved:
rehash toolboxcache
If the error persists after following the above steps, I strongly recommend reaching out to MathWorks Technical Support and letting them know what you have tried so far to better resolve this issue. Please refer to the following link:
  1 Comment
Clayton Allen
Clayton Allen on 25 Nov 2024 at 20:00
I can confirm this did not solve the issue for me.
Question: Is this functionality also limited to the purchasers of the regular use license?

Sign in to comment.

Categories

Find more on Simulink Functions in Help Center and File Exchange

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!