arduino mega not connecting to simulink

2 views (last 30 days)
Yash Manian
Yash Manian on 22 Dec 2015
Commented: Yash Manian on 6 Jan 2016
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 Comments
Madhu Govindarajan
Madhu Govindarajan on 23 Dec 2015
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 on 6 Jan 2016
The problem turned out to be a faulty FTDI chip on the board. It has been resolved. Thank you for your response
Yash Manian

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!