Cannot connect arduino Mega2560 to matlab2016a

>> a =arduino('COM4', 'Mega2560')
Updating server code on board Mega2560 (COM4). Please wait.
Cannot program board Mega2560 (COM4). Please make
sure the board is supported and the port and board
type are correct.

6 comentarios

Xue Ni Law on 3 Jun 2016 at 13:55
 
The Problem Solved! If you have the same problem like me. Please change your Arduino Folder name under C/User. (I change the name from Arduino to A) Then call the arduino again in MATlab.
It is because the 'Arduino' Folder in 'User' will overwrite the arduino folder in MATLAB/SupportPackage. Hope this can help.
Gourav  Pawar
Gourav Pawar el 18 de Feb. de 2017
Thanks for your answer. I searched a lot for the same problem from 2 days, and this solution is worked for me.
Gourav  Pawar
Gourav Pawar el 18 de Feb. de 2017
Thanks for your answer. I searched a lot for the same problem from 2 days, and this solution is worked for me.
bilal malik
bilal malik el 18 de Mzo. de 2017
Thanks. Worked for me too.
Gongyan Du
Gongyan Du el 13 de Oct. de 2018
Help me, please. How to change Arduino Folder name under C/User. Give me a picture. My email dugongyan@163.com Thanks you!
ibra
ibra el 1 de Abr. de 2019
OH MY GOD THANK YOU I LOVE YOU

Iniciar sesión para comentar.

Respuestas (2)

wisam kh
wisam kh el 9 de Ag. de 2018

0 votos

when I change the name and what to open skitch again to upload empty skitch to rest arduino get this error
The sketchbook folder no longer exists. Arduino will switch to the default sketchbook location , and create a new sketchbook folder if necessary. Arduino will then stop talking about himself in the third person.
and the arduino folder generated again
Spencer Kraisler
Spencer Kraisler el 23 de Oct. de 2019

0 votos

Tried this and it did not work. Still getting that "Cannot program board Mega2560 (/dev/cu.usbmodem144101). Please make sure the board is supported and the port and board type are correct." error

Categorías

Más información sobre MATLAB Support Package for Arduino Hardware en Centro de ayuda y File Exchange.

Preguntada:

el 6 de Jun. de 2016

Respondida:

el 23 de Oct. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by