Comments (13)
What hardware/OS this is? What does lsusb say? What does dmesg say when you plug in the debugger?
from edbg.
thank you for your faster reply:
results : lsusb
aswin@aswin-fourthfrontier:~$ lsusb
Bus 001 Device 005: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 004: ID 0cf3:0036 Atheros Communications, Inc.
Bus 001 Device 003: ID 0c45:670b Microdia
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 03eb:2111 Atmel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
results dmesg when device plugged in:
[ 809.171466] usb 2-1: USB disconnect, device number 2
[ 822.126910] usb 2-1: new high-speed USB device number 3 using xhci_hcd
[ 822.255395] usb 2-1: config 1 interface 2 altsetting 0 bulk endpoint 0x84 has invalid maxpacket 64
[ 822.255404] usb 2-1: config 1 interface 2 altsetting 0 bulk endpoint 0x5 has invalid maxpacket 64
[ 822.255817] usb 2-1: New USB device found, idVendor=03eb, idProduct=2111
[ 822.255824] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 822.255829] usb 2-1: Product: EDBG CMSIS-DAP
[ 822.255832] usb 2-1: Manufacturer: Atmel Corp.
[ 822.255836] usb 2-1: SerialNumber: ATML2393031800001029
[ 822.256087] usb 2-1: ep 0x87 - rounding interval to 128 microframes, ep desc says 255 microframes
[ 822.256098] usb 2-1: ep 0x6 - rounding interval to 128 microframes, ep desc says 255 microframes
[ 822.257965] hid-generic 0003:03EB:2111.0003: hiddev0,hidraw0: USB HID v1.11 Device [Atmel Corp. EDBG CMSIS-DAP] on usb-0000:00:14.0-1/input0
[ 822.258142] cdc_acm 2-1:1.1: ttyACM0: USB ACM device
thank you,
Aswin
from edbg.
That all looks good. I've never seen this error before, so I don't really know what may be wrong.
The only thing I can suggest is to run as root and see if that makes any difference.
from edbg.
No, the same. I am using Debian 8 Jessie. But the same thing happened with ubuntu 14.04 as well(On the same machine). The application works fine in my other two laptops. I doubt there is some hardware related issues. Can you suggest a way to debug the code from hardware level?
Is there anything to be changed on boot setup? I am using "Dell Vostro 14 3000 Series"
Thank you,
Aswin
from edbg.
I really have no idea. I just used a standard Linux demo code as a base for the USB stuff , I have no deep knowledge of what it is doing under the hood and how it interacts with the OS. And without a way to reproduce, there is not much I can do to debug this.
from edbg.
Okay, Thank you. :)
from edbg.
If you want to spend some time debugging this, then we can try.
For starters, I'd print out the value of 'path' in the "udev_list_entry_foreach(dev_list_entry, devices)" loop right after the line"path = udev_list_entry_get_name(dev_list_entry);".
This will show if it found more than one USB HID device and some of them are not behaving properly.
Alternatively, try to run the program when no debuggers are attached. If it fails the same way, then there is some weird device in the system and path printout will help to understand which one.
from edbg.
And if previous test shows that this is a problem, then simply change "check(parent, "unable to find parent usb device");" to "if (NULL == parent) continue;" to skip that device.
from edbg.
Yes you are right. I am getting the same error when the debugger is unplugged as well. this is the printed output /sys/devices/pci0000:00/INT33C3:00/i2c-1/i2c-DLL0662:00/0018:06CB:2985.0001/hidr
from edbg.
Yes.... We did it !!! Awesome !!! It works.
Thank you so much 👍
from edbg.
This is an I2C touchpad from Synaptics pretending to be a HID device. But it is not a part of the USB tree, obviously, so it has no parent. I'll change the code accordingly.
from edbg.
Alex I am adding you to my linkedin network please accept my request. I need to learn lot from you.
from edbg.
Code updated.
from edbg.
Related Issues (20)
- "Error: invalid response received" in ATSAMD11C14A HOT 16
- error_exit() function and target reset HOT 1
- Error: hid_error is not implemented yet HOT 20
- Ubuntu 20 edbg flash broken? HOT 3
- unable to unlock HOT 4
- Binary downloads HOT 7
- Programming ATsaml21e17b HOT 2
- Segmentation fault on OSX when debugger in use by openocd HOT 7
- CMSIS-DAP v2 support requirement HOT 5
- edbg compiled on Raspberry Pi 4B hangs while using free-DAP to program SAMD21 HOT 3
- RP2040 support? HOT 28
- board unusable after write fuse operation on SAML11-XPRO HOT 5
- Why is the RP2040 max flash 2MB? HOT 1
- libhidapi.0.dylib not loaded on Mac HOT 5
- Request to add entry for SAM V70N19 Rev B HOT 1
- "nanoDAP" adapter not supported in Linux HOT 2
- WAIT response after erasing flash HOT 7
- Can't list devices on Ubuntu 20.04 HOT 4
- Kinetis KL26 HOT 2
- Add support for PUYA PY32F0xx HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edbg.