Both R2023b and R2024a have the same issue after the hardware connection fix shown in https://www.mathworks.com/matlabcentral/answers/2149119-failed-to-connect-to-hardware-when-building-and-loading-for-external-mode
Replicate the Event-Driven Task in External Mode
조회 수: 5 (최근 30일)
이전 댓글 표시
I am trying to replicate the simulation results of the event-driven task in external mode. I ran in R2022a. My board is Zedboard. The solver is in fixed step.
After building and running it, it has several warnings, including
Saving external mode simulation output as a single object is not supported because the workspace variable 'out' is not created during model code execution. To suppress the warning, set 'ReturnWorkspaceOutputs' to 'off'.
No data has been selected for uploading.
When I open Data Inspector, the processed data is always zero. How to make the process data to generate the results like simulation?
댓글 수: 5
채택된 답변
Kautuk Raj
2024년 9월 11일
I understand that you are encountering an error with the External Mode MEX-file 'ext_comm', which indicates a failure to connect to the target.
The error observed "Failed to connect to the target" indicates there is an issue with hardware connectivity.
The following workarounds can be tried to resolve the issue:
1. Check if you have configured the host computer as well as the radio hardware. The following documentation page can be referred to for more information on “Guided Host-Radio Hardware” setup: https://www.mathworks.com/help/releases/R2022a/supportpkg/xilinxzynqbasedradio/ug/hardware-and-software-requirements.html
2. Call the ‘zynq’ function from MATLAB command prompt with the following syntax to make sure that MATLAB is set up with the correct physical IP address of the radio hardware.
devzynq = zynq('linux','192.168.3.2','root','root','/tmp');
Further, click on "Monitor & Tune" to check if the issue is resolved.
More details about can be found on this page: https://www.mathworks.com/help/releases/R2022a/supportpkg/xilinxzynqbasedradio/ug/installation-for-hardware-software-co-design.html
I trust this will assist you in resolving the connectivity issue.
댓글 수: 4
Kautuk Raj
2024년 9월 12일
There may be an issue with the hardware (Zedboard) being used, I suggest contacting MathWorks Technical Support for further investigation and troubleshooting at https://www.mathworks.com/support/contact_us.html
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Processor Software에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!