Metro M4 express USB modem does not appear in dev

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.
User avatar
jamesfreeman
 
Posts: 25
Joined: Sun May 15, 2011 3:17 pm

Metro M4 express USB modem does not appear in dev

Post by jamesfreeman »

Hi -

My Metro M4 Express does not create a modem in /dev on my MacBook Pro mid-2012, running Mac OS X Catalina 10.15.7. Consequently, I can not open the Arduino Serial Monitor.

The only cu devices in the MacBook /dev are cu.Bluetooth-Incoming-Port and cu.iPhone-WirelessiAPv2

The Metro M4 shows up properly in the Arduino IDE as "Adafruit Metro M4 (SAMD 51)"
Double clicking the Metro M4 Express reset button mounts a boot drive on the
Mac desktop. The INFO_UF2.txt file contains:
UF2 Bootloader v3.14.0 SFHWRO
Model: Metro M4 Express
Board-ID: SAMD51J19A-Metro-v0

I installed the FTDI USB Serial Extension 1_5_0 on the MacBook Pro, but that did not help.

Could I have a defective Metro M4 Express?

Thanks,
Jim Freeman

User avatar
dastels
 
Posts: 15658
Joined: Tue Oct 20, 2015 3:22 pm

Re: Metro M4 express USB modem does not appear in dev

Post by dastels »

OK, you have the latest bootloader. The Metro M4 doesn't use an FTDI chip, it has native USB so you don't need the extension.

It seems to be working as you can get the boot drive and it shows up in Arduino... so USB communication is fine.

Can you load a sketch onto it? What does Arduino have in the port menu?

Dave

User avatar
jamesfreeman
 
Posts: 25
Joined: Sun May 15, 2011 3:17 pm

Re: Metro M4 express USB modem does not appear in dev

Post by jamesfreeman »

Hi Dave -

Yes, no problem loading or running a sketch.
The Arduino IDE port menu only offers cu.Bluetooth-Incoming-Port or cu.iPhone-WirelessiAPv2

Thanks for letting mr know that the FTDI driver is not required.

What would you suggest I do next for debugging?

Thanks,
Jim

User avatar
dastels
 
Posts: 15658
Joined: Tue Oct 20, 2015 3:22 pm

Re: Metro M4 express USB modem does not appear in dev

Post by dastels »

So what do you have set as port in order to upload sketches?

If sketches will load I'm not sure why there's a problem.

Dave

User avatar
jamesfreeman
 
Posts: 25
Joined: Sun May 15, 2011 3:17 pm

Re: Metro M4 express USB modem does not appear in dev

Post by jamesfreeman »

Hi Dave -

I'm sorry - Sketches aren't loading.
The only ports are /dev/cu.Bluetooth-Incoming-Port and /dev/cu.iPhone-WirelessAPv2

The error messages are:

Arduino: 1.8.19 (Mac OS X), Board: "Adafruit Metro M4 (SAMD51), Enabled, 120 MHz (standard), Small (-Os) (standard), 50 MHz (standard), Arduino, Off"

Sketch uses 11076 bytes (2%) of program storage space. Maximum is 507904 bytes.
Couldn't find a Board on the selected port. Check that you have the correct port selected. If it is correct, try pressing the board's reset button after initiating the upload.

Thanks,
Jim

User avatar
dastels
 
Posts: 15658
Joined: Tue Oct 20, 2015 3:22 pm

Re: Metro M4 express USB modem does not appear in dev

Post by dastels »

OK, that's more consistent with the rest of what you're seeing.

Are you using a known good USB data cable? Not a power/charge cable.

Dave

User avatar
jamesfreeman
 
Posts: 25
Joined: Sun May 15, 2011 3:17 pm

Re: Metro M4 express USB modem does not appear in dev

Post by jamesfreeman »

Yes, I've tried every micro USB cable in the house.

User avatar
dastels
 
Posts: 15658
Joined: Tue Oct 20, 2015 3:22 pm

Re: Metro M4 express USB modem does not appear in dev

Post by dastels »

Right, you get the boot drive, so that cable is good.

Do you get an appropriate port in dev when you have the boot drive?

Dave

User avatar
dastels
 
Posts: 15658
Joined: Tue Oct 20, 2015 3:22 pm

Re: Metro M4 express USB modem does not appear in dev

Post by dastels »

Arduino: 1.8.19 (Mac OS X), Board: "Adafruit Metro M4 (SAMD51), Enabled, 120 MHz (standard), Small (-Os) (standard), 50 MHz (standard), Arduino, Off"

Sketch uses 11076 bytes (2%) of program storage space. Maximum is 507904 bytes.
Couldn't find a Board on the selected port. Check that you have the correct port selected. If it is correct, try pressing the board's reset button after initiating the upload.
Did you try resetting or double-resetting as suggested in the message?

Dave

User avatar
jamesfreeman
 
Posts: 25
Joined: Sun May 15, 2011 3:17 pm

Re: Metro M4 express USB modem does not appear in dev

Post by jamesfreeman »

Yes, after a few tries I can get the boot drive to mount, so we know that the reset button is working and the USB cable is working. But then I lose the modem device soon after.
It appears that the Metro M4 Express is sometimes capable of making a modem connection, but soon loses it.
Is it possible that I have a defective board?
Could I send it back to you to be tested?

On my last try I got the following errors:

Arduino: 1.8.19 (Mac OS X), Board: "Adafruit Metro M4 (SAMD51), Enabled, 120 MHz (standard), Small (-Os) (standard), 50 MHz (standard), Arduino, Off"

Sketch uses 11232 bytes (2%) of program storage space. Maximum is 507904 bytes.
Device : ATSAMD51x19
Version : v1.1 [Arduino:XYZ] Jan 15 2022 11:54:47
Address : 0x0
Pages : 1024
Page Size : 512 bytes
Total Size : 512KB
Planes : 1
Lock Regions : 32
Locked : none
Security : false
BOD : false
BOR : true
Write 11488 bytes to flash (23 pages)
[==============================] 100% (23/23 pages)
Done in 0.163 seconds
Verify 11488 bytes of flash
[==============================] 100% (23/23 pages)
Verify successful
Done in 0.279 seconds
processing.app.SerialException: Error opening serial port '/dev/cu.usbmodem14201'.
at processing.app.Serial.<init>(Serial.java:152)
at processing.app.Serial.<init>(Serial.java:82)
at processing.app.SerialMonitor$2.<init>(SerialMonitor.java:132)
at processing.app.SerialMonitor.open(SerialMonitor.java:132)
at processing.app.AbstractMonitor.resume(AbstractMonitor.java:132)
at processing.app.Editor.resumeOrCloseSerialMonitor(Editor.java:2126)
at processing.app.Editor.access$1300(Editor.java:116)
at processing.app.Editor$UploadHandler.run(Editor.java:2095)
at java.lang.Thread.run(Thread.java:748)
Caused by: jssc.SerialPortException: Port name - /dev/cu.usbmodem14201; Method name - openPort(); Exception type - Port not found.
at jssc.SerialPort.openPort(SerialPort.java:167)
at processing.app.Serial.<init>(Serial.java:141)
... 8 more
Error opening serial port '/dev/cu.usbmodem14201'.


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

User avatar
dastels
 
Posts: 15658
Joined: Tue Oct 20, 2015 3:22 pm

Re: Metro M4 express USB modem does not appear in dev

Post by dastels »

Huh. So it's uploading and verifying, but then it can't find the port.

Is everything to do with Arduino up to date?

Dave

User avatar
jamesfreeman
 
Posts: 25
Joined: Sun May 15, 2011 3:17 pm

Re: Metro M4 express USB modem does not appear in dev

Post by jamesfreeman »

Yes, thanks.

Arduino IDE 1.8.19, with all updates applied.
I use the IDE and the Mac constantly for Ardunio UNO and Arduino Mega projects. No glitches of any sort.

I really appreciate your prompt responses on all of this...

Jim

User avatar
dastels
 
Posts: 15658
Joined: Tue Oct 20, 2015 3:22 pm

Re: Metro M4 express USB modem does not appear in dev

Post by dastels »

I'm going to get some more eyes on this.

Dave

User avatar
jamesfreeman
 
Posts: 25
Joined: Sun May 15, 2011 3:17 pm

Re: Metro M4 express USB modem does not appear in dev

Post by jamesfreeman »

Thanks - I'm very impressed with the service.

I'll be glad to send the board back to you at my expense...

User avatar
jamesfreeman
 
Posts: 25
Joined: Sun May 15, 2011 3:17 pm

Re: Metro M4 express USB modem does not appear in dev

Post by jamesfreeman »

Hi - Following up... Is there any progress on this?

Thanks,
Jim

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

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