PDA

View Full Version : Arduino Serialport not found



Theadamlt
May 11th, 2011, 01:28 PM
Hi all,

I recently changed from Windows 7 to Ubuntu, and i have a problem using my Arduino duemilanove. I plug it in a usb port, starting the Arduino IDE, witch i downloadet from ubuntu softwarecenter. I Then go to "Tools > Board" and select the right boarb. But here is the problem: The "Serialport" menu is greyed out. I can't upload my code to the arduino. Im runnig Ubuntu 11.04 with kernel ver. 2.6-38-8. I treid running
ls /dev/ttyUSB0 in the terminal with the result of:
ls: cannot access /dev/ttyUSB0: No such file or directory


Does anyone have a suggestion?

Thank you in advice
Adam

teachop
May 11th, 2011, 03:10 PM
After plugging in the Arduino, do a dmesg and see what is happening - if it mounts you will see the device path in there. Also, try the command "lsusb" and see if it shows up. I have used the Arduino bootloader with no issues in 11.04, so it is possible!

Theadamlt
May 12th, 2011, 03:00 PM
Hi, thanks for the suggestion. Lol i found the solution: I tried with another USB cable. Thats it :)

marcusm11
May 15th, 2011, 02:01 PM
I'm new to arduino so i could be doing something wrong, but i'm getting a very similar problem.
When i first connect the board i can upload a new sketch, but after making changes i can not up load anything again. This is when the error message about serial ports not being found happens.
I tried everything listed above and can't figure it out. Anyother ideas?

teachop
May 16th, 2011, 12:47 AM
When i first connect the board i can upload a new sketch, but after making changes i can not up load anything again. This is when the error message about serial ports not being found happens.
What do you have to do to get it working again?

Also, what is the model of the Arduino?

marcusm11
May 17th, 2011, 10:55 AM
Its an Arduino Uno.
I'm not sure what actually resets it but its always the first sketch i try. so probably just restarting the computer

Tux Aubrey
May 17th, 2011, 11:25 AM
This is a known issue with the original Uno and the Mega firmware. It happened to me with my original Uno (but not with one I bought a few months later). You clearly have the original firmware.

See this Arduino article first: http://arduino.cc/en/Hacking/DFUProgramming8U2

But use the "non-soldering" technique to boot into DFU mode - shown best here: http://arduino.cc/forum/index.php/topic,52447.0.html

It sound complicated, but it takes less than a few minutes to run through the steps to upgrade the firmware once you have the DFU programmer and new firmware downloaded.

marcusm11
May 18th, 2011, 11:43 AM
would this be a linux issue? I followed the article you pointed to but the images didn't display the layout for an SMD edition. tried it on a windows machine and after sorting out driver issues it seems to be fine witout messing with th DFU

Tux Aubrey
May 19th, 2011, 03:41 AM
would this be a linux issue?

Absolutely (my bad for assuming we were all doing Arduino on Ubuntu!). But SMD should not be an issue for putting an Uno into DFU mode.

By the way, the non-invasive workaround is to unplug and reset each time you get the serial error. I just got tired of doing it that way and went with the permanent fix.

marcusm11
May 19th, 2011, 09:25 AM
I also found that there are some rxtx driver files that can be updated but again I'm too much of a noob to tackle something like that without a step-by-step. But I have found a super easy, noob friendly fix that even I could handle. If you run the Arduino IDE as a super user Its all good.
I played around with it all night last night and didn't have to reset a thing.

Now I just need to find a cool project to put my mind to



Thanks for all the help

naga2raja
August 21st, 2012, 03:03 AM
Just start arduino IDE as a root user


sudo arduino