igrr / esptool-ck

ESP8266 build/flash helper tool by Christian Klippel
GNU General Public License v2.0
360 stars 123 forks source link

BLOCKSIZE_FLASH #7

Open onkelfunny opened 9 years ago

onkelfunny commented 9 years ago

what do you think about higher BLOCKSIZE_FLASH? I my test i get this Upload times: BLOCKSIZE_FLASH = 0x0400 => Upload-Time: 27 Seconds BLOCKSIZE_FLASH = 0x0800 => Upload-Time: 25 Seconds BLOCKSIZE_FLASH = 0x1800 => Upload-Time: 22 Seconds

JelmerT commented 8 years ago

I'm voting for a configurable BLOCKSIZE_FLASH.

When using the Cactus Micro Rev2 (github), which uses an ATMEGA32U4 as USB-serial converter, I had esptool hard crash at the 'writing' stage with BLOCKSIZE_FLASH = 0x0400. (Only solution was to physically unplug USB)

When changed to BLOCKSIZE_FLASH = 0x0100 uploading works perfectly (probably a little slower though).

This is the same change that @AprilBrother made to their version of the esptool.py