Python Forum
Flashing bin files Always fail at 26%
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Flashing bin files Always fail at 26%
#1
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.
Reply
#2
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..
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Fail install package using pip ez_daniel 5 5,835 Mar-10-2023, 04:29 PM
Last Post: Larz60+
  ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED]certificate verify fail byronbonkers 0 1,803 Feb-19-2023, 10:13 PM
Last Post: byronbonkers

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020