Why do I get a "Failed to connect to the target" error when trying to run in external mode with a TI F28379D ControlCard?
조회 수: 10 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2018년 4월 11일
답변: MathWorks Support Team
2018년 4월 11일
I have a Simulink model that I am trying to run on my TI F28379D ControlCard in External mode, but I keep seeing the following error:
Error occurred while executing External Mode MEX-file 'ext_comm': Failed to connect to the target. A time-out occurred while waiting for the connection response from the target. Possible reasons for the time-out:
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.
Also, sometimes when I try to run the model it appears to almost begin running, but then I see some similar but different errors:
Error occurred while executing External Mode MEX-file 'ext_comm':
ExtSetTargetPkt() call failed on CLOSE.
Ensure target is still running
or,
Simulink cannot send a start packet to the mdoel 'myModel' running in external
mode, as the target has lost its connection with the host.
I have verified that all of my GPIO and COM port settings are correct, as described in this MATLAB Answers post:
I was even able to run the simple model from that post in external mode, but my real model will not work. What could be causing this?
채택된 답변
MathWorks Support Team
2018년 4월 11일
The SW1 switch on the right-bottom of the board is supposed to be ON. The ON state can be inferred by label 1 and 0 around this switch. Please move both knobs on this switch towards 1.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Specialized Power Systems에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!