For anyone with this same problem, the solution is to press the reset button right after you create the arduino object. It might be best to upload the server to the board first using arduinosetup, and then create the arduino object and right after you press enter hit the reset button.
Arduino Support Package Failing to Connect With any Arduino Mega
11 views (last 30 days)
Show older comments
Jadon Clugston
on 1 Feb 2020
Commented: Abdel-rahman Mryyan
on 1 May 2022
Hello,
I'm trying to use matlab to connect to an arduino Mega, but every time I try the connection fails. When I use arduinosetup I can hit program and it will say it programmed successfully, but when I try to test the connection it tells me to check the settings. When I use a = arduino('COM13','Mega2560','Trace',true), It tells me: "Internal error: The initialization of the server code is incorrect." I have tried it on atleast five other arduino megas and it's always the same result. Thank you.
0 Comments
Accepted Answer
Jadon Clugston
on 3 Feb 2020
3 Comments
Abdel-rahman Mryyan
on 1 May 2022
Edited: Abdel-rahman Mryyan
on 1 May 2022
I have the same problem , it didn't work.
Abdel-rahman Mryyan
on 1 May 2022
More Answers (0)
See Also
Categories
Find more on MATLAB Support Package for Arduino Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!