0

Metro won't connect over USB
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Metro won't connect over USB

by rustymyers on Thu Apr 26, 2018 6:03 pm

I'm on High Sierra 10.13.4 following the guide for setup:
https://learn.adafruit.com/experimenter ... /mac-setup

I've installed both the driver packages (Virtual COM Port Driver & USB to UART Bridge VCP Driver) and rebooted, but I can't get the Metro to show up in Arduino IDE, System Profiler, or the Terminal. I've tried 10 different USB cables and finally found two that make any difference. With what I assume is a good USB cable, I can now see "CP2104 USB to UART Bridge Controller" in the System Profiler, but still nothing in /dev or the IDE.

Metro is happily blinking along while I switch cables, reset it, and ponder the issue. What am I missing?

Thanks,
Rusty

rustymyers
 
Posts: 9
Joined: Thu Apr 26, 2018 5:28 pm

Re: Metro won't connect over USB

by adafruit_support_mike on Fri Apr 27, 2018 12:31 am

Just to confirm, which version of the Metro are you using? We have three different microcontrollers in the family now.

adafruit_support_mike
 
Posts: 53119
Joined: Thu Feb 11, 2010 2:51 pm

Re: Metro won't connect over USB

by rustymyers on Fri Apr 27, 2018 6:42 am

I purchased the "Adafruit METRO 328 with Headers - ATmega328" with the PID: 2488.

rustymyers
 
Posts: 9
Joined: Thu Apr 26, 2018 5:28 pm

Re: Metro won't connect over USB

by adafruit_support_mike on Tue May 01, 2018 4:35 am

Thank you. That one is built from the same reference circuit as an Arduino Uno, and should program the same way.

Do you get the triple-flash described here when you click the reset button?

https://learn.adafruit.com/experimenter ... ader-check

adafruit_support_mike
 
Posts: 53119
Joined: Thu Feb 11, 2010 2:51 pm

Re: Metro won't connect over USB

by rustymyers on Tue May 01, 2018 8:09 am

Yes, I see the three flashes on reset. After the three quick flashes, the onboard LED flashes.

rustymyers
 
Posts: 9
Joined: Thu Apr 26, 2018 5:28 pm

Re: Metro won't connect over USB

by adafruit_support_mike on Wed May 02, 2018 12:30 am

Okay, that sounds like the bootloader is working.

Open System Preferences and select the Network pane. Do you see an item for the CP2104, or anything similar?

adafruit_support_mike
 
Posts: 53119
Joined: Thu Feb 11, 2010 2:51 pm

Re: Metro won't connect over USB

by rustymyers on Wed May 02, 2018 9:35 am

I do not see anything in Network Preferences after connecting the Metro.

rustymyers
 
Posts: 9
Joined: Thu Apr 26, 2018 5:28 pm

Re: Metro won't connect over USB

by adafruit_support_mike on Thu May 03, 2018 1:45 am

Hmm.. there should at least be a USB-modem interface in the list along the left side of the pane. Failures to create a device file often trace back to too many cached interfaces.

As a sanity check, do you have any other known-working USB device that you can use to make sure the cable is carrying the data signals properly?

adafruit_support_mike
 
Posts: 53119
Joined: Thu Feb 11, 2010 2:51 pm

Re: Metro won't connect over USB

by rustymyers on Thu May 03, 2018 9:07 pm

Yes, other USB devices will appear in the Finder and System Report when connected to the same cable.

rustymyers
 
Posts: 9
Joined: Thu Apr 26, 2018 5:28 pm

Re: Metro won't connect over USB

by adafruit_support_mike on Tue May 08, 2018 3:49 am

At this point we're pretty much down to obscure problems in the bootloader. Do you have an in-circuit programmer or another Arduino you can use as a temporary ISP?

adafruit_support_mike
 
Posts: 53119
Joined: Thu Feb 11, 2010 2:51 pm

Re: Metro won't connect over USB

by rustymyers on Tue May 08, 2018 8:33 am

Yes, I do have an Arduino Uno that I've been using for a while. It works just fine and I've been using it for development.

rustymyers
 
Posts: 9
Joined: Thu Apr 26, 2018 5:28 pm

Re: Metro won't connect over USB

by adafruit_support_mike on Wed May 09, 2018 3:10 am

Okay, good. Try using these instructions to write a new bootloader to the Metro's microcontroller:

https://www.arduino.cc/en/Tutorial/ArduinoISP

The 328 is made from the same reference design as the Uno, so all the instructions should work as-is.

adafruit_support_mike
 
Posts: 53119
Joined: Thu Feb 11, 2010 2:51 pm

Re: Metro won't connect over USB

by rustymyers on Wed Jun 13, 2018 1:01 pm

Just now getting around to trying this. I'm running into some errors that I'm unsure of how to get around.

Following the guide, I've got my Arduino Uno as the Programmer and Metro as the Target hooked up together with this wiring:
Image
Wow that's big, sorry!

I've opened the ArduinoISP firmware from the Examples.
In the Tools > Board I selected "Arduino/Genuino Uno"
In the Tools > Port menu I selected the "/dev/cu.usbmodem1411" that corresponds with my programmer.
I upload the ArduinoISP sketch.
I connected the boards following the diagram above.
I selected the "Arduino as ISP" in the Tools > Programmer menu.
I selected the "Burn Bootloader" command.
[/list]

If I try to upload the ArduinoISP sketch and then select the Burn Bootloader, after the boards restart, I get the error:

avrdude: ser_open(): can't open device "/dev/cu.usbmodem1411": Resource busy
Error while burning bootloader.


If I then disconnect and reconnect the Arduino (Programmer) to the computer with the USB cable, I get the following error while trying to Burn Bootloader:

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x14

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x01
avrdude: stk500_initialize(): (a) protocol error, expect=0x14, resp=0x10
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.

avrdude: stk500_disable(): unknown response=0x12
Error while burning bootloader.


I'm unsure of what to try next.
Thanks

rustymyers
 
Posts: 9
Joined: Thu Apr 26, 2018 5:28 pm

Re: Metro won't connect over USB

by adafruit_support_mike on Thu Jun 14, 2018 3:37 am

Just to confirm, are you connecting the USB cable to the programmer, or to the target?

adafruit_support_mike
 
Posts: 53119
Joined: Thu Feb 11, 2010 2:51 pm

Re: Metro won't connect over USB

by rustymyers on Thu Jun 14, 2018 8:19 am

I have the USB cable connected to the Programmer.

rustymyers
 
Posts: 9
Joined: Thu Apr 26, 2018 5:28 pm

Please be positive and constructive with your questions and comments.