Metro Grand Central not Connecting to Linux

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
randyb2
 
Posts: 3
Joined: Sun Oct 06, 2013 5:24 pm

Metro Grand Central not Connecting to Linux

Post by randyb2 »

Hello,

Look for some help with Metro Grand Central USB disconnecting problems with Linux Devuan (Debian 9) using udev.

dmesg output

Code: Select all

[ 2690.566436] usb 5-1: new full-speed USB device number 103 using uhci_hcd
[ 2690.959439] usb 5-1: New USB device found, idVendor=239a, idProduct=8032
[ 2690.959443] usb 5-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 2690.959445] usb 5-1: Product: Grand Central M4 Express
[ 2690.959447] usb 5-1: Manufacturer: Adafruit Industries LLC
[ 2690.959449] usb 5-1: SerialNumber: 546586EE3353533502020243E3E0xxxx
[ 2690.964492] cdc_acm 5-1:1.0: ttyACM0: USB ACM device
[ 2690.969479] usb-storage 5-1:1.2: USB Mass Storage device detected
[ 2690.969852] scsi host6: usb-storage 5-1:1.2
[ 2690.979633] input: Adafruit Industries LLC Grand Central M4 Express as /devices/pci0000:00/0000:00:1a.2/usb5/5-1/5-1:1.3/0003:239A:8032.02DF/input/input751
[ 2691.039135] hid-generic 0003:239A:8032.02DF: input,hidraw3: USB HID v1.11 Keyboard [Adafruit Industries LLC Grand Central M4 Express] on usb-0000:00:1a.2-1/input3
[ 2691.039227] usb 5-1: USB disconnect, device number 103
The disconnecting will continue to loop. (See last line of dmesg output. 103 and going). I have two boards and both have the same problem. Using Arduino IDE. I can program other boards with no problems. It's just this board disconnects. I don't know why it's disconnecting. Does anyone have udev rule for this board? Or our you having the same problem?

Thank
Randy :-)

User avatar
danhalbert
 
Posts: 4688
Joined: Tue Aug 08, 2017 12:37 pm

Re: Metro Grand Central not Connecting to Linux

Post by danhalbert »

Some Grand Central boards were shipped with the on-board crystal installed upside down. See pictures in this post: viewtopic.php?f=63&t=152105&p=750925#p750925. This can mess up the USB timing. Take a look at your board and see if that's the issue.

If not (if crystal is installed correctly):

What is the host computer you're using? Is it a PC (x64) or is it some other Linux board?

Which other boards work OK?

randyb2
 
Posts: 3
Joined: Sun Oct 06, 2013 5:24 pm

Re: Metro Grand Central not Connecting to Linux

Post by randyb2 »

Other boards are Arduino Due R3, Adafruit Arduino Pro Mini, Gameduino 3, etc... The the on-board crystal is OK. The problem is only with Metro Grand Central connecting and disconnecting loop.

randyb2
 
Posts: 3
Joined: Sun Oct 06, 2013 5:24 pm

Re: Metro Grand Central not Connecting to Linux

Post by randyb2 »

I can get the board to connect to Linux by holding down the reset button. (30 sec or maybe longer) Then NeoPixel will be solid green, the L - Red LED will be a slow glowing pulse and ON led will be green. The storage will show as GCM4BOOT with 3 files: CURRENT.UF2 INDEX.HTM and INFO_UF2.TXT The board is connected to the system /dev/ttyACM0 and we have access to storage GCM4BOOT. It looks like the board is not running the default program with NeoPixel light changing colors. I don't know what state the board is in, but think this boot load/access mode. For Linux user make sure to umount the Metro storage device before discounting the USB (Power Off).

So far this is the only way I can get to board stop the loop of connecting and discounting. It looks like maybe a problem with the storage on the board and Linux. Maybe disabling the storage connecting with udev rule may solve the problem. When I get some more time I will try to upload a program.

Code: Select all

[24289.809562] usb 5-1: new full-speed USB device number 10 using uhci_hcd
[24290.417594] usb 5-1: New USB device found, idVendor=239a, idProduct=0031
[24290.417597] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[24290.417600] usb 5-1: Product: Grand Central M4 Express
[24290.417602] usb 5-1: Manufacturer: Adafruit Industries
[24290.417604] usb 5-1: SerialNumber: A522D0AA5335353334202020FF180D1D
[24290.419703] cdc_acm 5-1:1.0: ttyACM0: USB ACM device
[24290.421964] usb-storage 5-1:1.2: USB Mass Storage device detected
[24290.422612] scsi host6: usb-storage 5-1:1.2
[24290.428803] hid-generic 0003:239A:0031.0009: hiddev0,hidraw3: USB HID v1.00 Device [Adafruit Industries Grand Central M4 Express] on usb-0000:00:1a.2-1/input3
[24291.453680] scsi 6:0:0:0: Direct-Access     Grand Ce ntral M4 Express 1.00 PQ: 0 ANSI: 2
[24291.454723] sd 6:0:0:0: Attached scsi generic sg1 type 0
[24291.459658] sd 6:0:0:0: [sdb] 8000 512-byte logical blocks: (4.10 MB/3.91 MiB)
[24291.462647] sd 6:0:0:0: [sdb] Write Protect is off
[24291.462651] sd 6:0:0:0: [sdb] Mode Sense: 0f 00 00 00
[24291.465760] sd 6:0:0:0: [sdb] No Caching mode page found
[24291.465766] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[24291.488676]  sdb:
[24291.507604] sd 6:0:0:0: [sdb] Attached SCSI removable disk
 

User avatar
danhalbert
 
Posts: 4688
Joined: Tue Aug 08, 2017 12:37 pm

Re: Metro Grand Central not Connecting to Linux

Post by danhalbert »

Once you see GCM4BOOT, try loading Blink or something simple on the board. Make sure the board is set in Arduino to Grand Central, and make sure the Adafruit SAMD board support package up to date.

Locked
Please be positive and constructive with your questions and comments.

Return to “Metro, Metro Express, and Grand Central Boards”