0

Feather 32u4 Can not upload - DOA?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Feather 32u4 Can not upload - DOA?

by badfruit on Wed Jun 13, 2018 1:21 pm

Hi there,

I just got my Feather 32u4 Bluefruit LE in the mail today and really looked forward to trying it out.
However, I can't manage to upload code to it, since it always turns off after a few seconds.

Code: Select all | TOGGLE FULL SIZE
# dmesg | tail
[  735.966554] usb 3-2: Manufacturer: Adafruit In
[  735.967227] cdc_acm 3-2:1.0: ttyACM3: USB ACM device
[  745.655033] usb 3-2: USB disconnect, device number 9
[  753.136274] usb 3-2: new full-speed USB device number 10 using xhci_hcd
[  753.286091] usb 3-2: New USB device found, idVendor=239a, idProduct=000c
[  753.286096] usb 3-2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[  753.286099] usb 3-2: Product: Adafruit Feather
[  753.286101] usb 3-2: Manufacturer: Adafruit In
[  753.286724] cdc_acm 3-2:1.0: ttyACM3: USB ACM device
[  762.975084] usb 3-2: USB disconnect, device number 10


I set up my IDE properly and installed the boards software via board manager.
I applied the udev rules (https://learn.adafruit.com/adafruit-ard ... udev-rules) and added myself to various user groups (tty, dialout, ...).

I also tried out the fix mentioned here: https://learn.adafruit.com/adafruit-fea ... help#faq-4 with the following result:
The LED pulses for a few seconds after reset, then turns off, the IDE seems to try longer but eventually gives up as well:
Code: Select all | TOGGLE FULL SIZE
PORTS {/dev/ttyACM0, /dev/ttyACM1, /dev/ttyACM2, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyACM1, /dev/ttyACM2, /dev/ttyACM3, /dev/ttyS0, } => {/dev/ttyACM3, }
Found upload port: /dev/ttyACM3
/home/jan/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino9/bin/avrdude -C/home/jan/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino9/etc/avrdude.conf -v -patmega32u4 -cavr109 -P/dev/ttyACM3 -b57600 -D -Uflash:w:/tmp/arduino_build_308987/Blink_w_libs.ino.hex:i

avrdude: Version 6.3, compiled on Jan 17 2017 at 11:00:16
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/home/jan/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino9/etc/avrdude.conf"
         User configuration file is "/home/jan/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyACM3
         Using Programmer              : avr109
         Overriding Baud Rate          : 57600
avrdude: ser_open(): can't open device "/dev/ttyACM3": No such file or directory

avrdude done.  Thank you.

Problem beim Hochladen auf das Board. Hilfestellung dazu unter http://www.arduino.cc/en/Guide/Troubleshooting#upload.


Nothing helps. After reset, the LED pulses for a few seconds and then turns off.

Any solution to this or is the board simply dead on arrival?


Thanks and have a nice day!
Jan

badfruit
 
Posts: 7
Joined: Mon Jun 11, 2018 7:29 am

Re: Feather 32u4 Can not upload - DOA?

by adafruit_support_carter on Wed Jun 13, 2018 1:39 pm

Have you tried another USB cable and/or USB port? What else do you have connected to USB?

adafruit_support_carter
 
Posts: 7037
Joined: Tue Nov 29, 2016 2:45 pm

Re: Feather 32u4 Can not upload - DOA?

by badfruit on Wed Jun 13, 2018 1:41 pm

adafruit_support_carter wrote:Have you tried another USB cable and/or USB port? What else do you have connected to USB?


Yes, I have tried different cables. There's nothing else connected to my Laptop using USB.

badfruit
 
Posts: 7
Joined: Mon Jun 11, 2018 7:29 am

Re: Feather 32u4 Can not upload - DOA?

by adafruit_support_carter on Wed Jun 13, 2018 2:06 pm

Hmmm. You've done all the correct setup. I was thinking it might be power related. Either due to the cable or the USB port. It initially finds it and enumerates it. There must be some other cdc_acm devices on your system since it's getting mounted to /dev/ttyACM3 (instead of /dev/ttyACM0). This initial communication is pretty low power, but then once the BLE module kicks it, it tries to draw more current than the cable (or bus) can deliver and grays out and gets kicked.

I'm not surprised that Arudino fix didn't work. It seems like something lower level is happening.

Did you try rebooting, just to make sure the udev stuff was in place?

Do you have any other hardware, like an Arudino UNO, you could try as a way to test the USB cable / port?

adafruit_support_carter
 
Posts: 7037
Joined: Tue Nov 29, 2016 2:45 pm

Re: Feather 32u4 Can not upload - DOA?

by badfruit on Wed Jun 13, 2018 2:44 pm

Yeah, rebooting was the first thing I tried.

Looks like you're right that this is a power issue. I just plugged the power supply for my Pi 3B+ (which is pretty beefy) into the feather and it seems to keep running.

About the other devices:
Code: Select all | TOGGLE FULL SIZE
$ lsusb
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 5986:02d5 Acer, Inc
Bus 001 Device 003: ID 0a5c:21e6 Broadcom Corp. BCM20702 Bluetooth 4.0 [ThinkPad]
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 0bdb:1926 Ericsson Business Mobile Networks BV
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Should all be internal stuff. I tried to find out about the ACM-devices, using the bast rated answer here: https://unix.stackexchange.com/question ... ev-ttyusb0
This is the result for the ACM:
Code: Select all | TOGGLE FULL SIZE
/dev/ttyACM2 - Lenovo_H5321_gw_C189CCB5AD5C64M0
/dev/ttyACM1 - Lenovo_H5321_gw_C189CCB5AD5C64M0
/dev/ttyACM0 - Lenovo_H5321_gw_C189CCB5AD5C64M0

So, only internal stuff it seems.

Unfortuantely i don't have another arduino-like board lying around.
I also tried to connect the Feather to my PC with the same result, so I guess it's not the USB-ports fault.

badfruit
 
Posts: 7
Joined: Mon Jun 11, 2018 7:29 am

Re: Feather 32u4 Can not upload - DOA?

by badfruit on Thu Jun 14, 2018 10:04 am

I tried plugging in a charged LiPo battery and the feather seems to run. However, plugging it into my laptop doesn't get me anywhere since it will only connect via USB once reset and resetting makes it try to pull the power via USB, so it crashes again after 9 seconds.

By now I tried three diffrent computer, three different cables and three different ports each. Nothing.

So, I guess the part of the board negotiating the power draw with the USB controller is broken? Anyway to check this? Or should I just ask for a replacement?

badfruit
 
Posts: 7
Joined: Mon Jun 11, 2018 7:29 am

Re: Feather 32u4 Can not upload - DOA?

by adafruit_support_carter on Thu Jun 14, 2018 11:21 am

Thanks for all the additional info and sleuthing on this. If it's a bad board, we'll totally replace it. But it's always helpful to try and find the root cause.

So, I guess the part of the board negotiating the power draw with the USB controller is broken? Anyway to check this?

Maybe. Really weird it runs on battery but not USB. I'm looking through the schematic for that board:
https://learn.adafruit.com/adafruit-fea ... #schematic
the power input and voltage regulator is in the upper left. VBUS is USB and VBAT is battery. They both pretty much go straight into the voltage regulator, so there's very little difference between the two. And you got it to run with power coming in on VBAT (with the LiPo) and VBUS (with the RPi supply). If you have a multimeter, we could test some voltages just to make sure the power is OK.

It seems more like it has something to do with the data comms. Maybe there's an issue with the firmware loaded on the 32u4? You mention trying three different computers. Can you provide more info on what happened with those? What OS were they, what they did, etc.

adafruit_support_carter
 
Posts: 7037
Joined: Tue Nov 29, 2016 2:45 pm

Re: Feather 32u4 Can not upload - DOA?

by badfruit on Thu Jun 14, 2018 2:43 pm

adafruit_support_carter wrote:Thanks for all the additional info and sleuthing on this. If it's a bad board, we'll totally replace it. But it's always helpful to try and find the root cause.

So, I guess the part of the board negotiating the power draw with the USB controller is broken? Anyway to check this?

Maybe. Really weird it runs on battery but not USB. I'm looking through the schematic for that board:
https://learn.adafruit.com/adafruit-fea ... #schematic
the power input and voltage regulator is in the upper left. VBUS is USB and VBAT is battery. They both pretty much go straight into the voltage regulator, so there's very little difference between the two. And you got it to run with power coming in on VBAT (with the LiPo) and VBUS (with the RPi supply). If you have a multimeter, we could test some voltages just to make sure the power is OK.

Sure, just tell me what to measure.

adafruit_support_carter wrote:It seems more like it has something to do with the data comms. Maybe there's an issue with the firmware loaded on the 32u4? You mention trying three different computers. Can you provide more info on what happened with those? What OS were they, what they did, etc.

Not sure about the firmware since I also tried a factory reset which should fix this, right?
I tried my laptop running debian buster/sid, my desktop running Windows 7 and another laptop running Windows 10.
For all three the red LED next to the USB-jack starting pulsating for a few (around 9 I think) seconds and then just turned off.
The red LED next to the bluetooth module keeps blinking (it blinks three times).
This is independent fro the arduino IDE. under debian I recorded the connection log posted above.

badfruit
 
Posts: 7
Joined: Mon Jun 11, 2018 7:29 am

Re: Feather 32u4 Can not upload - DOA?

by adafruit2 on Thu Jun 14, 2018 3:31 pm

i think what you are seeing is normal, you're seeing the bootloader appear and disappear after 9 second timeout. you just need to perform this step - until you get blink uploaded

https://learn.adafruit.com/adafruit-fea ... help#faq-4

its keep to have verbose on and reset ONLY when its trying to upload! let it look for ports for a few seconds then click reset
if its still not working please post up the error box text again :)

adafruit2
Site Admin
 
Posts: 17502
Joined: Fri Mar 11, 2005 7:36 pm

Re: Feather 32u4 Can not upload - DOA?

by badfruit on Thu Jun 14, 2018 4:29 pm

If this is normal, why does the LED stay on when powering the board via LiPo or USB power supply?


I have already tried the verbsoe upload a million times. As explained above, the board disconnects during the upload so the upload just times out after a few minutes.

Code: Select all | TOGGLE FULL SIZE
PORTS {/dev/ttyACM0, /dev/ttyACM1, /dev/ttyACM2, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyACM1, /dev/ttyACM2, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyACM1, /dev/ttyACM2, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyACM1, /dev/ttyACM2, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyACM1, /dev/ttyACM2, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyACM1, /dev/ttyACM2, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyACM1, /dev/ttyACM2, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyACM1, /dev/ttyACM2, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyACM1, /dev/ttyACM2, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyACM1, /dev/ttyACM2, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyACM1, /dev/ttyACM2, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyACM1, /dev/ttyACM2, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyACM1, /dev/ttyACM2, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyACM1, /dev/ttyACM2, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyACM1, /dev/ttyACM2, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyACM1, /dev/ttyACM2, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyACM1, /dev/ttyACM2, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyACM1, /dev/ttyACM2, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyACM1, /dev/ttyACM2, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyACM1, /dev/ttyACM2, /dev/ttyACM3, /dev/ttyS0, } => {/dev/ttyACM3, }
Found upload port: /dev/ttyACM3
/home/jan/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino9/bin/avrdude -C/home/jan/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino9/etc/avrdude.conf -v -patmega32u4 -cavr109 -P/dev/ttyACM3 -b57600 -D -Uflash:w:/tmp/arduino_build_238400/Blink_w_libs.ino.hex:i

avrdude: Version 6.3, compiled on Jan 17 2017 at 11:00:16
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/home/jan/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino9/etc/avrdude.conf"
         User configuration file is "/home/jan/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyACM3
         Using Programmer              : avr109
         Overriding Baud Rate          : 57600
avrdude: ser_open(): can't open device "/dev/ttyACM3": No such file or directory

avrdude done.  Thank you.

Problem beim Hochladen auf das Board. Hilfestellung dazu unter http://www.arduino.cc/en/Guide/Troubleshooting#upload.

badfruit
 
Posts: 7
Joined: Mon Jun 11, 2018 7:29 am

Re: Feather 32u4 Can not upload - DOA?

by adafruit2 on Thu Jun 14, 2018 5:03 pm

hmm can you try another kind of computer - not linux? just cause we dont test a lot with linux and the fact that the device disappears is odd

adafruit2
Site Admin
 
Posts: 17502
Joined: Fri Mar 11, 2005 7:36 pm

Re: Feather 32u4 Can not upload - DOA?

by adafruit_support_carter on Thu Jun 14, 2018 5:07 pm

I think we've tried that already. :(
I tried my laptop running debian buster/sid, my desktop running Windows 7 and another laptop running Windows 10.
For all three the red LED next to the USB-jack starting pulsating for a few (around 9 I think) seconds and then just turned off.

adafruit_support_carter
 
Posts: 7037
Joined: Tue Nov 29, 2016 2:45 pm

Re: Feather 32u4 Can not upload - DOA?

by adafruit2 on Thu Jun 14, 2018 5:29 pm

ooh ok well lets replace it then email support@adafruit and we'll see if that helps - i'm not sure it will because if it enumerates the hardware is likely good - but its worth a try

adafruit2
Site Admin
 
Posts: 17502
Joined: Fri Mar 11, 2005 7:36 pm

Re: Feather 32u4 Can not upload - DOA?

by badfruit on Fri Jun 15, 2018 3:43 am

I ordered the board from your german retailer exp-tech.de .
Should I just contact their support and link this thread?

badfruit
 
Posts: 7
Joined: Mon Jun 11, 2018 7:29 am

Re: Feather 32u4 Can not upload - DOA?

by adafruit_support_carter on Fri Jun 15, 2018 11:35 am

You can email support@adafruit.com with a link to this thread and they can take care of you.

adafruit_support_carter
 
Posts: 7037
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.