danielkucera / esp-arduino-ebus

65 stars 11 forks source link

esp32 v5 firmware upload #35

Closed PiotrHab closed 1 year ago

PiotrHab commented 1 year ago

Hello Daniel First of all big thanks for the design, powerfull and affordable product comparing to other solutions. "Out of the box" it works fine, ebusd on RPi works too, so no problem here.

I wanted to try out latest code, so i downloaded the project to PIO which unfortunately failed to upload to esp32.

pio run -e esp32-c3 -t upload

...compiles ok but then ...

Serial port COM11 Connecting......................................

A fatal error occurred: Failed to connect to ESP32-C3: Invalid head of packet (0x08): Possible serial noise or corruption.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html *** [upload] Error 2 ================================================= [FAILED] Took 47.80 seconds =================================================

Environment Status Duration


esp32-c3 FAILED 00:00:47.800 ============================================ 1 failed, 0 succeeded in 00:00:47.800 ============================================

OS ? - Win10, VScode, PIO (esp32 platform, prooved to run other esp32 projects with vroom, d1 mini, etc) Adapter hardware ? - esp32-c3 (latest hardware batch) Why not OTA? - i want to program my stuff there too, so basically customize it using PIO. Power scheme? - jumper set to power from USB Other things? - When adapter is connected on usb-c, win shows unknown USB device

Is there any specific win driver i should install ? it doesn't look like it is FT or CH family usb to serial.

danielkucera commented 1 year ago

Hi @PiotrHab , thanks for detailed description. I haven't had chance to update the documentation yet. Please short PROG and GND pins before connection the device to USB. It should enumerate differently.

PiotrHab commented 1 year ago

Works like a charm now, thanks