External mode error with Arduino Mega 2560

조회 수: 55(최근 30일)
Why does shipping demo fail to connect to target in external mode, even though the code download to target is successful?
The error shown is as below:

채택된 답변

MathWorks Support Team
MathWorks Support Team 2017년 11월 16일
편집: MathWorks Support Team 2017년 11월 16일
The issue is seen in variants of Arduino boards that are manufactured by third party companies which may use a serial over USB chip of type 'CH340' instead of the traditional Atmega 16U2 chip
The CH340 chip does not support greater than 230400 Bauds which is less than our external mode default Baud Rate of 921600 Bauds
It is recommended to use official Arduino boards, however, if the customer chooses to use other boards and works in external mode, the below API may be used to explicitly set the external mode default Baud Rate to 230400
It is recommended to use the same API as below to verify if the external mode default Baud Rate is now set to 230400 Bauds
  댓글 수: 2
changming zhao
changming zhao 2017년 11월 19일

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

추가 답변(2개)

Venkatesh Chilapur
Venkatesh Chilapur 2017년 12월 20일
The 'mdl' in the above command needs to be replaced by the model name.
Regards, Venkatesh C
  댓글 수: 1
Renan Parrela
Renan Parrela 2018년 9월 28일
What is the "model name"? Can you give a example?

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

Venkatesh Chilapur
Venkatesh Chilapur 2018년 10월 8일
Please open the model and run the following command at the MATLAB command prompt.
get_param(gcs, 'name');
The string that is returned here is the name of the model that is currently open.

Community Treasure Hunt

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

Start Hunting!

Translated by