arduino mega not connecting to simulink

2 ビュー (過去 30 日間)
Yash Manian
Yash Manian 2015 年 12 月 22 日
コメント済み: Yash Manian 2016 年 1 月 6 日
I'm running MATLAB R2015b on 64-bit Windows 10. I have been trying to download the blink led model in simulink onto my arduino mega. I have the arduino support packages installed. When I type in a = arduino into the matlab terminal, I get the following response: a = arduino Updating server code on board Mega2560 (COM6). Please wait.
a =
arduino with properties:
Port: 'COM6'
Board: 'Mega2560'
AvailablePins: {'D2-D53', 'A0-A15'}
Libraries: {'I2C', 'SPI', 'Servo'}
However, when I open the example arduinomega2560_getting started on simulink, and try to download it to the target hardware(I have checked hardware implementation in model configuration parameters and verified the details), it shows 1 warning with the following error:
####
The following error was encountered during evaluation of the Download command:
Could not connect to specified Arduino board.
####
Am I correct in assuming that since I got an output on the matlab terminal, that the software is able to connect to the board?
And if so, why can't simulink download the model to the target hardware?
  2 件のコメント
Madhu Govindarajan
Madhu Govindarajan 2015 年 12 月 23 日
Did you try mentioning the COM port on the configuration settings? If so, can you try making it automatic. If you selected automatic try mentioning the port. The other thing that might help is to have a clear MATLAB Command Window while attempting connection for the first time using Simulink
Yash Manian
Yash Manian 2016 年 1 月 6 日
The problem turned out to be a faulty FTDI chip on the board. It has been resolved. Thank you for your response
Yash Manian

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by