Error using Texas Instrument control board , Error occurred while executing External Mode MEX-file 'ext_comm': Failed to connect to the target.
2 次查看(过去 30 天)
显示 更早的评论
Hi, I have a problem when trying to run my simulink code to texas instrument f28335 control card. It shows an error message like below
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
I have checked port number and switch on the device. But the problem still happen
Any suggestion for me? thank you very much
1 个评论
satish kumar
2019-9-11
hi jirada can you explain in detail how you solve the problem as i am also getting the same error. Thanks in advance.
采纳的回答
Priyank Sharma
2018-5-15
If you have already checked the three suggestions from the error message, the most probable cause of this error is that the first 3 numbers in the board's IP address do not match those from the host computer's IP address.
If you changed the board's IP address to match the host computer, be sure to update this information in the model's Configuration Parameters, under Code Generation->Interface, in the edit box for "MEX-file arguments".
To resolve the 'ext_comm' error, you can change the IP address of the board to match the first three numbers in the IP address of the host computer. Once you have logged in over a serial connection, you can use the the ifconfig/ipconfig command to change the static IP address.
Once you have done this, you should also make sure that you change the IP address in the model's Configuration Parameters, under Code Generation->Interface, in the "MEX-file arguments" box. Be sure to surround the IP address in this dialog box with single quotes, and try running the model in External mode again.
Hope this helps.
2 个评论
Martin Rahf
2018-8-2
编辑:Martin Rahf
2018-8-2
Hello, i have the same Problem connecting to the F28335. Could you tell me more detailed what i have to do? I am using the c2000 Kit and Matlab2018a
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!