EE351 wrote:Are you using the flash tool to upload the firmware or the IDE? Maybe the problem is with the flash tool?Edit: I just tried 4 different web browsers and the result is the same.
It is not a timeout built into the browser. It is a timeout in the transfer object. The dropzone utility needs an override. I am trying different values now.
On a side note, I tried using the flash tool to program one of the esp32 modules i have (hw-607). I got the following error in the serial output:
File "C:/Users/e5470/Downloads/ESPixelStick_TRAVIS-20210512184835 (1)/bin/esptool\esptool.py", line 2334, in write_flash
raise FatalError(("File %s (length %d) at offset %d will not fit in %d bytes of flash. " +
esptool.FatalError: File firmware/filesystem.bin (length 2072576) at offset 2686976 will not fit in 4194304 bytes of flash. Use --flash-size argument, or change flashing address.
I'm guessing this module doesn't have a big enough flash chip for this firmware? I noticed the dropdown in the flash tool has LoLin_ESP32_PRO_16MB_2MB specified.
That indicates the file system is too small. Your overall flash size must be much smaller.
I have uploaded a fix that increases the timeout on the transfer 100x. I also removed some code that slowed the transfer down
MartinMueller2003 wrote:I have uploaded a fix that increases the timeout on the transfer 100x. I also removed some code that slowed the transfer down
Great! When will this be available on a Travis-CI build for the flash tool?
It will be in the next build. Most likely sometime next week.
Just posting to keep an eye on this thread. I'm running ESPIxel Stick V3 D1 mini and looking to go to V4 with SD card and ESP32 (D1 mini size chip not the larger one.)
Shelby integrated my latest changes yesterday. They should be in the current test build.
FYI: I improved the transfer rate by ~20% and added some additional movement indicators. One of the files I uploaded took an hour and the progress bar would just sit there making you think the transfer is hung when it was actually making good progress. So I added a byte counter and a rate summary. On my network I get about 120KBps transfer rate. YMMV.
Latest code can be found at: https://github.com/forkineye/ESPixelStick
If you are looking for a release build with flash uploader, I keep the latest Alpha build here:
https://drive.google.com/file/d/1DG3wz8lbYNc371OIbeOqkzMaY5Zd2SKA/view?usp=sharing
