Skip to content
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

Support request: Error writing filesystem image for ESP8266 #297

Open
PaulWieland opened this issue Dec 2, 2022 · 7 comments
Open

Support request: Error writing filesystem image for ESP8266 #297

PaulWieland opened this issue Dec 2, 2022 · 7 comments

Comments

@PaulWieland
Copy link

PaulWieland commented Dec 2, 2022

I'm trying to setup ESP Web Tools to write a two part (firmware and file system) to an ESP8266.

The first ratgdo_esp8266_v2.0a.bin file at offset 0 seems to write okay, but then it times out right after it starts to write the second ratgdo_esp8266_v2.0a_littlefs.bin (~3mb) file at offset 1048576.
image

I got the offset number from platform.io when uploading the filesystem:

Wrote 3121152 bytes (679027 compressed) at 0x00100000 in 74.9 seconds (effective 333.3 kbit/s)...

0x00100000 in decimal is 1048576

Here is the output of the browser console during the flashing process:

Writing at 0x48000... (100%)
flash_defl_block 8d 097
check_command write compressed data to flash after seq 18
Read with timeout 5000
Wrote 419216 bytes (296238 compressed) at 0x0 in 28.729 seconds.
Data Length 3121152
Image Length 3121152
_update_image_flash_params keep keep keep
Compressed image 
Uint8Array(679025)
Compressed 3121152 bytes to 679025...
check_command enter compressed flash mode
Read with timeout 3000
Write loop 1048576 0 42
Writing at 0x100000... (2%)
flash_defl_block 78 0da
check_command write compressed data to flash after seq 0
Read with timeout 5000
Write loop 1048576 1 42
Writing at 0x104000... (4%)
flash_defl_block d5 08b
check_command write compressed data to flash after seq 1
Read with timeout 5000

Does anyone know what I'm doing wrong?

UPDATE:

From the log you can see that the step Writing at 0x104000... (4%) is where it times out. In platformio, this step takes longer than the rest, but it does continue. How can I increase the Read with timeout value?

@hacktronics
Copy link

I am also facing the timeout issue, while writing spiffs.bin to esp32.

@PaulWieland
Copy link
Author

I wish I could get some support on this. I can't figure out how to modify the read with timeout value, or even where in the source code that it's set.

@playground
Copy link

@PaulWieland did you get this resolved?

@PaulWieland
Copy link
Author

No, unfortunately not.

@playground
Copy link

Anyone, any suggestions?

@Jason2866
Copy link
Contributor

Using latest Version? Changes are done in used esptool.js regarding timeouts.

@thorrak
Copy link
Contributor

thorrak commented Jul 2, 2023

What is the specific device you are having this issue with?

I ask, as I've had the latest Lolin D1 Mini v4.0.0 devices fail, where earlier versions (v3.x, with the Micro USB connectors) succeed. Interestingly, this failure occurs both with ESP Web Tools as well as with older esptool versions, but seems to succeed with the latest esptool.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants