Main Content

Unable to Communicate with the COM Port on the Computer

Description

When deploying a model, Simulink® generates this error:

Unable to connect to the specified Arduino board.

The error is generated because the Arduino® board is not able to communicate with the COM port on your computer.

Action

Try these options sequentially until the board communicates with the COM port on your computer:

  1. Make sure that the USB cable is plugged in to the Arduino board and your computer.

  2. Check if any other serial connection in MATLAB® or any other software on your computer is using the same port specified in the Simulation > Model Configuration Parameters > Hardware Implementation > Target Hardware Resources > Host-board connection > COM port number parameter. If yes, close the connection.

  3. The COM port number set in the Configuration Parameters dialog box must match the port number on your computer. For more information, see Manually Configure COM Port and Bootloader on Host.

See Also