Issue Related to Interfacing simulink with arduino hardware

10 vues (au cours des 30 derniers jours)
SHAHAB
SHAHAB le 23 Sep 2025 à 14:20
Commenté : SHAHAB le 27 Sep 2025 à 15:32
  • Hi. This is the error I am getting. I had installed the simulink for arduino add on for hardware support
  • And also sort for the COM port issue as mentioned in your web site
  • ### Starting build procedure for: Lab_1_2 "### Generating static library." "F:/waqas/bin/win64/gmake" -j5 -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' "F:/waqas/bin/win64/gmake" -j5 SHELL="%SystemRoot%/system32/cmd.exe" -f "Lab_1_2.mk" all gmake[1]: Entering directory F:/ACE Box/Lab 1.2/Lab_1_2_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_arduino_digitalio.dep" -MT"MW_arduino_digitalio.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 -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=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=212 -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=1 -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=Lab_1_2 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IF:/ACE Box/Lab 1.2 -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~2/include -IF:/ACE Box/Lab 1.2/Lab_1_2_ert_rtw -IF:/waqas/extern/include -IF:/waqas/simulink/include -IF:/waqas/rtw/c/src -IF:/waqas/rtw/c/src/ext_mode/common -IF:/waqas/rtw/c/ert -IF:/waqas/toolbox/coder/xcp/src/target/server/include -IF:/waqas/toolbox/coder/xcp/src/target/server/common -IF:/waqas/toolbox/coder/xcp/src/target/server/protocol/src -IF:/waqas/toolbox/coder/xcp/src/target/server/protocol/include -IF:/waqas/toolbox/coder/xcp/src/target/server/transport/include -IF:/waqas/toolbox/coder/xcp/src/target/server/transport/src -IF:/waqas/toolbox/coder/xcp/src/target/server/platform/include -IF:/waqas/toolbox/coder/xcp/src/target/server/platform/default -IF:/waqas/toolbox/coder/xcp/src/target/ext_mode/include -IF:/waqas/toolbox/coder/xcp/src/target/ext_mode/src -IF:/waqas/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_arduino_digitalio.o" "C:/ProgramData/MATLAB/SupportPackages/R2023b/toolbox/target/supportpackages/arduinobase/src/MW_arduino_digitalio.cpp" "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 -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_TRIGGavr-g++: error: Box/Lab: No such file or directory ER_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=212 -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=1 -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=Lab_1_2 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IF:/ACE Box/Lab 1.2 -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~2/include -IF:/ACE Box/Lab 1.2/Lab_1_2_ert_rtw -IF:/waqas/extern/include -IF:/waqas/simulink/include -IF:/waqas/rtw/c/src -IF:/waqas/rtw/c/src/ext_mode/common -IF:/waqas/rtw/c/ert -IF:/waqas/toolbox/coder/xcp/src/target/server/include -IF:/waqas/toolbox/coder/xcp/src/target/server/common -IF:/waqas/toolbox/coder/xcp/src/target/server/protocol/src -IF:/waqas/toolbox/coder/xcp/src/target/server/protocol/include -IF:/waqas/toolbox/coder/xcp/src/target/server/transport/include -IF:/waqas/toolbox/coder/xcp/src/target/server/transport/src -IF:/waqas/toolbox/coder/xcp/src/target/server/platform/include -IF:/waqas/toolbox/coder/xcp/src/target/server/platform/default -IF:/waqas/toolbox/coder/xcp/src/target/ext_mode/include -IF:/waqas/toolbox/coder/xcp/src/target/ext_mode/src -IF:/waqas/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" "F:/waqas/toolbox/coder/xcp/src/target/ext_mode/src/xcp_ext_mode.c" avr-g++: error: 1.2: No such file or directory avr-g++: error: Box/Lab: No such file or directory avr-g++: error: 1.2/Lab_1_2_ert_rtw: No such file or directory gmake[1]: *** No rule to make target F:/ACE', needed by Lab_1_2.o'. Stop. gmake[1]: *** Waiting for unfinished jobs.... gmake[1]: *** [MW_arduino_digitalio.o] Error 1 avr-gcc: error: Box/Lab: No such file or directory avr-gcc: error: 1.2: No such file or directory avr-gcc: error: Box/Lab: No such file or directory avr-gcc: error: 1.2/Lab_1_2_ert_rtw: No such file or directory gmake[1]: *** [xcp_ext_mode.o] Error 1 gmake[1]: Leaving directory F:/ACE Box/Lab 1.2/Lab_1_2_ert_rtw' gmake: *** [all] Error 2 The make command returned an error of 2 ### Build procedure for Lab_1_2 aborted due to an error. Build Summary Top model targets built: Model Action Rebuild Reason =================================================================== Lab_1_2 Failed Code generation information file does not exist. 0 of 1 models built (0 models already up to date) Build duration: 0h 2m 8.7477s

Réponse acceptée

Mohith Prabhu
Mohith Prabhu le 25 Sep 2025 à 9:13
Hello Shahab
The issue you are seeing is due to space in the current working directiry path " F:/ACE Box/Lab 1.2". Navigate to an alternate path without spaces in the folder name and retry the model build.
Hope this help
Regards,
Mohith
  1 commentaire
SHAHAB
SHAHAB le 27 Sep 2025 à 15:32
Thanks for your help. It works now :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Signal Integrity Kits for Industry Standards dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by