Ubuntu 12.04 "Couldn’t find a Leonardo"

Hello all. I have had a Leonardo for some time now although I haven't used it for a very long time until recently. It was working a couple of weeks ago and then started giving me an error (see below) and I can not upload any code to it with the IDE. I ordered another Leonardo thinking my current one may have died since I have had it a while. The new one arrived and it gave me the same error. For the record my Uno and Pro Mini both work fine on Ubuntu. It is just the Leonardo having this issue. This leads me to believe it has something to do with Modem Manager like I have seen others have trouble with on similar devices (like Lilypad stuff) but I don't know enough about it to trouble shoot any further.

I remembered that I had a Windows partition on another machine in the house so I tested both Leonardos on the machine. They work fine. Walking to that machine to upload sketches is not something that can be done easily (for peace with my wife and physical reasons). Hopefully someone can help. :slight_smile:

Arduino IDE error:
processing.app.debug.RunnerException: Couldn’t find a Leonardo on the selected port. Check that you have the correct port selected. If it is correct, try pressing the board's reset button after initiating the upload.
at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:153)
at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:67)
at processing.app.Sketch.upload(Sketch.java:1671)
at processing.app.Sketch.exportApplet(Sketch.java:1627)
at processing.app.Sketch.exportApplet(Sketch.java:1599)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2380)
at java.lang.Thread.run(Thread.java:724)


The device: crw-rw-rw- 1 root dialout 166, 0 Jul 22 21:45 /dev/ttyACM0


dmesg:

[ 61.736438] cdc_acm 3-1:1.0: ttyACM0: USB ACM device
[ 61.736927] usbcore: registered new interface driver cdc_acm
[ 61.736929] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 69.459998] usb 3-1: USB disconnect, device number 6
[ 69.732225] usb 3-1: new full-speed USB device number 7 using xhci_hcd
[ 69.750518] usb 3-1: New USB device found, idVendor=2341, idProduct=8036
[ 69.750522] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 69.750524] usb 3-1: Product: Arduino Leonardo
[ 69.750527] usb 3-1: Manufacturer: Arduino LLC
[ 69.750925] cdc_acm 3-1:1.0: This device cannot do calls on its own. It is not a modem.
[ 69.750951] cdc_acm 3-1:1.0: ttyACM0: USB ACM device
[ 69.752191] input: Arduino LLC Arduino Leonardo as /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.2/input/input17
[ 69.752297] hid-generic 0003:2341:8036.0008: input,hidraw5: USB HID v1.01 Mouse [Arduino LLC Arduino Leonardo] on usb-0000:00:14.0-1/input2

Thanks everyone!

g

Hi gregthejones, did you ever resolve this issue?

I am having what appears to be the same issue with a Sparkfun Pro Micro (kind of a mini-Leonardo) and Ubuntu 13.10. The device appears as /dev/ttyACM0

Never had this problem with my Nano 3, which appears as /dev/ttyUSB0. However, I have had similar problems with my SparkCore, which also appears as /dev/ttyACM0. I use the web-based IDE to "flash" the Spark, so its less of an issue, as I only need the USB for debugging (Serial.print etc.).

With the Pro Micro, I can connect to it using "screen" and send keystrokes, which the Pro Micro "responds" to with flashes of its RX LED), so I don't think there's a hardware fault. But when I try a sketch upload, I get the "Can't Find a Leonardo" message.

Thanks,

Paul

Google is your friend. https://learn.sparkfun.com/tutorials/pro-micro--fio-v3-hookup-guide

Thanks tf68, but I have already followed all those instructions. That said, reading through them a 3rd or 4th time just now, I may have spotted a sublety I missed before. Will update the thread I started if I get anywhere with it.

paul