So I got myself an ESP32 and flashed it as a bluetooth proxy via the webtools (ESPHome Bluetooth Proxy)
This all worked nicely but then I decided I wanted to redo the device so installed ESP Home docker and have tried to flash it again with an updated definition.
However now the device just won’t flash and things just sit there stuck on preparing installation (I have left it for an hour) and no matter what I try it just won’t flash or respond to just about anything now.
Possibly not the wisest of moves but I attempted to follow a factory resett based on this (ESP32 Factory Reset, Erase EEPROM and Repair Bootloader using Online ESPtool- Most Easiest Way - YouTube) but even when using the Espressif tools it connects but then times out almost instantly
esptool.js v0.1-dev
Serial port WebSerial VendorID 0x10c4 ProductID 0xea60
Connecting.......
Detecting chip type... ESP32
Chip is ESP32-D0WD-V3 (revision 3)
Features: Wi-Fi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: xx:xx:xx:xx:xx:xx
Uploading stub...
Running stub...
Stub running...
Changing baudrate to 115200
Changed
Erasing flash (this may take a while)...
Error: Timeout
Erasing flash (this may take a while)...
Error: Timeout
Erasing flash (this may take a while)...
Error: Timeout
Erasing flash (this may take a while)...
Chip erase completed successfully in 0.002s
``
where first timeout was instant, second took about 10 seconds, third was instant and then it instantly told me the erase was complete.
If I look in logs in ESP Home I just get
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
ets Jul 29 2019 12:21:46
repeated thousands of times with the same timestamp. I have let it run for about 20 minutes and it is still repeating but it is starting to cause Chrome to lock up due to the size of the log.
Any suggestions on how I can get the controller back into the same state as when it was shipped so I can actually flash it?