Skip to content

Leonardo doesn't appearing as CDC-ACM device #1389

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jotabr opened this issue Apr 27, 2013 · 9 comments
Closed

Leonardo doesn't appearing as CDC-ACM device #1389

jotabr opened this issue Apr 27, 2013 · 9 comments
Assignees
Milestone

Comments

@jotabr
Copy link

jotabr commented Apr 27, 2013

After plugging Leonardo to USB port, /dev/ttyACM0 is created normally by bootloader:

$ ls /dev/ttyACM*
/dev/ttyACM0

$ lsusb | grep Ard
Bus 003 Device 113: ID 2341:0036 Arduino SA

After bootloader has finished execution, there is no CDC ACM device available and it is not possible to upload any sketch:

$ ls /dev/ttyACM*
ls: cannot access /dev/ttyACM*: No such file or directory

$ lsusb | grep Ard
Bus 003 Device 110: ID 2341:8036 Arduino SA Leonardo (CDC ACM, HID)

If I reset Leonardo I have ACM back and some seconds for uploading a sketch.

Maybe it is related to this issue? -> https://groups.google.com/forum/?fromgroups=#!topic/lufa-support/kKuFY8HGgWc

I'm currently running RHEL 6.4 - Linux 2.6.32-358.2.1.el6.x86_64

Regards

Jota

@jantje
Copy link

jantje commented Apr 28, 2013

I experience the exact same problem on the exact same OS.
I have been looking for a solution but I havn't found anything yet.

@lestofante
Copy link

What's the output of dmesg?
Il giorno 29/apr/2013 00:49, "jantje" notifications@github.com ha scritto:

I experience the exact same problem on the exact same OS.
I have been looking for a solution but I havn't found anything yet.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1389#issuecomment-17144445
.

@jotabr
Copy link
Author

jotabr commented Apr 29, 2013

usb 3-2: new full speed USB device number 56 using xhci_hcd
usb 3-2: New USB device found, idVendor=2341, idProduct=0036
usb 3-2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
usb 3-2: Product: Arduino Leonardo
usb 3-2: Manufacturer: Arduino LLC
usb 3-2: configuration #1 chosen from 1 choice
usb 3-2: ep 0x82 - rounding interval to 1024 microframes, ep desc says 2040 microframes
cdc_acm 3-2:1.0: ttyACM0: USB ACM device
usb 3-2: USB disconnect, device number 56
usb 3-2: new full speed USB device number 57 using xhci_hcd
usb 3-2: New USB device found, idVendor=2341, idProduct=8036
usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 3-2: Product: Arduino Leonardo
usb 3-2: Manufacturer: Arduino LLC
usb 3-2: configuration #1 chosen from 1 choice
input: Arduino LLC Arduino Leonardo as /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2/input/input38
generic-usb 0003:2341:8036.001B: input,hidraw3: USB HID v1.01 Mouse [Arduino LLC Arduino Leonardo] on usb-0000:00:14.0-2/input2

@lestofante
Copy link

Seems ok, it is just it is enumerated differently. Go on the main site ->
getting started -> linux -> the hard way. You will find instructoon for
creating a udev rule.

usb 3-2: new full speed USB device number 56 using xhci_hcd
usb 3-2: New USB device found, idVendor=2341, idProduct=0036
usb 3-2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
usb 3-2: Product: Arduino Leonardo
usb 3-2: Manufacturer: Arduino LLC
usb 3-2: configuration #1
https://github.com/arduino/Arduino/issues/1chosen from 1 choice
usb 3-2: ep 0x82 - rounding interval to 1024 microframes, ep desc says 2040
microframes
cdc_acm 3-2:1.0: ttyACM0: USB ACM device
usb 3-2: USB disconnect, device number 56
usb 3-2: new full speed USB device number 57 using xhci_hcd
usb 3-2: New USB device found, idVendor=2341, idProduct=8036
usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 3-2: Product: Arduino Leonardo
usb 3-2: Manufacturer: Arduino LLC
usb 3-2: configuration #1
https://github.com/arduino/Arduino/issues/1chosen from 1 choice
input: Arduino LLC Arduino Leonardo as
/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2/input/input38
generic-usb 0003:2341:8036.001B: input,hidraw3: USB HID v1.01 Mouse
[Arduino LLC Arduino Leonardo] on usb-0000:00:14.0-2/input2


Reply to this email directly or view it on
GitHubhttps://github.com//issues/1389#issuecomment-17148165
.

@jotabr
Copy link
Author

jotabr commented Apr 29, 2013

Following website instructions, I get the following:

  • While bootloader is running:
    $ ls -l /dev/ttyA*
    crw-rw-rw-. 1 root dialout 166, 0 Apr 29 09:00 /dev/ttyACM0
    lrwxrwxrwx. 1 root root 15 Apr 29 09:00 /dev/ttyACM1 -> bus/usb/003/084
  • While sketch is running:
    $ ls -l /dev/ttyA*
    lrwxrwxrwx. 1 root root 15 Apr 29 09:00 /dev/ttyACM1 -> bus/usb/003/085
    lrwxrwxrwx. 1 root root 13 Apr 29 09:00 /dev/ttyACM15 -> input/event15
    lrwxrwxrwx. 1 root root 7 Apr 29 09:00 /dev/ttyACM3 -> hidraw3
    lrwxrwxrwx. 1 root root 12 Apr 29 09:00 /dev/ttyACM4 -> input/mouse4

Same as before, but now I get new dev links.

@lestofante
Copy link

Sorry, missed that before:
from DMESG: USB HID v1.01 Mouse [Arduino LLC Arduino Leonardo] on
usb-0000:00:14.0-2/input2
and from your ls -l /dev/ttyA*: /dev/ttyACM4 -> input/mouse4

so it seems like you have uploaded some come to show your leonardo as
mouse...

2013/4/29 jotabr notifications@github.com

Following website instructions, I get the following:

While bootloader is running:
$ ls -l /dev/ttyA*
crw-rw-rw-. 1 root dialout 166, 0 Apr 29 09:00 /dev/ttyACM0
lrwxrwxrwx. 1 root root 15 Apr 29 09:00 /dev/ttyACM1 -> bus/usb/003/084

While sketch is running:
$ ls -l /dev/ttyA*
lrwxrwxrwx. 1 root root 15 Apr 29 09:00 /dev/ttyACM1 -> bus/usb/003/085
lrwxrwxrwx. 1 root root 13 Apr 29 09:00 /dev/ttyACM15 -> input/event15
lrwxrwxrwx. 1 root root 7 Apr 29 09:00 /dev/ttyACM3 -> hidraw3
lrwxrwxrwx. 1 root root 12 Apr 29 09:00 /dev/ttyACM4 -> input/mouse4

Same as before, but now I get new dev links.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1389#issuecomment-17162761
.

@jotabr
Copy link
Author

jotabr commented Apr 29, 2013

No. It's just the blink sketch, from examples folder. ^^
And, Yes, if I use any of keyboard or mouse functions, it does work.
But Serial / CDC ACM? No way.

@toddkrein
Copy link

The problem is that the VID:PID of the running sketch isn't in list of cdc_acm modules in cdc_acm.c in older versions of the driver. (Ubuntu 13.04 works, but it's the only one I've found.)

As a hack, this should work:

echo "0x1b4f 0x9204" > /sys/bus/usb/drivers/cdc_acm/new_id

@facchinm
Copy link
Member

Solved by newer kernel versions

@ffissore ffissore modified the milestone: Release 1.6.6 Sep 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants