Why do I get a 'Failed to connect to the target' error when I try to run a model in External mode on a Xilinx board?
Show older comments
I am using the "Embedded Coder Support Package for Xilinx Zynq Platform" and/or "SoC Blockset Support Package for Xilinx Devices" with a supported board such as Zedboard, ZC702, ZC706, ZCU102, ZCU111 RFSoC, ZCU216 RFSoC, ADI RF SOM, or PicoZed..
I can successfully build a Simulink model for the Xilinx board. However, when I try to run the model in External mode by using the "Monitor & Tune" or "Connect to Target" button, I observe the following error:
Error occurred while executing External Mode MEX-file 'ext_comm':
Failed to connect to the target. Possible reasons for the failure:
a) The target is not switched on.
b) The target is not connected to your host machine.
c) The application for the model is not running on the target.
You might have clicked the Stop button. If the Run button is not dimmed,
click it. Otherwise, click the Build button,
which downloads and runs your application on the target.
Caused by:
An error occurred attempting to open an rtIOStream.
More detail may be reported in the MATLAB command window
Accepted Answer
More Answers (1)
Noam Levine
on 14 Jan 2019
Edited: MathWorks Support Team
on 4 Mar 2024
The Embedded Coder Support Package for Xilinx Zynq Platform will not work with the Zybo board out of the box. You need to create a custom refernce design for Zybo, as explained in the following documentation. To view the documentation, enter the following command on your MATLAB R2018b instance:
web(fullfile(docroot, "supportpkg/xilinxzynq7000/board-and-reference-design.html"))
Categories
Find more on Targeting FPGA & SoC Hardware 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!