Arduino Leonardo: adapter_detect failed

Need help? Ask here and someone will help
Post Reply
yamiro
Posts: 11
Joined: Sat Feb 27, 2016 9:26 pm

Arduino Leonardo: adapter_detect failed

Post by yamiro »

After my success with the Teensy I try to reach the same goal with cheaper components.
I ordered two Arduino Leonardo Ripoffs and two CP2102.

The firmware flash was successfull on both:

Code: Select all

avrdude -p atmega32u4 -c avr109 -P /dev/tty.usbmodemFA131 -D -U flash:w:atmega32u4.hex:i

Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
    Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.

Programmer supports the following devices:
    Device code: 0x44

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9587 (probably m32u4)
avrdude: reading input file "atmega32u4.hex"
avrdude: writing flash (4376 bytes):

Writing | ################################################## | 100% 0.35s

avrdude: 4376 bytes of flash written
avrdude: verifying flash memory against atmega32u4.hex:
avrdude: load data flash data from input file atmega32u4.hex:
avrdude: input file atmega32u4.hex contains 4376 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.05s

avrdude: verifying ...
avrdude: 4376 bytes of flash verified

avrdude: safemode: Fuses OK (E:CB, H:D8, L:FF)

avrdude done.  Thank you.
So I have 2 combinations: 2 Arduinos, each is connected to 1 CP2102. None is detected on my LTS14.04:

Code: Select all

~]$    gimx --config LogitechG27_G29.xml --port /dev/ttyUSB0 --status
option -c with value `LogitechG27_G29.xml'
option -p with value `/dev/ttyUSB0'
status flag is set
native mode is already enabled for HID device 02:02 (PID=c29b)
can't read packet header
No controller detected.
adapter_detect failed

Code: Select all

[~]$ lsusb
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 004: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
Bus 002 Device 005: ID 046d:c29b Logitech, Inc. G27 Racing Wheel
Bus 002 Device 002: ID 054c:05c4 Sony Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
I already changed RX/TX cables. Do I have to do anything special for the arduinos to work?
Regards
yamiro
Posts: 11
Joined: Sat Feb 27, 2016 9:26 pm

Re: Arduino Leonardo: adapter_detect failed

Post by yamiro »

yamiro
Posts: 11
Joined: Sat Feb 27, 2016 9:26 pm

Re: Arduino Leonardo: adapter_detect failed

Post by yamiro »

User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Arduino Leonardo: adapter_detect failed

Post by Matlo »

It looks like there is a bad contact.
Did you solder the pins?
GIMX creator
yamiro
Posts: 11
Joined: Sat Feb 27, 2016 9:26 pm

Re: Arduino Leonardo: adapter_detect failed

Post by yamiro »

Yes, but the joints look OK. Small and shiny. The same to the second arduino.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Arduino Leonardo: adapter_detect failed

Post by Matlo »

I tested a few of these cheap Arduino clones, and I had no issue at all.
Did you try different USB to UART adapters?
GIMX creator
yamiro
Posts: 11
Joined: Sat Feb 27, 2016 9:26 pm

Re: Arduino Leonardo: adapter_detect failed

Post by yamiro »

No, I just reordered the same model from the same seller on ebay, which worked on my first project.
Are there any drivers needed to detect the arduino ripoff?
Is it possible that the flash went wrong even with a success message?
What is the minimal effort to get to know if the hardware works properly (Windows, OSX, Linux)?

Thank you in advance
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Arduino Leonardo: adapter_detect failed

Post by Matlo »

Here's how to test the USB to UART adapter:
http://gimx.fr/wiki/index.php?title=FAQ ... adapter.3F
GIMX creator
Post Reply