-
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
Can't erase_flash/write_flash: Timed out waiting for packet header (ESPTOOL-353) #120
Comments
Fixed by putting a 10 Ohm resistor between pins D3 (DIO 0) and GND! Seems as though the reset & programming circuit's pull-down timing is off (see right side of USB to UART section of the Wemos D1 mini schematic)
|
Thanks for posting an update. The circuit used on the D1 is very common on ESP8266 dev boards, so I think maybe Q1 or R7 on your board may not be soldered right. However, if anyone else also runs across this problem on OS X then it could still be a timing issue from esptool.py, so feel free to comment. |
I believe flashing v1.8.3 of micropython introduced the issue (from the binary on micropython.org). I was able to clear up lingering issues and can now re-upload Arduino without the additional resistor (between GND and DIO 0) by clearing the flash, re-uploading the boot binary (not sure if this matters), and then doing an initial upload with the Arduino IDE:
|
I have same problem with a lolin V3 board. I can read I have the following results:
|
This indicates the flash chip (inside the metal can on the board) isn't responding at all to the ESP chip. Try removing your development board from the breadboard. Sometimes breadboards can short the SPI flash pins on the board and cause this kind of problem. If it's the same with the board totally disconnected from the breadboard then you have a faulty development board. The quickest solution is probably to replace it. |
I have upgraded a sonoff s20 with a winbond w25q128fv but i fail at flashing it. |
@badbyt3 Impossible to say without more information. Please open a new issue with the full command line and output from esptool.py, and as many relevant details as possible. |
I had to change two things in step 2: 0x10000 overlapped according to the tool, but I could add a 0 there and also for 0x2... 0x3... Also, it does not work if I enter this baud rate. If I leave the baud rate, it's fine. Nevertheless, flashing via Arduino IDE does only work if I switch to 5V (maybe, because it needs more amps and more voltage also increases this? not sure). But even then, I need to reconnect power to ESP8266 to flash again |
This video does not address any troubleshooting at all. Everything works there right away |
ops soory, I posted the solution on the wrong page, actually i had multiple
pages opened consecutively.
…On Sat, May 25, 2019 at 11:02 PM IceMichael ***@***.***> wrote:
watch this video on youtube and u will get it, i suffered from the same
problem too but this video resolved the problem, anyways thanks me later,
the link is below:
https://youtu.be/ji71cHaGW8w
This video does not address any troubleshooting at all. Everything works
there right away
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#120?email_source=notifications&email_token=AL7UYYDTHFQP2TTLVWM64ZLPXF5K7A5CNFSM4CNOM2Q2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWHWNQI#issuecomment-495937217>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AL7UYYCDUSSJ3HYGWOF7PCLPXF5K7ANCNFSM4CNOM2QQ>
.
|
@Elypson thx for the comment. It came a little late because I tried to replace the flash with another chip where I accidentally ripped off a solder pad. :( |
Hi @Elypson , I'm glad you got things working. FWIW, most of the steps you posted should not be necessary. One I don't know how the 2016 MicroPython 1.8.3 release could have messed up the ESP8266 enough that it could't be recovered via esptool.py. Older versions of esptool.py will fail if the chip is in deep sleep (#351) but this is no longer an issue as of esptool.py v2.6. I would expect that any failure of esptool.py v2.6 to flash is due to a hardware problem. If the ESP8266 doesn't boot the firmware correctly after flashing, then a single "erase_flash" command may help remove any data which is leftover from older firmware. |
I tried all the things I saw on the Internet. The only solution that worked was this.
I hope someone will use it! |
This worked for me, thanks for sharing! |
work for me |
I've been having lots of issues trying to reflash a Wemos D1 mini (ESP-12F, CH340G USB<->Serial, 4M bytes flash). I was previously able to flash it with the Arduino IDE, but after trying to reflash it with the micropython distribution, it seems as though I've soft-bricked it.
I get the following error with esptool.py when trying to erase the flash:
If I try to write_flash, I get the same error:
I'm able to read the chip_id and MAC, but apparently not the flash_id:
If I connect with a serial terminal at 74880 baud I can see the module communicates from the bootloader:
I've tried on Mac OS X 10.11.6 (with the signed driver) and on a Windows 10 machine (with automatically installed driver), both with the same results. I've also tried with virtual machines and a multitude of cables. Nothing seems to reflash it (I've tried esptool.py, esptool-ck, NodeMCU Flasher, and the espressif flash tool).
Any suggestions??
The text was updated successfully, but these errors were encountered: