simulink and arduino issues

12 views (last 30 days)
Dr.Muhammad Rehan
Dr.Muhammad Rehan on 9 Apr 2025
Answered: Manish on 4 Jun 2025
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 Comments
Dr.Muhammad Rehan
Dr.Muhammad Rehan on 9 Apr 2025
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 on 15 Apr 2025
Check if the UNO board shows up in the Windows Device manager?
If yes, you can try and use the manual com port option.

Sign in to comment.

Answers (1)

Manish
Manish on 4 Jun 2025
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!

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!