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

Open
danthegoodman1 opened this issue Feb 6, 2018 · 58 comments

Comments

@danthegoodman1
Copy link

commented Feb 6, 2018

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

This comment has been minimized.

Copy link

commented Feb 6, 2018

Have you installed the serial port driver?

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

@danthegoodman1

This comment has been minimized.

Copy link
Author

commented Feb 6, 2018

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

This comment has been minimized.

Copy link

commented Feb 6, 2018

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

This comment has been minimized.

Copy link
Author

commented Feb 6, 2018

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

This comment has been minimized.

Copy link

commented Feb 6, 2018

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

@danthegoodman1

This comment has been minimized.

Copy link
Author

commented Feb 6, 2018

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

@richardfuchs

This comment has been minimized.

Copy link

commented Feb 13, 2018

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

commented Feb 27, 2018

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

This comment has been minimized.

Copy link

commented May 5, 2018

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

@JohnGEyles

This comment has been minimized.

Copy link

commented May 5, 2018

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

This comment has been minimized.

Copy link

commented May 20, 2018

Goog that "richardfuchs"

@bakzs

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

commented Jun 23, 2018

@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

This comment has been minimized.

Copy link

commented Jun 23, 2018

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

@Chris2060

This comment has been minimized.

Copy link

commented Jun 23, 2018

@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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

commented Jul 14, 2018

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

This comment has been minimized.

Copy link

commented Jul 14, 2018

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

This comment has been minimized.

Copy link

commented Jul 14, 2018

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

@mattcony

This comment has been minimized.

Copy link

commented Jul 14, 2018

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

This comment has been minimized.

Copy link
Author

commented Jul 14, 2018

@AcrimoniousMirth

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

commented Jul 27, 2018

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

@JakeHartnell

This comment has been minimized.

Copy link

commented Aug 23, 2018

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

This comment has been minimized.

Copy link
Contributor

commented Aug 23, 2018

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

@adddog

This comment has been minimized.

Copy link

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.

@pallikas

This comment has been minimized.

Copy link

commented Sep 9, 2018

I had the same issue, then I realized that the usb cable i was using was set up for power only, and was not passing the signals. I was burned by this kid of cable once before, and need to put label tags on the power only cables. Works fine, with the CP2102 Drivers and the proper cable.

@twoblokeswithapostie

This comment has been minimized.

Copy link

commented Sep 13, 2018

@ mistergreen Your silabs driver recommendation worked for me on High Sierra. I just had to allow loading in System Preferences and unplug and plug in the board. I can now see tty.SLAB_USBtoUART under /dev/. Thank you!

@daspuru

This comment has been minimized.

Copy link

commented Sep 28, 2018

I solved it this way,

  1. Use terminal to go to this directory: /Library/Extensions

  2. Run sudo kextload SiLabsUSBDriver.kext/

  3. If the output is an alert, go to System Preferences, and click the Allow button like this:
    68747470733a2f2f646576656c6f7065722e6170706c652e636f6d2f6c6962726172792f636f6e74656e742f746563686e6f7465732f746e323435392f4172742f746e323435395f617070726f76616c2e706e67

  4. Then run again the command, if nothing is in the output, you are in.

  5. Use 115,200 BPS setup for programming.

@jstarr

This comment has been minimized.

Copy link

commented Oct 3, 2018

Had the same problem (macpro running High Sierra). AcrimoniousMirth said we needed both CP210x and CH340 drivers. I only found the CP210X driver on the Silab site. Did a search for CH340 macos drivers and found https://medium.com/@tony92151/arduino-ch340-chip-driver-for-high-sierra-39e621dae1e4 which pointed to https://github.com/adrianmihalko/ch340g-ch34g-ch34x-mac-os-x-driver/raw/master/CH34x_Install_V1.3.pkg which ended up working for me. The ls /dev/cu.* returns:
/dev/cu.usbmodem1411.
Stopped working for me after unplugging.

@artwebstudios

This comment has been minimized.

Copy link

commented Nov 5, 2018

Hi have the same issue.

I have tried both drivers CP210x and CH340. Both of them works occasionally but after restart the computer does not work. Even when I am trying to reinstall them. It does not work.

Any idea how to solve this issue?

@Tobils

This comment has been minimized.

Copy link

commented Nov 27, 2018

Hi have the same issue.

I have tried both drivers CP210x and CH340. Both of them works occasionally but after restart the computer does not work. Even when I am trying to reinstall them. It does not work.

Any idea how to solve this issue?

try to click allow on Security & Privacy button.

@Tobils

This comment has been minimized.

Copy link

commented Nov 27, 2018

I solved it this way,

  1. Use terminal to go to this directory: /Library/Extensions
  2. Run sudo kextload SiLabsUSBDriver.kext/
  3. If the output is an alert, go to System Preferences, and click the Allow button like this:
    68747470733a2f2f646576656c6f7065722e6170706c652e636f6d2f6c6962726172792f636f6e74656e742f746563686e6f7465732f746e323435392f4172742f746e323435395f617070726f76616c2e706e67
  4. Then run again the command, if nothing is in the output, you are in.
  5. Use 115,200 BPS setup for programming.

i have the same issue on my macbook air, with high siera. the problem was solved by click button allow on System Preferences the choose Security and Setting, then on bellow of the page click allow. dont forget to choose . driver that you've installed. it's working for me.

@djaramil

This comment has been minimized.

Copy link

commented Dec 31, 2018

I tried all kinds of things to get my ESP32 to work from here and from SLAB website to no avail. My ESP8266 worked fine with no problem.
The one thing that eventually led me to figuring out the problem was to go to the About Mac / System Report / USB and that is when I saw that my ESP did not register under USB. I then got another ESP32 and tried that one and it then showed up on the list and the drivers also showed up too after that.
image
Sometimes it is a hardware problem. :-(
I hope this helps.

@jstarr

This comment has been minimized.

Copy link

commented Dec 31, 2018

My problem turned out to be hardware, too, except it was the cable failing.

@JohnGEyles

This comment has been minimized.

Copy link

commented Jan 1, 2019

Yep, I think mine may have been a bad USB cable too.

@marctheshark3

This comment has been minimized.

Copy link

commented Jan 17, 2019

Hello, I followed the instructions: download the two different drivers and allow in the system preferences in the security settings. What is weird is that I have a flora board that is able to connect no problem but my huzzah esp32 has no luck. So I know my ports and cable work properly.
OS: Mojave: 10.14.2

Anything else I can try guys??

@marctheshark3

This comment has been minimized.

Copy link

commented Jan 17, 2019

I tried all kinds of things to get my ESP32 to work from here and from SLAB website to no avail. My ESP8266 worked fine with no problem.
The one thing that eventually led me to figuring out the problem was to go to the About Mac / System Report / USB and that is when I saw that my ESP did not register under USB. I then got another ESP32 and tried that one and it then showed up on the list and the drivers also showed up too after that.
image
Sometimes it is a hardware problem. :-(
I hope this helps.

So my system seems to be able to find the device like above yet the arduino program isnt picking it up. So is it possible I have a bad board too??

@AhmedShaalan

This comment has been minimized.

Copy link

commented Jan 18, 2019

Same Problem here, My module is shown as "Composite Device" when connected via AmazonBasics USB Type C to Micro B 2.0 Cable with CP2102 Drivers installed on my MacBook Pro 2016. Although the cable is labeled as data and charging
However, it works fine with other USB-A to Micro USB.

Any idea why is that happening?

@marctheshark3

This comment has been minimized.

Copy link

commented Jan 18, 2019

I found a thread discussing my issue with Mojave OS and recommended installing this driver: https://www.ftdichip.com/Drivers/VCP.htm

I installed it and after I was able to load my code to my huzzah32. Success! Hope this is able to help others.

@AhmedShaalan

This comment has been minimized.

Copy link

commented Jan 18, 2019

I found a thread discussing my issue with Mojave OS and recommended installing this driver: https://www.ftdichip.com/Drivers/VCP.htm

I installed it and after I was able to load my code to my huzzah32. Success! Hope this is able to help others.

It didn't work with my USB-C cable.
Thanks anyways

@cKouT

This comment has been minimized.

Copy link

commented Jan 27, 2019

I solved it this way,

1. Use terminal to go to this directory: /Library/Extensions

2. Run  sudo kextload SiLabsUSBDriver.kext/

3. If the output is an alert, go to System Preferences, and click the Allow button like this:
   ![68747470733a2f2f646576656c6f7065722e6170706c652e636f6d2f6c6962726172792f636f6e74656e742f746563686e6f7465732f746e323435392f4172742f746e323435395f617070726f76616c2e706e67](https://user-images.githubusercontent.com/24983936/46229386-12ba2800-c32b-11e8-920f-0e88cc410126.png)

4. Then run again the command, if nothing is in the output, you are in.

5. Use 115,200 BPS setup for programming.

It solve the problem for me devboard = DOIT ESP32 DEVKIT V1. Thx.

@marcelodib

This comment has been minimized.

Copy link

commented Feb 1, 2019

It solve the problem for me.
my board: DOIT ESP32 DEVKIT V1
MBP 2017

@mbbender

This comment has been minimized.

Copy link

commented Mar 7, 2019

Took me a while to read the readme... but for me I did not receive a warning when installing but I still had to execute

To unblock, open the System Preferences Security & Privacy pane and
unblock the system extension. See Apple Technical Note TN2459
"User-Approved Kernel Extension Loading" for more information.
@thelinguist

This comment has been minimized.

Copy link

commented Mar 7, 2019

@mbbender it took me at least 5 hours of wondering why my driver wasn't working to read the readme. Mac asks for your permission to run the installer, but afterwards you must ALSO give permission for the driver to run. Once I did what it said in the readme, and opened System Preferences to give permission, it worked!
screen shot 2019-03-02 at 9 41 50 pm

@besi

This comment has been minimized.

Copy link

commented Mar 8, 2019

I had some USB-C hubs that were not working. So if /dev/cu.SLAB_USBtoUART does not show up in your file system you might want to try another USB-C to USB hub.

@djaramil

This comment has been minimized.

Copy link

commented Mar 9, 2019

@millergd

This comment has been minimized.

Copy link

commented Apr 8, 2019

FYI about the security pop ups, it only popped up in security preferences during the download. Once the download was over, it disappeared.

@flevin58

This comment has been minimized.

Copy link

commented May 2, 2019

Thank you all for the tips I found here.
Today I got my ESP32-WROOM 32 from Amazon and could not connect.

I have a Mac Book Pro Retina mid 2012 with Mojave 10.14.4

Solved the issue installing as suggested the Silicon Labs USB to UART drivers from this site:
https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers

The issue was also to choose the correct Arduino settings:

Board: ESP32 Dev Module
Upload Speed: 921600
Port: /dev/cu.SLAB_USBtoUART
Programmer AVRISP mkII

When uploading the code must press BOOT on device to avoid timeout issues

Thanks again !!!!
Fernando

@MacRaeMac

This comment has been minimized.

Copy link

commented May 11, 2019

I am using MBP Mid 2009 which using OSX Mojave, tried this driver https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers, the /dev/cu.SLAB_USBtoUART appear but when it upload sketch to device it failed and keep timeout.

@flevin58

This comment has been minimized.

Copy link

commented May 11, 2019

I solved that issue doing as follows:

  1. first click the upload button from Arduino IDE (or VS Code PlatformIO extension)
  2. you should see some dots on the terminal indicating the sw is trying to connect to device
  3. press BOOT on ESP32 for a second and then release
  4. you should see the upload progress on the terminal.

Note: I found out (at least with my device) that when you press BOOT you should "feel" a click on your finger, otherwise the timeout will persist.

Hope it helps.

@stale

This comment has been minimized.

Copy link

commented Jul 31, 2019

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

@stale stale bot added the stale label Jul 31, 2019

@ankita-anand1

This comment has been minimized.

Copy link

commented Aug 13, 2019

I changed the USB cable and it worked

@stale stale bot removed the stale label Aug 13, 2019

@jdieg0

This comment has been minimized.

Copy link
Contributor

commented Aug 15, 2019

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

Thank you! I used to write to the board (a TTGO Paxcounter/ttgov21new) on my MacBook Pro (macOS High Sierra 10.13.6) from mid 2010. I'm not sure, how I managed to get the board running on my old laptop, but on my new MacBook Air 2018 running macOS Mojave 10.14.6 the board did not appear anymore as /dev/tty.SLAB_USBtoUART. Installing this driver did the job!

It appears under /dev again:

ls -la /dev/tty*

And uploading via Platformio works again, too.

esptool.py v2.6
Configuring upload protocol...
AVAILABLE: esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esptool
Looking for upload port...
Auto-detected: /dev/cu.SLAB_USBtoUART
Uploading .pio/build/usb/firmware_ttgov21new_v1.7.841.bin

So just in case someone is searching for the upload error, I got this one:

Looking for upload port...
Error: Please specify `upload_port` for environment or use global `--upload-port` option.
For some development platforms it can be a USB flash drive (i.e. /media/<user>/<device name>)
*** [upload] Explicit exit, status 1
=============================== [ERROR] Took 9.92 seconds ===============================

======================================= [SUMMARY] =======================================
Environment ota [IGNORED]
Environment usb [FAILED]
Environment dev [IGNORED]
========================= 1 failed, 0 succeeded in 9.93 seconds =========================
The terminal process terminated with exit code: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
You can’t perform that action at this time.