Error while executing external mode on Arduino Mega

조회 수: 2 (최근 30일)
Omkar Bhanap
Omkar Bhanap 2018년 1월 30일
댓글: Omkar Bhanap 2018년 3월 20일
I was trying to build a Simulink model into Arduino Mega 2560 but got an error as follows:-
"Error occurred while executing External Mode MEX-file 'ext_comm': ExtGetTargetPkt() call failed while checking target pkt header. Component:Simulink | Category:Block diagram error Error occurred while executing External Mode MEX-file 'ext_comm': ExtSetTargetPkt() call failed on CLOSE. Ensure target is still running"
Please tell me what is wrong with my model... I have attached my model and error message on diagnostic viewer with this question.
  댓글 수: 6
Madhu Govindarajan
Madhu Govindarajan 2018년 2월 8일
I ran the model in your attached file without any error messages when I disabled the overrun detection option. I got the same error message when I enabled overrun detection option at 1K Hz sampling time - Error:Error occurred while executing External Mode MEX-file 'ext_comm': ExtGetTargetPkt() call failed while checking target pkt header.
Hopefully that helps. If not, I would recommend slowing the sampling time both on the block and at the model level to 100 Hz or 1 Hz. If that also does not work, please reach out to MathWorks Technical support and they should be able to assist you with this.
Omkar Bhanap
Omkar Bhanap 2018년 3월 20일
Not working on my model. How can I get help from Mathworks Technical Support Assist Team ??

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by