-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot flash ESP8266EX in smart powerstrip (ESPTOOL-785) #941
Comments
There is probably something connected to the rx / tx gpios disturbing the flash process. |
I'm afraid that's impossible as it would mean desoldering the module carrying the ESP which is in immediate vincinity of the transformer that is powering the ESP and (presumably) the USB ports. This is a device which is carrying mains voltage in large parts of it and tinkering around more than trying to flash a new firmware is a no-go for me. At the moment I'm pinning my hopes on a different serial-to-usb adapter which I have just ordered and that should arrive on Monday. I'll wait and see. |
Hi @crapforge, I am not sure about what's causing the failures, but they seem to happen whenever the ESP starts writing to the flash chip. Maybe it is write-protected (or just a region). You can try inspecting and setting the flash register bits with the read_flash_status and write_flash_status commands. Please let us know if this or a new USB-to-UART bridge helps! |
Using a CP2102-based serial-to-usb adapter I was finally able to flash Tasmota successfully. Thanks for all suggestions! |
I am happy you could resolve the issue. Thanks for your report! |
Operating System
Fedora 39 and Windows 10
Esptool Version
v4.7.0 (Windows) / v4.6.2 (Linux)
Python Version
Python 3.10 (Windows) / ? Linux (device not available atm)
Chip Description
ESP8266EX
Device Description
Yagala YFTIT037 Smart Powerstrip, identical to SWB2 3AC + 2USB Power Strip as described on https://templates.blakadder.com/SWB2.html
Hardware Configuration
Relays specific to function as smart powerstrip
How is Esptool Run
Windows terminal / Bash on Linux
Full Esptool Command Line that Was Run
python -m esptool -b 9600 --port COM14 erase_flash AND python -m esptool --port COM14 -b 9600 write_flash -fm dout 0x0 tasmota-DE.bin
Esptool Output
More Information
I first tried using tasmotizer 1.2 which reproducibly stopped at 10% while flashing showing a "Timed out waiting for packet header" error message. Erasing flash stopped consistently at 50% and timed out after a while.
After several attempts I switched over to using
esptool
directly to have more control over baud rate and be probably able to narrow down the problem to transfer speed issues or something like this, but to no avail.Then I found #890 and tried flashing with the
--no-compress
option, but unfortunately this did not help either.My
esptool.cfg
with the following settings did not improve anything:flash_id
shows:After that I tried flashing an ESP8266 on a NodeMCU v3 by connecting my CH340G serial-to-usb adapter directly to the RX/TX pins, which worked absolutely perfect, so I am not thinking that my adapter is to blame. This working chip is a
I connected my CH340G adapter directly to an usb port of my computer to rule out any cable or hub problems, the problem persisted.
Can this be an issue with the flash chip itself or a bug in
esptool
?Other Steps to Reproduce
No response
I Have Read the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: