Arduino Support Hardware for Simulink : Cant Run on External Hardware
4 次查看(过去 30 天)
显示 更早的评论
I Use External mode template form simulink to try run arduino model in external mode with hardware setting like in the under :
but then this error occured, why this is happening? is that any cause form serial port?
### Starting build procedure for: ExternalMode
### Generating code and artifacts to 'Model specific' folder structure
### Generating code into build folder: G:\CAD\MATLAB\Arduino Support Package\Digital Outpu\ExternalMode_ert_rtw
### Invoking Target Language Compiler on ExternalMode.rtw
### Using System Target File: C:\Program Files\MATLAB\R2023b\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 ExternalMode_types.h
### Writing header file ExternalMode.h
### Writing header file rtwtypes.h
### Writing header file multiword_types.h
### Writing header file rt_nonfinite.h
### Writing source file rt_nonfinite.c
.
### Writing header file rtGetInf.h
### Writing source file rtGetInf.c
### Writing header file rtGetNaN.h
### Writing source file rtGetNaN.c
### Writing source file ExternalMode.c
### Writing header file ExternalMode_private.h
.
### Writing source file ExternalMode_data.c
### Writing header file rtmodel.h
### Writing source file ert_main.c
### TLC code generation complete (took 2.238s).
### Creating extmode_task_info.m.
### Creating external mode types file ext_mode_types.h
### Allocated 96 bytes for internal data structures of XCP stack. Considered a maximum of 1 Object Descriptor Tables (ODTs) and 1 Data Acquisition objects (DAQs), with no more than 1 ODTs in each DAQ and no more than 1 entries in each ODT.
### Allocated 200 bytes for storage of XCP packets. Considered 130 bytes for Command Transfer Objects (CTOs) and 70 bytes for Data Transfer Objects (DTOs).
### For more information, see Memory Allocation for Communication Buffers.
### Saving binary information cache.
### Using toolchain: Arduino AVR
### Creating 'G:\CAD\MATLAB\Arduino Support Package\Digital Outpu\ExternalMode_ert_rtw\ExternalMode.mk' ...
### Building 'ExternalMode': "C:\PROGRA~1\MATLAB\R2023b\bin\win64\gmake" -f wrapper.mk all
G:\CAD\MATLAB\Arduino Support Package\Digital Outpu\ExternalMode_ert_rtw>cd .
G:\CAD\MATLAB\Arduino Support Package\Digital Outpu\ExternalMode_ert_rtw>if "all" == "" ("C:\PROGRA~1\MATLAB\R2023b\bin\win64\gmake" -f wrapper.mk all ) else ("C:\PROGRA~1\MATLAB\R2023b\bin\win64\gmake" -f wrapper.mk all )
"### Generating static library."
"C:/Program Files/MATLAB/R2023b/bin/win64/gmake" -j7 -C "C:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/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/R2023b/toolbox/target/SUPPOR~1/ARDUIN~2/STATIC~1'
"### Successfully generated libcore.a library."
gmake[1]: Leaving directory `C:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~2/STATIC~1'
"C:/Program Files/MATLAB/R2023b/bin/win64/gmake" -j7 SHELL="%SystemRoot%/system32/cmd.exe" -f "ExternalMode.mk" all
gmake[1]: Entering directory `G:/CAD/MATLAB/Arduino Support Package/Digital Outpu/ExternalMode_ert_rtw'
"C:/ProgramData/MATLAB/SupportPackages/R2023b/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=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -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=1 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=59286 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_CONFIG_SERIAL0_=SERIAL_8N1 -D_RTT_ANALOG_REF_=0 -DMW_RTIO_SERIAL0 -D_RTT_PWM_BLOCKS_ -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEXT_MODE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -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=32 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=56 -DXCP_MEM_BLOCK_2_NUMBER=1 -DXCP_MEM_BLOCK_3_SIZE=8 -DXCP_MEM_BLOCK_3_NUMBER=1 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=200 -DXCP_MEM_RESERVED_POOLS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=2 -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=250 -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=ExternalMode -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IG:/CAD/MATLAB/Arduino Support Package/Digital Outpu -IC:/PROGRA~1/MATLAB/R2023b/toolbox/target/shared/svd/common/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~2/include -IG:/CAD/MATLAB/Arduino Support Package/Digital Outpu/ExternalMode_ert_rtw -IC:/PROGRA~1/MATLAB/R2023b/extern/include -IC:/PROGRA~1/MATLAB/R2023b/simulink/include -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/common -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/protocol/src -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/protocol/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/transport/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/transport/src -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/platform/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/platform/default -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/ext_mode/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/ext_mode/src -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/libraries/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/tools/avr/avr/include/avr -o "MW_AnalogInput.o" "C:\ProgramData\MATLAB\SupportPackages\R2023b\toolbox\target\supportpackages\arduinobase\src\MW_AnalogInput.cpp"
"C:/ProgramData/MATLAB/SupportPackages/R2023b/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=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -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=1 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=59286 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_CONFIG_SERIAL0_=SERIAL_8N1 -D_RTT_ANALOG_REF_=0 -DMW_RTIO_SERIAL0 -D_RTT_PWM_BLOCKS_ -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEXT_MODE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -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=32 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=56 -DXCP_MEM_BLOCK_2_NUMBER=1 -DXCP_MEM_BLOCK_3_SIZE=8 -DXCP_MEM_BLOCK_3_NUMBER=1 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=200 -DXCP_MEM_RESERVED_POOLS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=2 -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=250 -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=ExternalMode -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IG:/CAD/MATLAB/Arduino Support Package/Digital Outpu -IC:/PROGRA~1/MATLAB/R2023b/toolbox/target/shared/svd/common/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~2/include -IG:/CAD/MATLAB/Arduino Support Package/Digital Outpu/ExternalMode_ert_rtw -IC:/PROGRA~1/MATLAB/R2023b/extern/include -IC:/PROGRA~1/MATLAB/R2023b/simulink/include -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/common -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/protocol/src -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/protocol/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/transport/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/transport/src -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/platform/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/platform/default -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/ext_mode/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/ext_mode/src -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/libraries/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/tools/avr/avr/include/avr -o "ArduinoPinHandleMap.o" "C:\ProgramData\MATLAB\SupportPackages\R2023b\toolbox\target\supportpackages\arduinobase\src\ArduinoPinHandleMap.cpp"
"C:/ProgramData/MATLAB/SupportPackages/R2023b/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=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -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=1 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=59286 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_CONFIG_SERIAL0_=SERIAL_8N1 -D_RTT_ANALOG_REF_=0 -DMW_RTIO_SERIAL0 -D_RTT_PWM_BLOCKS_ -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEXT_MODE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DXCP_EXTMODE_SIMULATION_TIME_IN_TICKS -DXCP_DAQ_SUPPORT -DXCP_CALIBRATION_SUPPORT -DXCP_TIMESTAMP_SUPPORT -DXCP_TIMESTAMP_BASEavr-g++: error: Support: No such file or directory
avr-g++: error: Support: No such file or directory
D_ON_SIMULATION_TIME -DXCP_SET_MTA_SUPPORT -DEXTMODE_XCP_TRIGGER_SUPPORT -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=8 -DXCP_MEM_BLOCK_3_NUMBER=1 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=200 -DXCP_MEM_RESERVED_POOLS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=2 -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=250 -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=ExternalMode -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IG:/CAD/MATLAB/Arduino Support Package/Digital Outpu -IC:/PROGRA~1/MATLAB/R2023b/toolbox/target/shared/svd/common/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~2/include -IG:/CAD/MATLAB/Arduino Support Package/Digital Outpu/ExternalMode_ert_rtw -IC:/PROGRA~1/MATLAB/R2023b/extern/include -IC:/PROGRA~1/MATLAB/R2023b/simulink/include -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/common -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/protocol/src -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/protocol/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/transport/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/transport/src -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/platform/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/platform/default -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/ext_mode/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/ext_mode/src -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/libraries/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/tools/avr/avr/include/avr -o "MW_PWM.o" "C:\ProgramData\MATLAB\SupportPackages\R2023b\toolbox\target\supportpackages\arduinobase\src\MW_PWM.cpp"
avr-g++: error: Package/Digital: No such file or directory
avr-g++: error: Outpu: No such file or directory
avr-g++: error: Package/Digital: No such file or directory
avr-g++: error: Support: No such file or directory
avr-g++: error: Outpu: No such file or directory
avr-g++: error: Package/Digital: No such file or directory
avr-g++: error: Support: No such file or directory
avr-g++: error: Outpu/ExternalMode_ert_rtw: No such file or directory
avr-g++: error: Package/Digital: No such file or directory
avr-g++: error: Outpu/ExternalMode_ert_rtw: No such file or directory
"C:/ProgramData/MATLAB/SupportPackages/R2023b/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=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -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=1 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=59286 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_CONFIG_SERIAL0_=SERIAL_8N1 -D_RTT_ANALOG_REF_=0 -DMW_RTIO_SERIAL0 -D_RTT_PWM_BLOCKS_ -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEXT_MODE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -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=32 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=56 -DXCP_MEM_BLOCK_2_NUMBER=1 -DXCP_MEM_BLOCK_3_SIZE=8 -DXCP_MEM_BLOCK_3_NUMBER=1 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=200 -DXCP_MEM_RESERVED_POOLS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=2 -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=250 -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=ExternalMode -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IG:/CAD/MATLAB/Arduino Support Package/Digital Outpu -IC:/PROGRA~1/MATLAB/R2023b/toolbox/target/shared/svd/common/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~2/include -IG:/CAD/MATLAB/Arduino Support Package/Digital Outpu/ExternalMode_ert_rtw -IC:/PROGRA~1/MATLAB/R2023b/extern/include -IC:/PROGRA~1/MATLAB/R2023b/simulink/include -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/common -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/protocol/src -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/protocol/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/transport/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/transport/src -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/platform/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/platform/default -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/ext_mode/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/ext_mode/src -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/libraries/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/tools/avr/avr/include/avr -o "MW_PWMDriver.o" "C:\ProgramData\MATLAB\SupportPackages\R2023b\toolbox\target\supportpackages\arduinobase\src\MW_PWMDriver.c"
avr-g++: error: Support: No such file or directory
avr-g++: error: Package/Digital: No such file or directory
avr-g++: error: Outpu: No such file or directory
avr-g++: error: Support: No such file or directory
avr-g++: error: Package/Digital: No such file or directory
avr-g++: error: Outpu/ExternalMode_ert_rtw: No such file or directory
"C:/ProgramData/MATLAB/SupportPackages/R2023b/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=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -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=1 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=59286 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_CONFIG_SERIAL0_=SERIAL_8N1 -D_RTT_ANALOG_REF_=0 -DMW_RTIO_SERIAL0 -D_RTT_PWM_BLOCKS_ -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEXT_MODE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -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=32 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=56 -DXCP_MEM_BLOCK_2_NUMBER=1 -DXCP_MEM_BLOCK_3_SIZE=8 -DXCP_MEM_BLOCK_3_NUMBER=1 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=200 -DXCP_MEM_RESERVED_POOLS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=2 -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=250 -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=ExternalMode -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IG:/CAD/MATLAB/Arduino Support Package/Digital Outpu -IC:/PROGRA~1/MATLAB/R2023b/toolbox/target/shared/svd/common/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~2/include -IG:/CAD/MATLAB/Arduino Support Package/Digital Outpu/ExternalMode_ert_rtw -IC:/PROGRA~1/MATLAB/R2023b/extern/include -IC:/PROGRA~1/MATLAB/R2023b/simulink/include -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/common -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/protocol/src -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/protocol/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/transport/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/transport/src -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/platform/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/server/platform/default -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/ext_mode/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/xcp/src/target/ext_mode/src -IC:/PROGRA~1/MATLAB/R2023b/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/libraries/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/tools/avr/avr/include/avr -o "xcp_ext_mode.o" "C:\PROGRA~1\MATLAB\R2023b\toolbox\coder\xcp\src\target\ext_mode\src\xcp_ext_mode.c"
gmake[1]: *** No rule to make target `G:/CAD/MATLAB/Arduino', needed by `ExternalMode.o'. Stop.
gmake[1]: *** Waiting for unfinished jobs....
gmake[1]: *** [MW_AnalogInput.o] Error 1
gmake[1]: *** [ArduinoPinHandleMap.o] Error 1
gmake[1]: *** [MW_PWM.o] Error 1
avr-gcc: error: Support: No such file or directory
avr-gcc: error: Package/Digital: No such file or directory
avr-gcc: error: Support: No such file or directory
avr-gcc: error: Outpu: No such file or directory
avr-gcc: error: Package/Digital: No such file or directory
avr-gcc: error: Support: No such file or directory
avr-gcc: error: Outpu: No such file or directory
avr-gcc: error: Package/Digital: No such file or directory
avr-gcc: error: Support: No such file or directory
avr-gcc: error: Outpu/ExternalMode_ert_rtw: No such file or directory
avr-gcc: error: Package/Digital: No such file or directory
avr-gcc: error: Outpu/ExternalMode_ert_rtw: No such file or directory
gmake[1]: *** [xcp_ext_mode.o] Error 1
gmake[1]: *** [MW_PWMDriver.o] Error 1
gmake[1]: Leaving directory `G:/CAD/MATLAB/Arduino Support Package/Digital Outpu/ExternalMode_ert_rtw'
gmake: *** [all] Error 2
G:\CAD\MATLAB\Arduino Support Package\Digital Outpu\ExternalMode_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
G:\CAD\MATLAB\Arduino Support Package\Digital Outpu\ExternalMode_ert_rtw>exit /B 1
### Build procedure for ExternalMode aborted due to an error.
0 个评论
回答(1 个)
Abhinav Aravindan
2024-9-20
It seems that you are encountering an issue in running your model on Arduino Uno using External Mode. The “No rule to make target” error you are facing is likely due to the presence of white spaces in your folder path, which can cause the error. For further information, you may refer to the link below.
In addition, it seems that the “Host COM port” section is empty in the Configuration Parameters. You may refer to the below link to configure the COM Port Manually.
Please find below the documentation related to running your model on Arduino hardware for your reference:
I hope this answers your question!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Filename Construction 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!