simulink and arduino issues

조회 수: 4 (최근 30일)
Dr.Muhammad Rehan
Dr.Muhammad Rehan 2025년 4월 9일
답변: Manish 2025년 6월 4일
The following error occurred during deployment to your hardware board: Failed to detect host COM port of Uno board. Install or update the Arduino board driver and try again. If the problem still persists, enter the host COM port number manually in the 'Configuration Parameters > Target hardware resources > Host-board connection' and try again.
Although I have tried the test connection it works, even it flashes the LED 13, also ran the code with arduino uno software it works but the getting started arduino example on simulink does not deploy??
can you please let me know the reason.
  댓글 수: 2
Dr.Muhammad Rehan
Dr.Muhammad Rehan 2025년 4월 9일
more info about the error:
Top model targets built:
Model Action Rebuild Reason
==================================================================================
arduino_gettingstarted Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date)
Build duration: 0h 0m 21.295s
Error:The following error occurred during deployment to your hardware board:
Failed to detect host COM port of Uno board.
Install or update the Arduino board driver and try again.
If the problem still persists, enter the host COM port number manually in the 'Configuration Parameters > Target hardware resources > Host-board connection' and try again.
Vinay
Vinay 2025년 4월 15일
Check if the UNO board shows up in the Windows Device manager?
If yes, you can try and use the manual com port option.

댓글을 달려면 로그인하십시오.

답변 (1개)

Manish
Manish 2025년 6월 4일
Hi,
I understand that your facing the error in detecting the host COMP port.
Simulink typically auto-detects the COM port settings for the USB connection between your host computer and the Arduino hardware.
However, you can also manually configure these settings using the Windows Device Manager..
Refer to the links below for better understanding:
Hope this helps!

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by