Chat freely about anything...

User avatar
By Luiz Eduardo Simões
#24662 So, i got a ESP 01, and i stuttered to make it work. Then I got it to respond to the AT command, but everything else would return error.

Then I tried to flash another firmware to it, and I always receive the "Invalid head of packet" error.

Here's a stack trace:
Code: Select allC:\esptool-master>esptool.py -p COM3 write_flash 0x00000 FW.bin
Connecting...
Erasing flash...
Writing at 0x00000400... (0 %)
Traceback (most recent call last):
  File "C:\esptool-master\esptool.py", line 570, in <module>
    esp.flash_block(block, seq)
  File "C:\esptool-master\esptool.py", line 204, in flash_block
    struct.pack('<IIII', len(data), seq, 0, 0)+data, ESPROM.checksum(data))[1] !
= "\0\0":
  File "C:\esptool-master\esptool.py", line 107, in command
    raise Exception('Invalid head of packet')
Exception: Invalid head of packet


My setup is :

FTDI to RX and TX to module.
VCC on 3.3v and CH_PD, and groud coming from a AZ1117T regulator, wich power comes from an arduino 5V port. The arduino is powered up with a 9V font with 1A max Current.

Tried to connect the regulator directly into the 9v font, didn't changed.

Tried flashing firmware with a ton of tools, all of them return this same error, nodeMCU says "flash timeout".

I tried everything that i know, but I can't get it to work, please help D: