simulink and arduino issues

4 次查看(过去 30 天)
Dr.Muhammad Rehan
回答: 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
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