igrr / mkspiffs

Tool to build and unpack SPIFFS images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A fatal error occurred: Timed out waiting for packet header

tsctrl opened this issue · comments

Hi @igrr ,

i am using mkspiffs to create image before flashing to the external spi flash but having timed out issue during flashing.
i am using windbond 16MB external flash added to VSPI in esp32.

mkspiffs.exe -c data --size 0xFFA000 --page 256 --block 4096 ext-spiffs.bin
esptool.py --chip esp32 --port com6 --baud 115200 write_flash 0x0 ext-spiffs.bin --flash_mode dio --flash_size 16MB --spi-connection 18,19,23,21,5

esptool.py v3.1-dev
Serial port com6
Connecting........_
Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 24:6f:24:c3:a5:e5
Uploading stub...
Running stub...
Stub running...
Configuring SPI flash mode...
Configuring flash size...
Compressed 16752640 bytes to 354021...
Writing at 0x00010000... (22 %)
A fatal error occurred: Timed out waiting for packet header

wondering what was not correct here. Please help and thank you in advance!

I also try to format it using code but end up with error as below:

I (339) Initializing external SPI Flash
I (349) Pin assignments:
I (349) MOSI: 23 MISO: 19 SCLK: 18 CS: 5
I (359) spi_flash: detected chip: winbond
I (359) spi_flash: flash io: dio
I (359) Initialized external Flash, size=16384 KB, ID=0xef4018
I (369) Adding external Flash as a partition, label="ext_storage", size=16384 KB
I (379) Listing data partitions:
I (379) - partition 'nvs', subtype 2, offset 0x9000, size 24 kB
I (389) - partition 'phy_init', subtype 1, offset 0xf000, size 4 kB
I (399) - partition 'int_storage', subtype 130, offset 0x180000, size 2048 kB
I (409) - partition 'ext_storage', subtype 130, offset 0x0, size 16384 kB
I (419) : Mounting SPIFF file-system
E (419) SPIFFS: mount failed, -10025
I (429) Format SPIFFS!
W (429) SPIFFS: mount failed, -10025. formatting...
E (12149) SPIFFS: failed to erase addr 0012b000, size 00001000, err 263
E (12679) SPIFFS: failed to write addr 0012b0fe, size 00000002, err 263
E (12679) SPIFFS: format failed, -10027
E (12679) Formatting SPIFFS failed! Error: ESP_FAIL
E (12679) Failed to mount SPIFFS (ESP_FAIL)

false alarm, this is because i have multiple spi device connected