I have a running project om Platform IO on my Linux Box. I copied the the complete project folder to my Mac where it compiles fine.
uilding in release mode
Retrieving maximum program size .pio/build/esp32-s3-devkitc-1-myboard/firmware.elf
Checking size .pio/build/esp32-s3-devkitc-1-myboard/firmware.elf
Advanced Memory Usage is available via “PlatformIO Home > Project Inspect”
RAM: [==== ] 36.0% (used 117888 bytes from 327680 bytes)
Flash: [=== ] 33.6% (used 1057293 bytes from 3145728 bytes)
================= [SUCCESS] Took 11.20 seconds =================
Terminal will be reused by tasks, press any key to
but upload that woks on Linux fails.
Serial port /dev/cu.usbserial-146130
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.
A fatal error occurred: Unable to verify flash chip connection (No serial data received.).
*** [upload] Error 2
=================</code [FAILED] Took 16.77 seconds =================
I duplicated this project folder on my Mac and tried to copile what fails
I have no Idea wgats wrong
I want to have that project on my Mac as I have all projects there. I tied another project on the Mac, It compiles fine and uploasds fine.
In case of multiple problems I like to uninstall platformio and vsc completly ,
So I can do a clean virgin reinstall from scratch. Iknow there are a lot of articles on the net, I tried some but never be shure that I got a virgin clean system without any rest of VSCor platformIO
I removed .vscode and .platformio and all below. I think I had a quite clean system, meaning clean from platformio and vsc.
the I reinstalled. Compiling is no problem any more.
but still the upload fails, while there is no problem uploading the same code to the same device on the Linux Mint Box.
in the last years I hat about 20+ projects on this Mac for Arduino Nano, ESP8266 anf ESP32, and there was never a problem uploading. I can even upload to an ESP32 CAM used in the actuell project, but not to the 5" crowpanel touch display used here. See
A fatal error occurred: Unable to verify flash chip connection (No serial data received.).
*** [upload] Error 2
==================================================== [FAILED] Took 22.91
I you need further information, please let me know.
all my projects in the last years are done one the Mac, never uploading problems. There shouldn’t a lot of differences between Linux an Mac, as the Esptool is in Python as I know. my be there is a different version of on the Boxes.
I read some where the is a problem with Esptool and ESP32-S3 Chips with older Esptools than ver 4.9 . the linux box has 4.9.
Is the a way to determine the Esptool versions or how to 4.9 on my Mac.
It is anoying to switch beetween two computers all the Time, begining with different keynoard layouts.
Did you use ESP32-S3 based boards which are using the builtin USB port of the ESP32-S3 in the past without issues? (Is the problem related just to this elecrow board?)
Check if inside the platformio.ini the version is specified like so:
platform = espressif32 @ 6.12.0
If no version is specified, the one installed on your system with the highest number will be used automatically. In this case check the installed platform versions and take a look for the highest available version: