External Mode Error in Simulink - Using TI Piccolo F2803x

조회 수: 6 (최근 30일)
James Lorenzo Fioravanti
James Lorenzo Fioravanti 2021년 1월 26일
답변: James Lorenzo Fioravanti 2021년 3월 17일
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:
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!

답변 (2개)

Birdman
Birdman 2021년 1월 26일
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
James Lorenzo Fioravanti
James Lorenzo Fioravanti 2021년 1월 26일
Thank you @Birdman for the suggestion. We've tried it and it still doesn't work unfortunately.
pavan koushik
pavan koushik 2021년 3월 17일
have you found a solution?

댓글을 달려면 로그인하십시오.


James Lorenzo Fioravanti
James Lorenzo Fioravanti 2021년 3월 17일
Hi @pavan koushik, I got support from the MathWorks Team and they showed me that it's not a connection issue, but a problem of the example itself which got stuck in a loop of "do while" and so created a time-out error.

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by