MATLAB Answers

I have matlab 2014a with support package but when i call arduino in command window this message is appeared:Updating server code on...

2 views (last 30 days)
Abbas Aqapour
Abbas Aqapour on 18 Dec 2015
Answered: Menghan on 21 Dec 2015
I have matlab 2014a with support package but when i call arduino in command window this message is appeared:Updating server code on Arduino Mega2560 (COM3). Please wait. Cannot program Arduino board Mega2560 (COM3). Please make sure the board is supported and the port and board type are correct. borad arduino Mega2560 Com3 is open

Answers (1)

Menghan
Menghan on 21 Dec 2015
Hi Abbas,
There are a couple things that can lead to this error.
1. Has the Arduino device driver been properly installed? You can check that by looking at the Device Manager and see if the Arduino shown as a recognized COM port.
2. Were you able to program the board outside of MATLAB, like just using the Arduino IDE? When you mentioned that COM3 is open, were you using it elsewhere or opened the serial port yourself in MATLAB? The support package requires the COM port to not be in use or open before calling arduino command
3. Lastly, you can turn on the TraceOn parameter to inspect the compile and upload errors when calling arduino, instructions to do that can be seen in the troubleshooting of the MATLAB Support Package for Arduino document.
Hope this helps, Menghan
(MATLAB Hardware team - MathWorks)

Community Treasure Hunt

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

Start Hunting!