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.59k stars 202 forks source link

Failed to connect to ESP32 #55

Closed DaveTakesPictures closed 1 year ago

DaveTakesPictures commented 1 year ago

I'm having trouble uploading the project. There is one warning early on, and though I just updated Python, it persists and I'm not sure if that's the cause anyway.

Second error, rather generic, I looked at the link, tried suggestions such as disconnecting everything and still can't upload. It's my first time using PIO and just guessing... shouldn't I have a USB connection? I see /dev/cu.Bluetooth-Incoming-Port but I'm not connected by bluetooth?? I'm on a mac running OS12.7 and VS 1.83.0

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

Full terminal ouput below:

================================================== [FAILED] Took 92.01 seconds ==================================================

Environment Status Duration


dfrobot_firebeetle2_esp32e FAILED 00:01:32.008 ============================================= 1 failed, 0 succeeded in 00:01:32.008 =============================================

/Users/davepixmb12/.platformio/penv/lib/python3.9/site-packages/urllib3/init.py:34: NotOpenSSLWarning: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020 warnings.warn( Processing dfrobot_firebeetle2_esp32e (board: dfrobot_firebeetle2_esp32e; platform: espressif32 @ 6.4.0; framework: arduino)

/Users/davepixmb12/.platformio/penv/lib/python3.9/site-packages/urllib3/init.py:34: NotOpenSSLWarning: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020 warnings.warn( Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/dfrobot_firebeetle2_esp32e.html PLATFORM: Espressif 32 (6.4.0) > DFRobot Firebeetle 2 ESP32-E HARDWARE: ESP32 80MHz, 320KB 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 95.12 seconds ==================================================

Environment Status Duration


dfrobot_firebeetle2_esp32e FAILED 00:01:35.118 ============================================= 1 failed, 0 succeeded in 00:01:35.118 =============================================

lmarzen commented 1 year ago

Try running ioreg -p IOUSB which will list USB devices. This way you can see if it is being detected by the OS.

DaveTakesPictures commented 1 year ago

Thanks Luke, I'll try and work on the Mac connection later, I wrangled a PC and was able to connect and upload successfully! Works like a charm! Thanks for the great project!

lmarzen commented 1 year ago

I'm glad to hear that you were able to work around the issue and that you enjoy the project!