MATLAB Answers

Freescale Cup: Why do I get the error message "Error occured while executing External Mode MEX-file 'ext_serial_win32_comm': Failed to connect to target. A time-out occurred while waiting for the first connect response packet..."?

조회 수: 1(최근 30일)
When I try to connect to the FRDM-KL25Z board from a simple controller model provided as part of the "Simple Car Controller" example in the Freescale Cup Companion App after setting it up for external mode, I get the following error:
Error occurred while executing External Mode MEX-file 'ext_serial_win32_comm':
Failed to connect to the target. A time-out occurred while waiting for the first connect response packet. 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.
Component: Simulink | Category: Model error
Why do I get this error?

채택된 답변

MathWorks Support Team
This error message can be caused by a variety of factors. In this case, the default duration for the model is 10 seconds, which is not enough time to connect to the model after it begins running on the target. In order to fix this, simply change the duration of the model to "Inf", rebuild the model and then try to connect again.

  댓글 수: 0

로그인 to comment.

추가 답변(1개)

Song-Hyun Ji
Song-Hyun Ji 4 Aug 2015
This error might be occurred if the board does not have the latest firmware on it, so the computer is not recognizing the board, which causes the automatic download to fail (with only a short message in the diagnostic viewer as indication) and if the external mode code is not loaded onto the hardware, then it will fail to connect to the target.

  댓글 수: 0

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by