Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32 not showing serial port after Mac installation #1084

Closed
danthegoodman1 opened this issue Feb 6, 2018 · 136 comments
Closed

ESP32 not showing serial port after Mac installation #1084

danthegoodman1 opened this issue Feb 6, 2018 · 136 comments
Labels
Type: For reference Common questions & problems

Comments

@danthegoodman1
Copy link

Hardware:

Board: ESP32 Dev Module
Core Installation/update date: Yesterday
IDE name: Arduino IDE
Flash Frequency: N/A
Upload Speed: N/A

Description:

So I am using an ESP32 Dev Module, and a 2017 MBP 13" and after following the arduino installation tutorial for the ESP32 I have the boards, but the ESP32 dev module does not show up as a serial port.

Any help would be great, thanks.

@huming2207
Copy link

Have you installed the serial port driver?

Please run this command ls /dev | grep tty and paste the result here.

@danthegoodman1
Copy link
Author

I have not installed any serial port drivers (I think?)
Here is the absurd output:
tty tty.Bluetooth-Incoming-Port tty.MALS tty.SOC ttyp0 ttyp1 ttyp2 ttyp3 ttyp4 ttyp5 ttyp6 ttyp7 ttyp8 ttyp9 ttypa ttypb ttypc ttypd ttype ttypf ttyq0 ttyq1 ttyq2 ttyq3 ttyq4 ttyq5 ttyq6 ttyq7 ttyq8 ttyq9 ttyqa ttyqb ttyqc ttyqd ttyqe ttyqf ttyr0 ttyr1 ttyr2 ttyr3 ttyr4 ttyr5 ttyr6 ttyr7 ttyr8 ttyr9 ttyra ttyrb ttyrc ttyrd ttyre ttyrf ttys0 ttys000 ttys001 ttys002 ttys1 ttys2 ttys3 ttys4 ttys5 ttys6 ttys7 ttys8 ttys9 ttysa ttysb ttysc ttysd ttyse ttysf ttyt0 ttyt1 ttyt2 ttyt3 ttyt4 ttyt5 ttyt6 ttyt7 ttyt8 ttyt9 ttyta ttytb ttytc ttytd ttyte ttytf ttyu0 ttyu1 ttyu2 ttyu3 ttyu4 ttyu5 ttyu6 ttyu7 ttyu8 ttyu9 ttyua ttyub ttyuc ttyud ttyue ttyuf ttyv0 ttyv1 ttyv2 ttyv3 ttyv4 ttyv5 ttyv6 ttyv7 ttyv8 ttyv9 ttyva ttyvb ttyvc ttyvd ttyve ttyvf ttyw0 ttyw1 ttyw2 ttyw3 ttyw4 ttyw5 ttyw6 ttyw7 ttyw8 ttyw9 ttywa ttywb ttywc ttywd ttywe ttywf

@mistergreen
Copy link

Your board might use USB to UART. You'd need another driver for that.
https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers

@danthegoodman1
Copy link
Author

Your board might use USB to UART. You'd need another driver for that.
Will try that tomorrow and drop in here how it goes!

@mistergreen
Copy link

My ESP32 didn't show up on my MAC either until I installed that driver.

@danthegoodman1
Copy link
Author

So it doesn't seem like it is installing them on my laptop. The files from the uninstall script are not there.

@richardfuchs
Copy link

So it doesn't seem like it is installing them on my laptop.

For MacOS X 10.9 and 10.10, see the folder called "Legacy MacVCP Driver".
It may also help if you drag&drop out the file "Silicon Labs VCP Driver.pkg" to any folder (e.g. Downloads) and start it from there

@JohnGEyles
Copy link

JohnGEyles commented Feb 27, 2018

Well, it crashes my OSX 10.11 machine when I try to upload my sketch (filed a separate issue awhile back, but no answers: #983).

@mistergreen
Copy link

If your OS X is crashing, it could be because of the USB driver. My OS X crashed when I plugged in my ESP8266.
Try https://github.com/adrianmihalko/ch340g-ch34g-ch34x-mac-os-x-driver

@WeiboboHe
Copy link

Hi danthegoodman1. I almost met the same problem with ESP32. Did you figures it out now?

@JohnGEyles
Copy link

FWIW (I think it's mentioned in the other thread I started), mine worked when I used one of the USB ports on the back of my Apple monitor (a hub there, presumably) instead of the ones on the front of my Mac Pro tower. I guess this wouldn't apply to the OP's Macbook Pro though. Maybe try it with a powered hub ? Try a shorter thicker cable ? Add a battery to the ESP32 so it has plenty of power ?

@Mr-taweep
Copy link

Goog that "richardfuchs"

@bakzs
Copy link

bakzs commented Jun 21, 2018

Hi, I have the same problem too. downloaded the recommended silicon labs drivers for usb to uart but still no luck. My Mac OS version is High Sierra 10.13.5.

Does anyone have the same problem too?

@Chris2060
Copy link

@bakzs Yeah I do have the exact same problem on my macbook pro... I have a Esp 32 Devkit V1 and installed the driver from espressif and the recomended one above, but I still cant see it in the arduino IDE. Im sad...
Someone any idea how to fix it?

@JohnGEyles
Copy link

Try the various USB ports, try a different cable, try a USB hub ...

@Chris2060
Copy link

@JohnGEyles Thanks for your advice!

I used the port at the back right with a different usb cable after a restart of the laptop. Now it works... ;-)

@n8leon
Copy link

n8leon commented Jul 4, 2018

Installing the silabs Silicon Labs VCP Driver.pkg worked for me also. 👍
(on OS X 10.11.6)

Seems obvious that we need the drivers, but I thought I already had them after going thru the espressif/arduino-esp32 install steps.
e.g. My "System Report / Hardware / USB" showed
CP2102 USB to UART Bridge Controller driver

For others' future reference, you should see something like:
n8s-iMac:nleon$ ls -al /dev/tty.*
crw-rw-rw- 1 root wheel 18, 2 Jul 4 11:14 /dev/tty.SLAB_USBtoUART

Regardless, thanks for the pointer!

@AcrimoniousMirth
Copy link

AcrimoniousMirth commented Jul 10, 2018

Having this issue too.
I downloaded all the drivers I found from different sources including the ones mentioned here. It flashed up as a recognised device briefly but then vanished again and I can't reproduce the result.
My board doesn't have a visible chip so I'm assuming its under the RF shield. Navigating to About this Mac → System Report → USB shows a "Composite Device" with Product ID "0xea60" by Silicon Labs so I hunted that down and its one of the CP2102s...

Still hunting.

EDIT: Running High Sierra 10.13.6

@mattcony
Copy link

Anyone notice MAC drivers were updated yesterday - still no joy though

CP210x Macintosh OSX VCP Driver 5.0.5 - July 13, 2018

Known Issues and Limitations

This release includes the Macintosh OSX driver for 64 bit Intel 
Macintosh computers running MacOS X 10.11 or greater.
For MacOS X 10.9 and 10.10, see the folder called "Legacy MacVCP Driver".

@AcrimoniousMirth
Copy link

Yeah, so I’ve tried identifying the device several other ways and it keeps showing up the same. My father’s old MacBook Pro also identifies it the same but when trying to view it in the Arduino IDE can’t find it, gets the same SOC and MALS.
Haven’t tried a Windoze machine because don’t have one handy!

@AcrimoniousMirth
Copy link

I’m actually wondering if this is more an issue with the Arduino IDE? Anyone had any luck with other IDEs?

@mattcony
Copy link

Just caved and tried a win8.1 machine, up and running in 15min. I thought my new ESP32 board was bad, tried every usb cable in the house with no Joy on my MAC. Windows machine is fine, my MAC cannot even see the board in terminal so has to be driver related still.

@danthegoodman1
Copy link
Author

danthegoodman1 commented Jul 14, 2018 via email

@AcrimoniousMirth
Copy link

AcrimoniousMirth commented Jul 14, 2018

Guys there are 2 drivers, the CP210x and CH340. I got those installed and
now all esp8266 and esp32 work with my 2017 mbp.

That’s interesting, don’t think I came across the CH340 driver being needed. I’ll install that soon and get back to you with my results too.

EDIT: Done and no change. I actually had the drivers installed before but reinstalled them.

EDIT#2: Actually there is a change. Didn’t show up any differently in any of my Mac’s native searches but finally appeared in the Arduino IDE as /dev/cu.SLAB_USBtoUART

EDIT#3: Has since vanished from the list again. I don’t know why, I didn’t unplug it or anything, I just went to double check and it was gone. This is somewhat infuriating.

@mattcony looks like it could be. Briefly wondered if emulation would work but doesn’t feel like it.

@kiranshashiny
Copy link

kiranshashiny commented Jul 17, 2018

I am unable to see the SiLabs driver for the ESP32 Port on my Mac OS - High Sierra 10.13.3 for the ESP32.
After going over others comments above - I installed both the CP2102 and the CH340G ( since I play with the Arduino and ESP8266 ) but the port for the ESP32 on the Arduino IDE is not showing up after installing the driver.

I have multiple USB ports and so I plugged in the ESP8266 on the other USB Port - and I got the "cu.wchusbserial1410" and this is good. But the /dev/cu.SLAB_USBxxx for the ESP32 is not showing !
I was thinking maybe the USB Port caused it - so I tried both the USB Ports - no luck.

Note : I rebooted my Mac after installing the driver.
See below - the port for the ESP8266 shows up.

$ ls -l /dev/cu*
crw-rw-rw- 1 root wheel 21, 1 Jul 17 20:06 /dev/cu.Bluetooth-Incoming-Port
crw-rw-rw- 1 root wheel 21, 3 Jul 17 20:10 /dev/cu.wchusbserial1410

The ESP32 has the print DEVKIT1 on the back of the microcontroller

@lionep
Copy link

lionep commented Jul 22, 2018

I had the same issue on a Macbook pro 2017.
I was using USB-C to USB-A adaptor, and USB-A to micro usb cable.
I added a basic usb 2.0 hub between the adaptor and the cable, and it's now detected.

@Odi55555
Copy link

Had the same issue with bei 2017 MBP. I bought a new USB A to Micro USB cable and now it works.

@JakeHartnell
Copy link

Had the same issue on a 2018 MBP, spent ages trying different cables and reinstalling drivers. On my Linux machine it just works but I have to use the MBP for work so to get it working:

Note, you may not need all those steps; I went overboard cause I am also trying to get a Linux partition working. Anyway, hope that helps someone. : )

@lbernstone
Copy link
Contributor

@JakeHartnell : Seems like it would just be easier to install virtualbox and a linux vm.

@adddog
Copy link

adddog commented Sep 2, 2018

Silabs drivers worked for me. Had to run the uninstaller.sh and then, in my case, install Legacy.

Now I see /dev/tty.SLAB_USBtoUART in Arduino IDE.

@tjsadiq
Copy link

tjsadiq commented Jun 27, 2021

Cable for me, glad I read through this thread! Running a MacBook Pro (13-inch, 2017, Two Thunderbolt 3 ports) and 11.4. My other cables work with other boards (Adafruit M0, MKR 1010) so I was shocked. Did the driver updates to no avail. Then used a 12" NIMASO USB-c to USB-C with a ARKTEK adapter and it worked, showing up as /dev/cu.usbserial-0001. Still wouldn't load the sketch--had to hold the Boot button to get the sketch to load. Hope it helps someone!

@stale
Copy link

stale bot commented Aug 28, 2021

[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: Stale Issue is stale stage (outdated/stuck) label Aug 28, 2021
@jginsburgn
Copy link

I had the same issue on a Macbook pro 2017.
I was using USB-C to USB-A adaptor, and USB-A to micro usb cable.
I added a basic usb 2.0 hub between the adaptor and the cable, and it's now detected.

That works!!!!!!!!!!!

IMG_4109

@stale
Copy link

stale bot commented Sep 14, 2021

[STALE_CLR] This issue has been removed from the stale queue. Please ensure activity to keep it openin the future.

@stale stale bot removed the Status: Stale Issue is stale stage (outdated/stuck) label Sep 14, 2021
@Boxolymp
Copy link

Boxolymp commented Dec 6, 2021

aaand still, the CABLE

@Carle2
Copy link

Carle2 commented Dec 8, 2021 via email

@Boxolymp
Copy link

Boxolymp commented Dec 8, 2021 via email

@jginsburgn
Copy link

jginsburgn commented Dec 8, 2021

Hi do you have a link to buy this cable for me not work and I don't want to buy 1000 cables ;)

I'd recommend that you make sure that the cable you buy can transfer data. There are certain cables that can only charge.

@jerik
Copy link

jerik commented Dec 8, 2021

For me cellularline USB Data Cable for MicroUsb worked. See comment

@Carle2
Copy link

Carle2 commented Dec 9, 2021 via email

@VojtechBartoska
Copy link
Collaborator

Hello, I'm closing this issue as a problem was in cable. Marking with label "for Reference" and we will consider adding this later into our FAQ section in the documentation.

@kragrrr
Copy link

kragrrr commented Jul 23, 2022

Is there a possible solution for Apple Silicon Macs in regards to this?

@VojtechBartoska VojtechBartoska added the Type: For reference Common questions & problems label Jul 25, 2022
@jankammerath
Copy link

Is there a possible solution for Apple Silicon Macs in regards to this?

I have an M1 Pro MBP 14" 2021 with Ventura 13.1. Had the same issues as described here. The following worked for me:

  1. Installed the Silicon Legacy Driver
  2. Used a proper MicroUSB to USB-A cable (had issues with a cheapo one)
  3. Connected using a USB hub (had issues with the Apple adapter)

@arthurnn
Copy link

indeed ! changing the cable seal the deal for me

@konifer44
Copy link

Changing cable also helped 😊

@Orf1
Copy link

Orf1 commented May 10, 2023

Is there a possible solution for Apple Silicon Macs in regards to this?

I have an M1 Pro MBP 14" 2021 with Ventura 13.1. Had the same issues as described here. The following worked for me:

  1. Installed the Silicon Legacy Driver
  2. Used a proper MicroUSB to USB-A cable (had issues with a cheapo one)
  3. Connected using a USB hub (had issues with the Apple adapter)

Hey, is there any chance you could drop a link to the "Silicon Legacy Driver" you used? Having the same issue.

@baharalidurrani
Copy link

CH340C does not work using a Thunderbolt port you've to use a USB 2.0 hub

@Upskxkit
Copy link

Upskxkit commented Nov 2, 2023

Hi, I have Mac OS "Sonoma" 14.0 and it was a cable. Macbook pro 2019.

@bluemellophone
Copy link

I was able to connect to a KeeYees ESP32 with esptool.py on a Apple M1 Max MacBook Pro running macOS Sonoma (14.1.1):

  1. Download the CP210x drivers here: https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers?tab=downloads
  2. Install the standard driver, no need to use the legacy driver
  3. Approve the System Extension in Settings > Privacy & Security
  4. Reboot
  5. Verify driver system extension is running with systemextensionsctl list and look for com.silabs.cp210x [activated enabled]
  6. Connect the ESP32 to a proper micro USB to USB-A cable
  7. Connect the USB-A cable into an Apple USB-C dongle (e.g., https://support.apple.com/en-us/HT207807)
  8. Verify ESP32 TTY with ls /dev/tty.* | grep UART
  9. Verify ESP32 is up and running with esptool.py read_mac

You should see something like this:

$ esptool.py read_mac
esptool.py v4.6.2
Found 3 serial ports
Serial port /dev/cu.usbserial-0001
Connecting......
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP32
Chip is ESP32-D0WD-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: XX:XX:XX:XX:XX:XX
Uploading stub...
Running stub...
Stub running...
Hard resetting via RTS pin...

@impigra
Copy link

impigra commented Jan 19, 2024

Another issue I figured out is that there is a USB-C style connection port but only with USB-A support. There is no resistor or id chip behind the port. With an adapter from USB-A to USB-C cable it works.

@bluemellophone
Copy link

I had the same issue, but I used a different dongle / USB cable and showed right up.

@arivvid27
Copy link

I found that the issue is usually with the cable, or drivers not being installed. Once you install the drivers and the ESP32 is still in appearing the the serial ports, it is probably you are using a power only cable, instead of a data+power cable.

@Goldboter
Copy link

Goldboter commented Jun 13, 2024

I had the same problem. Read this thread a year ago for the first time. Tried the driver. Didn't work.
Then I tried just a day ago different cables USB A to micro USB cables and the most "expensive" looking one of them worked... I'm more than happy :D

@Parhosha
Copy link

Parhosha commented Jul 7, 2024

CABEL

@hoopengo
Copy link

tbh it's not working for me in 3 another pc (linux laptop, macos laptop, windows pc), but it's finally works on mac when i use adapter type-c to usb3.0 and another usb to micro-usb cabel. It's so awful..

@cris-maillo
Copy link

Another issue I figured out is that there is a USB-C style connection port but only with USB-A support. There is no resistor or id chip behind the port. With an adapter from USB-A to USB-C cable it works.

this finally worked! I tried everything else (multiple usb-c data cables) but it wasnt until I had USB A to an adapter that it worked (I have a Macbook air M1 and ESP32-WROOM-32 with the CP210x USB to UART Bridge drive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: For reference Common questions & problems
Projects
None yet
Development

No branches or pull requests