Why do I get a "Failed to connect to the target" error when trying to run in external mode with a TI F28379D ControlCard?

8 ビュー (過去 30 日間)
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
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 件)

カテゴリ

Help Center および File ExchangeSpecialized Power Systems についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by