Port not found on upload

While my ESP32 CAM and my Doiit ESP32 DEVkit V1 and others are uploading fine on my via dev/cu.usbserial-142120 on my iMac my Elecrow 5" Display refuses to upload.

"Uploading .pio/build/esp32-s3-devkitc-1-myboard/firmware.bin
esptool.py v4.5
Serial port /dev/cu.usbserial-142110

A fatal error occurred: Could not open /dev/cu.usbserial-142110, the port doesn't exist
*** [upload] Error 2"

but uploads on my Linux Mint box under PlatormIO.

need help or hint

Kind regards

Different boards using different Serial to USB chips (CH34x, CP210x).
The ESP32-S3 may also use it’s internal USB serial interface… So this might be a missing driver in case of an external USB chip or you’re just using the wrong port (name) ?

Thank you, looks meaningfull, how can i determin which driverers are installed?

This looks like a mac port-name to me.
Unfortunately, I don’t know how to check this (I’m not a Mac user).

Is there a way to list all available ports (connected devices) on a mac?
Maybe you just have to use another port name?!

yes it is a iMac abd worked fo mefor years with arduino nano, a lot of ESP8266 boards an some ESP32 boards

think all drivers are installed, as I had no similar problems the last 6 years with different Arduino and ESP8266 or ESP32 boards, but to be shure i reinstalled both drivers still same problem. Here is the complete log

Configuring upload protocol...
AVAILABLE: cmsis-dap, esp-bridge, esp-builtin, 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...
Using manually specified: /dev/cu.usbserial-142110
Uploading .pio/build/esp32-s3-devkitc-1-myboard/firmware.bin
esptool.py v4.5
Serial port /dev/cu.usbserial-142110
Connecting....
Chip is ESP32-S3 (revision v0.2)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 18:8b:0e:fe:fe:2c
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.

A fatal error occurred: Unable to verify flash chip connection (No serial data received.).
*** [upload] Error 2

No problem on my Linux Mint Box, same code, same Display. I am not happy to use the Linux box, a my iMac has better Screen 27" better CPU, more disk space and is dual screen, so much more comfortable.

Here is the log from the Linux box

Auto-detected: /dev/ttyUSB0
Uploading .pio/build/esp32-s3-devkitc-1-myboard/firmware.bin
[esptool.py](http://esptool.py/) v4.9.0
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP32-S3 (QFN56) (revision v0.2)
Features: WiFi, BLE, Embedded PSRAM 8MB (AP_3v3)
Crystal is 40MHz
MAC: 18:8b:0e:fe:fe:2c
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00003fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x001bdfff...
SHA digest in image updated
Compressed 14896 bytes to 10242...
Writing at 0x00000000... (100 %)
Wrote 14896 bytes (10242 compressed) at 0x00000000 in 0.4 seconds (effective 292.8 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 119...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (119 compressed) at 0x00008000 in 0.1 seconds (effective 330.0 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.2 seconds (effective 432.5 kbit/s)...
Hash of data verified.
Compressed 1759392 bytes to 342345...
Writing at 0x00010000... (4 %)
Writing at 0x000a93af... (9 %)
Writing at 0x00139905... (14 %)
Writing at 0x00145204... (19 %)
Writing at 0x001538a4... (23 %)
Writing at 0x00161d66... (28 %)
Writing at 0x00166d1a... (33 %)
Writing at 0x0016c154... (38 %)
Writing at 0x00171297... (42 %)
Writing at 0x001765d2... (47 %)
Writing at 0x0017b6dc... (52 %)
Writing at 0x001805fe... (57 %)
Writing at 0x00185528... (61 %)
Writing at 0x0018a6c2... (66 %)
Writing at 0x001901bd... (71 %)
Writing at 0x001959c7... (76 %)
Writing at 0x0019aec0... (80 %)
Writing at 0x001a3695... (85 %)
Writing at 0x001abd90... (90 %)
Writing at 0x001b2cbe... (95 %)
Writing at 0x001b835e... (100 %)
Wrote 1759392 bytes (342345 compressed) at 0x00010000 in 15.2 seconds (effective 927.2 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

Display is CrowPanel ESP32 Display-5 Inch SKU:DIS07050H

I guess all your ESP32 boards you have used in the past are having an external USB to Serial bridge chip like CH34x or CP210x and your new board does not have such a chip and is using the ESP32-S3 built in USB port.

Please answer my question: Is there a way to list all available ports (connected devices) on a mac?

I normaly use the terminal with ls -l /dev/c* do to get a list. With normaly only one device is connect the the name is /dev/cu.usbserial- xxxxxxxx most often dev/cu.usbserial-142110.
In Arduino IDE the same port is shown.

If not found automatic I entered upload:port = in the platformio.ini and it worked always.

As it look for me the esptool does mean it is not the correct ESP32 and stops, but why on OS X- and not on Linux

So what does the list show with your Elecrow 5" Display connected?

unconnected:

k$ ll /dev/c*
crw-------  1 mk    staff           0 13 Aug 11:29 /dev/console
crw-rw-rw-  1 root  wheel  0x16000003 12 Aug 16:55 /dev/cu.Bluetooth-Incoming-Port

connected:

/dev/c*
crw-------  1 mk    staff           0 13 Aug 11:29 /dev/console
crw-rw-rw-  1 root  wheel  0x16000003 12 Aug 16:55 /dev/cu.Bluetooth-Incoming-Port
crw-rw-rw-  1 root  wheel  0x16000001 13 Aug 12:49 /dev/cu.usbserial-142130

sometimes 14210 dependig the port I use on my USB Hub. I use the same Hub on both computer

Does uploading to /dev/cu.usbserial-142130 work?

Which chip type is the Usb serial converter?
Newer ones needs new driver!

No, I tried this before

Do not know, it is an Elecrow 5" Display with ESP32 and everything else on it. didn’t find anything about the CHIP in the Elegrow Docs.

It is a CrowPanal ESP32 Display- 5 Inch
SKU:DIS07050H

Kind Regards

According to the schematics found here no external Usb 2 serial chip is used. Instead the builtin usb of the esp32-s3 is used.

What should that mean to me?

That means it is different to your other esp32 / esp8266 boards which are using external usb 2 serial chips like ch34x and cp210x.

I have no clue about Mac. But the cause of your problem is not PlatformIO.

@jason2866 Do you know the requirements / required drivers on Mac?

Use a more actual esptool.py
Platformio has v4.9 in there registry add via platform_packages. Should be like

platform_packages = tool-esptoolpy @ 4.9

Many thanks for the moment.

I think I will ty the ESP32 IDE from Espressif they have an extension für VSC too. I think they will know their MC’s best.

Kind Regards

Rainer