Troubleshoot XCP Connection to Target Computer
While Simulink®
Real-Time™ was connected to a real-time application running on the target computer,
MATLAB® crashed. After the crash, connecting to the real-time application by using the
connect
function returns this error message:
Unable to establish XCP connection. Try reloading the application.
What This Issue Means
This error message indicates that the crash left the Target
object XCP interface in an unusable state for connecting to the target computer.
Try This Workaround
To clear the XCP interface state of the Target
object, use the reset
function or the disconnect
function. Then, connect to the target computer by using the
connect
function.
See Also
Target
| connect
| disconnect
| reset