Python Forum

Full Version: Flashing bin files Always fail at 26%
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The problem is that Flashing bin files to esp-01, does not go past 26% with esptool.py

Running python v 3.84 on Windows 10 pro and Windows 7 .
The end result is always :" waiting for packet header, 1/4 of the way through........

I can make binary files from via command line : esptool.py --port COM4 read_flash 0x00000 0x400000 image.bin,--> BUT cloning / flashing the same BIN files on to a esp-01 stops at 26%

Here is a the printout:
C:\Python\python38\Lib\site-packages> esptool.py --port COM4 write_flash -fs 4MB -fm qio 0x0 image.bin [or using dio make no difference]
esptool.py v2.8
Serial port COM4
Connecting........_
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: xx:0d:8e:86:a0:xx
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash params set to 0x0040
Compressed 4194304 bytes to 1160468...
Writing at 0x00048000... (26 %)
A fatal error occurred: Timed out waiting for packet header


Every time it stops at 26%

The voltage Vcc to Gnd = 3.337V, before, during & after flashing ( the Volt supply comes from USB & AMS1117-3.3+some caps circuit. The voltage varies only 0.02V.
The baud does not effect it: --> eg @9600 stops 26% and $115200 stops 26%

Why does it not transfer the file?
Can anyone please please suggest a solution.. Thank you.
A few days later.............
I figured out why flashing stops at 26%.
This is because the esp memory can hold only 1Mb and the .bin file is 4MB.
The statement from Python "A fatal error occurred: Timed out waiting
for packet header"
, is of no use what so ever, it could mean a myriad of problems.
To increase the memory, I'll simply replace the 25Q80 chip with a larger version.
Problem solved..