Noltari/pico-uart-bridge

Flashing ESP Device through ESPtool

mikeneiderhauser opened this issue · 4 comments

Looking for some assistance using your pico-uart-bridge to flash an ESP device via esptool.

I currently keep getting timeouts through ESPtool. When I connect to minicom and look at the ttyACM0 device and power cycle the ESP chip on UART0, i do see activity, but can't seem to get flashing via ESPtool to work.

Any advice on getting this to work with esptool?

Thanks!

@mikeneiderhauser after merging #15 I could flash an ESP-01s through the ESPHome website (although it finished with an error it flashed succesfully), but I couldn't flash it with the ESPHome flasher.

Also sometimes I can see some corruption when connecting through serial port:
image

The error after flashing with ESPHome website was:
Installation failed: SlipReadError: Timed out waiting for packet header

I updated to the latest release u2f and attempted to flash again. I still can't seem to get it to connect.

tzhvh commented

It's a bit flaky but I tried esptool.py --port /dev/ttyACM0 --baud 76800 --chip esp8266 --before no_reset_no_sync --connect-attempts 0 read_mac and it worked okay for me, although I use a socket for the pico and esp8266 modules.

You will need to hold down the "Flash button" or pull down gpio0 on boot to enter the correct boot mode. the flashtool is likely spooked by the lack of DTR and RTS wiring.

Edit: I tried esptool.py --port /dev/ttyACM1 --baud 76800 --chip esp8266 --before no_reset_no_sync --connect-attempts 0 write_flash --flash_size=detect 0 ~/Downloads/firmware.bin and that worked fine as well

I'm having this issue with esptool as well, Adafruit web serial esptool does seem to work though. I haven't seen it fail or do anything weird.