I have matlab 2014a with support package but when i call arduino in command window this message is appeared:Updating server code on...
1 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
Menghan
2015-12-21
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)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Arduino Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!