simulink and arduino issues
Show older comments
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
on 9 Apr 2025
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.
Answers (1)
Manish
on 4 Jun 2025
0 votes
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:
- https://www.mathworks.com/help/simulink/supportpkg/arduino_ug/configure-host-com-port-manually.html
- https://www.mathworks.com/help/simulink/supportpkg/arduino_ug/troubleshoot-running-models-on-arduino-hardware.html
- https://www.mathworks.com/help/simulink/supportpkg/arduino_ug/unable-to-communicate-with-the-com-port-on-a-computer.html
- https://www.mathworks.com/matlabcentral/answers/1938734-why-does-my-serial-communication-with-arduino-is-not-working
Hope this helps!
Categories
Find more on Modeling in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!