Hi all,
I have purchased and received two Sonoff Dual r3 devices and am absolutely struggling to flash them with either Tasmota or ESPHome. I have flashed many devices with both Tasmota and ESPHome using either a FTDI or a raspberry pi (esptool).
I have followed the instructions on the blackadder page and followed along in the various youtube tutorials, but for some reason this time, i am getting stuck. I am getting the same errors with both sonoff devices.
When using the raspberry pi,
- to erase the firmware i have tried both:
sudo ./esptool.py --port /dev/ttyAMA0 erase_flash
and
esptool.py --port /dev/ttyAMA0 erase_flash
with the same result
esptool.py v3.1-dev
Serial port /dev/ttyAMA0
Connecting....
Detecting chip type... ESP32
Chip is ESP32-D0WD-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 94:b9:7e:69:9a:08
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
A fatal error occurred: Timed out waiting for packet content
- to flash the firmware i have tried both:
sudo ./esptool.py --chip esp32 --port /dev/ttyAMA0 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dout --flash_freq 40m --flash_size detect 0x1000 bootloader_dout_40m.bin 0x8000 partitions.bin 0xe000 boot_app0.bin 0x10000 tasmota32.bin
and
esptool.py --chip esp32 --port /dev/ttyAMA0 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dout --flash_freq 40m --flash_size detect 0x1000 bootloader_dout_40m.bin 0x8000 partitions.bin 0xe000 boot_app0.bin 0x10000 tasmota32.bin
to the same result
esptool.py v3.1-dev
Serial port /dev/ttyAMA0
Connecting.......
Chip is ESP32-D0WD-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 94:b9:7e:69:9a:08
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Warning: Could not auto-detect Flash size (FlashID=0x0, SizeID=0x0), defaulting to 4MB
Flash will be erased from 0x00001000 to 0x00004fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x0000ffff...
Compressed 15872 bytes to 10320...
Writing at 0x00001000... (100 %)
A fatal error occurred: Timed out waiting for packet header
When using the a windows machine, with esp-flasher i get the following error:
Using 'COM9' as serial port.
Connecting........_____....._____....._____....._____....._____....._____....._____
Unexpected error: ESP Chip Auto-Detection failed: Failed to connect to Espressif device: Timed out waiting for packet header
When trying to flash, i can see the rx led on the ftdi adapter flash, but the tx never flashes or lights up.
I have even gone out and purchased a new FTDI adapter thinking it was at fault, but it gives exactly the same error. This is the version i have (and yes i have updated the drivers)
http://deviceinbox.com/drivers/1486-ftdi-d3xx-cdm-drivers.html
Any help would be appreciated.