Error updating the arduino with the motorshieldv2 library
古いコメントを表示
Hello,
I am new here but am struggling for two weeks now with updating the motorshieldv2 library to the arduino... I have tried every possible solution online but nothing worked and so I was hoping somebody could help.

When I connect to the Arduino just by a=arduino() it works, also with specifying the com and board type. Moreover it still works if I include the 'servo' library... but when I try uploading the adafruit/motorshieldv2 library it gives me an error: Cannot program board Uno (COM3). Please make sure the board is supported and the port and board type are correct. (by the way the workspace was cleared before launching the last command in the picture below)
I am using Matlab R2015a with windows10 and the hardware support package for arduino is installed.
This probably has a very simple solution and i will probably feel very stupid but I really need this to work so I can start the real work :)
thank you in advance
11 件のコメント
Walter Roberson
2016 年 1 月 29 日
I recommend you contact Mathworks support.
bram verhelst
2016 年 1 月 30 日
mona willtig
2016 年 2 月 16 日
Did you get any response? I have the completly same Problem with Matlab2014a and Win10 (64bit) and Win7 (32bit).
D
2016 年 2 月 17 日
I have the exact same issue, I tried 2015a and 2015b on a win10(64bit).
Did anyone find a workaround??
bram verhelst
2016 年 2 月 17 日
mona willtig
2016 年 2 月 17 日
so i tried to fix it with the debugger... its a long code: the subcode utility.m generates a make-file which causes the problem i think. But i have no idea how to fix this.
mona willtig
2016 年 2 月 17 日
line: [status, result] = system(cmdstr);
if you execute just: system(cmdstr) and stop the code before it.
bram verhelst
2016 年 2 月 18 日
D
2016 年 2 月 18 日
I went through a lot of the .m files with no luck. I can't find the system(cmdstr) line in the utility.m file you are referring to.
What line is it? or is it in a different .m file. Which version of matlab are you using?
D
2016 年 2 月 18 日
Here is the link to the solution! http://www.mathworks.com/matlabcentral/answers/268379#comment_343753
bram verhelst
2016 年 2 月 22 日
回答 (2 件)
LI
2016 年 2 月 7 日
0 投票
I encountered this problem today. I tried a lot of possible solutions, but no success. However, after I switched to a different computer, the motor shield library then can be uploaded to the Arduino board. I hope this will help.
1 件のコメント
D
2016 年 2 月 17 日
Can you specify what PC config you had on the comp that didnt work and on the comp that did work? Windows 10? 8?7? 32bit?64bit?
Greg Siegle
2020 年 1 月 20 日
0 投票
I have this problem when my Arduino is in 2 of the 4 USB slots on my laptop. Changing the USB slot to one of the other 2 slots preserves the same COM port, but it does not try to update the Arduino code, and everything works fine.
カテゴリ
ヘルプ センター および File Exchange で MATLAB Support Package for Arduino Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!