External Mode Error in Simulink - Using TI Piccolo F2803x
2 views (last 30 days)
Show older comments
Hi,
I'm trying to run a program on the TI Piccolo F2803x but it keeps showing this 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.
Component:Simulink | Category:Block diagram error
Unable to connect to the 'TI Piccolo F2803x' target for 'sm_exm'.
Component:Simulink | Category:Model error
How can I solve it?
The thing is that the hardware is working. We've tried this by using a simple program shown in the picture below.
But when we start to 'complicate' things, such as in this other example:
It keeps giving the error that you can see at the beginning of my question.
What we tried to do, according to other questions and answers I found on Mathworks is:
- Change the baud rate. [https://it.mathworks.com/matlabcentral/answers/351957-do-simulink-deploy-to-hardware-and-external-modes-work-with-arduino-uno-clones]
- Use different computers and different versions of Matlab (2020a, 2020b).
- The COM is ok, I checked it.
- I checked into 'Hardware Settings'->'Code Generation'->'Interface' but see no External Mode options following this question: [https://it.mathworks.com/matlabcentral/answers/399018-error-using-texas-instrument-control-board-error-occurred-while-executing-external-mode-mex-file]
But in every case I still experienced the problem.
Please help me to understand whether it's a setting that I forgot, or what should I do.
Thank you very much in advance!
0 Comments
Answers (2)
Birdman
on 26 Jan 2021
The main thing about External Mode is that you need to make sure that the code is running on the hardware before you try to run the External Mode. I suggest you check that.
2 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!