lmarzen / esp32-weather-epd

A low-power E-Paper weather display powered by an ESP32 microcontroller. Utilizes the OpenWeatherMap API.
GNU General Public License v3.0
2.55k stars 199 forks source link

Receive error when uploading to FireBeetle from USB #15

Closed NWstudent closed 1 year ago

NWstudent commented 1 year ago

.... ..... Uploading .pio/build/firebeetle32/firmware.bin esptool.py v4.4 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 *** [upload] Error 2

lmarzen commented 1 year ago

This is likely an issue with drivers. You would need to share more information(OS, what troubleshooting steps you have taken, etc.) if you want help diagnosing this. Check out the troubleshooting link that is in the output you shared. This issue does not seem to be uncommon. Try googling the error. There are many conversations about it online with steps you can take to resolve it.

NWstudent commented 1 year ago
Screenshot 2023-03-06 at 10 00 16 PM

I have attempted to install both recommend drivers for Mac (Apple M1 Max) OS (Ventura-13.2.1). Have attempted to install using VScode and Arduino IDE. I have attempted with 2 FireBeetle boards (p/n:DFR0654), two cables, two usb-c ports to rule out hardware malfunction. I also attempted to upload to a wired board and a clean board to determine if it had to be built out prior to upload. Each time the process gets the point where it performs:

Serial port /dev/cu.Bluetooth-Incoming-Port Connecting......................................

and then shows:

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 *** [upload] Error 2 =================================== [FAILED] Took 44.78 seconds ===================================

The same exact process happens if I attempt to run the upload with nothing attached to the computer. Once the recommended drivers were installed the Mac recognizes the board as a USB Serial:

Product ID: 0x7522 Vendor ID: 0x1a86 Version: 2.64 Speed: Up to 12 Mb/s Location ID: 0x02100000 / 1 Current Available (mA): 500 Extra Operating Current (mA): 0

Full output of the install is:

Executing task: platformio run --target upload

Processing firebeetle32 (platform: espressif32; board: firebeetle32; framework: arduino)

Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/firebeetle32.html PLATFORM: Espressif 32 (6.0.1) > FireBeetle-ESP32 HARDWARE: ESP32 80MHz, 520KB RAM, 4MB Flash DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:

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 *** [upload] Error 2 =================================== [FAILED] Took 44.90 seconds ===================================

lmarzen commented 1 year ago

This issue isn't specific to this project. I have not encountered this issue myself, my only meaningful suggestion is to try what is mentioned on other forums. It sounds like you are on the right track though. I would disconnect everything from the esp32 when troubleshooting this issue, as it is a known issue that an incorrectly wired spi bus can cause some connection issues. I would also try another cable and different ports on your computer. Maybe even try on a different computer if you have one available.