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 · 114 comments
Open

ESP32 not showing serial port after Mac installation #1084

danthegoodman1 opened this issue Feb 6, 2018 · 114 comments

Comments

@danthegoodman1
Copy link

@danthegoodman1 danthegoodman1 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
Copy link

@huming2207 huming2207 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
Copy link
Author

@danthegoodman1 danthegoodman1 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
Copy link

@mistergreen mistergreen 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
Copy link
Author

@danthegoodman1 danthegoodman1 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
Copy link

@mistergreen mistergreen commented Feb 6, 2018

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

@danthegoodman1
Copy link
Author

@danthegoodman1 danthegoodman1 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
Copy link

@richardfuchs richardfuchs 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
Copy link

@JohnGEyles 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

@mistergreen mistergreen 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
Copy link

@WeiboboHe WeiboboHe commented May 5, 2018

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

@JohnGEyles
Copy link

@JohnGEyles JohnGEyles 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
Copy link

@Mr-taweep Mr-taweep commented May 20, 2018

Goog that "richardfuchs"

@bakzs
Copy link

@bakzs 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

@Chris2060 Chris2060 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
Copy link

@JohnGEyles JohnGEyles commented Jun 23, 2018

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

@Chris2060
Copy link

@Chris2060 Chris2060 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
Copy link

@n8leon 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 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

@mattcony mattcony 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
Copy link

@AcrimoniousMirth AcrimoniousMirth 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
Copy link

@AcrimoniousMirth AcrimoniousMirth 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
Copy link

@mattcony mattcony 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
Copy link
Author

@danthegoodman1 danthegoodman1 commented Jul 14, 2018

@AcrimoniousMirth
Copy link

@AcrimoniousMirth 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 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 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

@Odi55555 Odi55555 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
Copy link

@JakeHartnell JakeHartnell 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
Copy link
Contributor

@lbernstone lbernstone commented Aug 23, 2018

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

@adddog
Copy link

@adddog 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.

@hadifarnoud
Copy link

@hadifarnoud hadifarnoud commented Jul 28, 2020

in my case it was USB cable's fault.

@JohnGEyles
Copy link

@JohnGEyles JohnGEyles commented Jul 28, 2020

in my case it was USB cable's fault.

Lotta people (me included) having this issue. Is there something special about these devices that makes 'em more persnickity about the USB cable used ?

@jdryfoos
Copy link

@jdryfoos jdryfoos commented Aug 9, 2020

Same here. Found another USB cable and it worked. Thanks

@DareDareHub
Copy link

@DareDareHub DareDareHub commented Sep 29, 2020

Thanks, Silabs driver worked for me !

But I had to load it after it was installed by using this terminal command :
sudo kextload /Library/Extensions/SiLabsUSBDriver.kext
https://osxdaily.com/2015/06/24/load-unload-kernel-extensions-mac-os-x/

but that command only worked if I disabled osx SIP first, see link :
https://developer.apple.com/library/archive/documentation/Security/Conceptual/System_Integrity_Protection_Guide/ConfiguringSystemIntegrityProtection/ConfiguringSystemIntegrityProtection.html#//apple_ref/doc/uid/TP40016462-CH5-SW1

@domvo
Copy link

@domvo domvo commented Oct 11, 2020

Just for everybody out there trying to desperately make it work: it was the cable for me as well! I tried 5 different ones and it only ever started working with number 5 which was a charging cable I had lying around from my BOSE QC35 headphones. I was about to give up and get another board.

So keep trying cables!

For the record: I did indeed have to install the Silabs USB/UART driver, so to whoever pointed this piece of the solution out and to whoever wrote the driver: thanks!

Additional info: tried on a MacBook Pro Retina Late 2013, on a MacBook Pro Mid 2019 and on a Raspberry Pi with Rasperry Pi OS. The developer board is a ESP32 from joy-it (https://joy-it.net/en/products/SBC-NodeMCU-ESP32), bought at German electronics store Conrad.

@JohnGEyles
Copy link

@JohnGEyles JohnGEyles commented Oct 11, 2020

Mine has been working fine for awhile, since I changed cables - on a Macbook Air running High Sierra. Soon I will be forced to upgrade it to Mojave (in order to run TurboTax 2020). I'm scared to death things will stop working when I do that. Can anyone shed any light on that ?

@domvo
Copy link

@domvo domvo commented Oct 11, 2020

Working flawlessly on my Mojave MBP!

@JohnGEyles
Copy link

@JohnGEyles JohnGEyles commented Oct 11, 2020

Working flawlessly on my Mojave MBP!

Did you purchase it with Mojave pre-loaded, or upgrade from an earlier version ? Either way, your testimony is encouraging.

@domvo
Copy link

@domvo domvo commented Oct 11, 2020

My Macbook Pro Late 2013 is the one running Mojave. This computer did not ship with Mojave, so it was updated. Good luck!

@randy3k
Copy link

@randy3k randy3k commented Nov 9, 2020

I tried 5 different micro usb cables, only the thickest one works.

@Diamondcreeper098
Copy link

@Diamondcreeper098 Diamondcreeper098 commented Nov 12, 2020

If You have tried installing the drivers and you know that your cable can transfer data then before plugging the cable press the boot button and after plugging the cable release it. I had the Same problem but doing that fixed it.

@Tobils
Copy link

@Tobils Tobils commented Dec 26, 2020

Same here. Found another USB cable and it worked. Thanks

face the same things,

@yannickh2
Copy link

@yannickh2 yannickh2 commented Dec 26, 2020

Since I could not believe in an issue with my USB cable that works for everything else, I tried this link somebody posted here: https://github.com/adrianmihalko/ch340g-ch34g-ch34x-mac-os-x-driver
Now it showed up.

@pdemidyuk-ib
Copy link

@pdemidyuk-ib pdemidyuk-ib commented Feb 17, 2021

In my case it was Firewall. I've turned it off on my mac and it solved the issue.

@Carle2
Copy link

@Carle2 Carle2 commented Feb 20, 2021

Hello,
I have a mac with Big Sûr OS but my problem is: I don't show the port number in my IDE Arduino for ESP8266 CH340
I use the Apple adaptator to convert USB to micro usb c

I have installed the Firmware CH340
Do you know why please?

@justicezyx
Copy link

@justicezyx justicezyx commented Mar 7, 2021

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

This worked for me. The serial port shows up when I switched to a different macbook USB port.

@dmoskovtsov
Copy link

@dmoskovtsov dmoskovtsov commented Mar 15, 2021

Spent hours on that - was a cable problem at the end (had to try 8 cables to find the correct one). For those who're trying, the setup that worked for me:

USB C 3.0 hub + USB to USB micro data and charging cable - 2.4 A, 24 AWG charging cable, 28 AWG data line, 1m.

@rafche
Copy link

@rafche rafche commented Mar 21, 2021

same Issue, tried 2hours. It was the fricking CABLE

@stale
Copy link

@stale stale bot commented Jun 18, 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 label Jun 18, 2021
@mrprofessor
Copy link

@mrprofessor mrprofessor commented Jun 22, 2021

IT WAS THE CABLE. :(

@stale
Copy link

@stale stale bot commented Jun 22, 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 label Jun 22, 2021
@tjsadiq
Copy link

@tjsadiq 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 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 label Aug 28, 2021
@jginsburgn
Copy link

@jginsburgn jginsburgn commented Sep 14, 2021

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 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 label Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet