espressif / arduino-esp32

Arduino core for the ESP32
GNU Lesser General Public License v2.1
13.2k stars 7.34k forks source link

esp 32 not connecting to Mac M2 #10006

Open damiea opened 1 month ago

damiea commented 1 month ago

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

Jason2866 commented 1 month ago

Driver for the USB serial chip installed?

damiea commented 1 month ago

i have tried downloading all of this:

and the usb is connected via USB-hub.

it doesnt seem to find the port

Jason2866 commented 1 month ago

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

damiea commented 1 month ago

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

what should i do

Jason2866 commented 1 month ago

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.

robertlipe commented 1 month ago

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 commented 1 month ago

@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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago
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 commented 1 month ago

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 commented 1 month ago

its the CP2102

robertlipe commented 1 month ago

Now you're getting somewhere.

I've never heard of the site, but the recipe at https://wiki.keyestudio.com/How_to_Install_the_Driver_of_CP2102_on_MAC_System seems about right.

RJL

On Fri, Jul 12, 2024 at 11:20 AM miea @.***> wrote:

its the CP2102

— Reply to this email directly, view it on GitHub https://github.com/espressif/arduino-esp32/issues/10006#issuecomment-2225914896, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCSD36ZFQZIMSOO3332PW3ZL764XAVCNFSM6AAAAABKUYZKUWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRVHEYTIOBZGY . You are receiving this because you were mentioned.Message ID: @.***>

damiea commented 1 month ago

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 commented 1 month ago

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.