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

esp 32 not connecting to Mac M2 #10006

Open
1 task done
damiea opened this issue Jul 10, 2024 · 16 comments
Open
1 task done

esp 32 not connecting to Mac M2 #10006

damiea opened this issue Jul 10, 2024 · 16 comments
Labels
Type: Question Only question

Comments

@damiea
Copy link

damiea commented Jul 10, 2024

Board

ESP32 Dev Module

Device Description

ESP32 Dev Module

Hardware Configuration

ESP32

Version

latest master (checkout manually)

IDE Name

Arduino IDE

Operating System

macOS Sonoma

Flash frequency

PSRAM enabled

yes

Upload speed

Description

Anyone can help i have downloaded all the driver that are available but still it doesnt detect any new port especially the UART.

only this is shown /dev/cu.Bluetooth-Incoming-Port when i prompt ls /dev/cu.*

Sketch

none

Debug Message

Sketch uses 267981 bytes (20%) of program storage space. Maximum is 1310720 bytes.
Global variables use 20184 bytes (6%) of dynamic memory, leaving 307496 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.6
Serial port /dev/cu.Bluetooth-Incoming-Port
Connecting......................................

A fatal error occurred: Failed to connect to ESP32: No serial data received.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
Failed uploading: uploading error: exit status 2

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@damiea damiea added the Status: Awaiting triage Issue is waiting for triage label Jul 10, 2024
@Jason2866
Copy link
Collaborator

Driver for the USB serial chip installed?

@damiea
Copy link
Author

damiea commented Jul 10, 2024

i have tried downloading all of this:

  • CH34xVCPDriver
  • Mac_OSX_VCP_Driver
  • SiLabsUSBDriverDIsk
  • CH341SER_MAC

and the usb is connected via USB-hub.

it doesnt seem to find the port

@Jason2866
Copy link
Collaborator

driver can conflict with each other. The USB hub can do harm too.

@damiea
Copy link
Author

damiea commented Jul 10, 2024

driver can conflict with each other. The USB hub can do harm too.

what should i do

@Jason2866
Copy link
Collaborator

Check which USB serial chip your board uses. Deinstall all drivers. This can be tricky.
Install only the driver which is the correct one for your dev board. Do not use a USB Hub.

@VojtechBartoska VojtechBartoska added Type: Question Only question and removed Status: Awaiting triage Issue is waiting for triage labels Jul 11, 2024
@robertlipe
Copy link

Jason's on the right trail. There's a lot of guessing above at which driver to use, but first you should answer the fundamental question: what UART DOES your unnamed device actually use? That will shorten the search for the correct driver. Don't just install every driver you can find.

I use a stable of most the whole ESP32 family on MacOS without issue. (Well, I do know of ONE issue, but you're not having it, so I won't complicate things.)

Also, double check your cable actually passes data. Until System Settings shows a USB peripheral on the USB bus, the driver won't matter.

@Jason2866
Copy link
Collaborator

@robertlipe My M1 Mac does work with all dev boards I own. There are some since I am maintain the customized Tasmota Arduino Platformio Framework and do "some" testing ;-)

@robertlipe
Copy link

I recognize you, Jason. Your credentials are clearly solid. :-) I was trying to underscore your methodical approach to solving a problem instead of installing a dozen drivers when so far they hasn't even said what chip they have.

Let's not pull it into the discussion, but the 44-pin S3 devkit-c clones that use the WCH where the default driver almost works (well enough to do terminal stuff and start an upload, almost never well enough to finish an upload) until you use the new driver and the /dev/cu.wchWHATEVER nodes.

That's the only excuse that comes to mind on any of my own Macs with any of the couple dozen dev boards I have. (I have no doubt your collection "wins". No need for a contest.)

@damiea
Copy link
Author

damiea commented Jul 12, 2024

where can i find the chip? is it on the esp32 board itself? im still new in developing IOT projects so im not sure how to fix the problem.

@Jason2866
Copy link
Collaborator

where can i find the chip? is it on the esp32 board itself?

Yes, on the board itself. You can post an photo here.

This one /dev/cu.wchWHATEVER tooks me a while to get fixed. The issue was to get the old driver fully deinstalled. After having ONLY the needed actual driver installed ALL boards works well to flash

@damiea
Copy link
Author

damiea commented Jul 12, 2024

board

where can i find the chip? is it on the esp32 board itself?

Yes, on the board itself. You can post an photo here.

This one /dev/cu.wchWHATEVER tooks me a while to get fixed. The issue was to get the old driver fully deinstalled. After having ONLY the needed actual driver installed ALL boards works well to flash

@robertlipe
Copy link

Promise you're using this USB jack.
And the chip in question is probably this one in red. We don't need every number on it. Just the part that's probably largest and that returns ssomething about "serial chip" when you google it. Likely answers are CH340 or CH9102 or CP2102 or such...

c

@damiea
Copy link
Author

damiea commented Jul 12, 2024

its the CP2102

@robertlipe
Copy link

robertlipe commented Jul 12, 2024 via email

@damiea
Copy link
Author

damiea commented Jul 12, 2024

do i need to use the direct cable from usb-c to the micro-usb or can i plug it on a USB Hub.

@lbernstone
Copy link
Contributor

For troubleshooting, make a direct connection from the computer to the esp32. Once you know it is working, you can test through the hub, using the other ports, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Question Only question
Projects
None yet
Development

No branches or pull requests

5 participants