arduino mega not connecting to simulink

2 Ansichten (letzte 30 Tage)
Yash Manian
Yash Manian am 22 Dez. 2015
Kommentiert: Yash Manian am 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 Kommentare
Madhu Govindarajan
Madhu Govindarajan am 23 Dez. 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 am 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

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by