Setup: Macbook Pro 2020 with a Satechi USB dongle, which serves the usb connections to the microcontroller. The USB cable suited for file transferring. I am using an ESP32-wroom-32E, but when that failed I also tried with an ESP32-wroom-32D and an ESP32 (v1). All of them are development boards.
Tried to provision with the following command from https://docs.toit.io/getstarted/provision/:
toit serial provision --baud 460800 -p wifi.ssid=toitwifi -p wifi.password=toitware -m esp32-4mb
This resulted in the following:
erasing device flash
failed to write device partitions, do you want to retry? [y/n]
Retried a few times and stopped it, since nothing happened.
The log gave the following:
Running "/Users/jacobjensen/.cache/toit/tools/esptool_darwin_v3.0 --chip esp32 --port /dev/tty.usbserial-0001 --baud 460800 --before default_reset --after hard_reset erase_flash"
esptool.py v3.0
Serial port /dev/tty.usbserial-0001
Connecting........_____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
Update: The ESP32E was successfully provisioned. Choosing the port manually in the command and updating drivers worked. Turns out it that the default port was wrong. Installed the following drivers as well: https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers https://ftdichip.com/drivers/vcp-drivers/. The command that worked looks like this:
toit serial provision --baud 460800 -p wifi.ssid=toitwifi -p wifi.password=toitware -m esp32-4mb --port /dev/tty.SLAB_USBtoUART
The ESP32D and ESP32 v1 are still failing at provisioning. Can it be hardware related?