-
-
Notifications
You must be signed in to change notification settings - Fork 772
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
Faster flashing for ESP8266 (and CC3200) boards #592
Comments
What is your board? Do you use specific LD script? |
Just verified with huzzah and NodeMCU breakout boards. It's around 40 sec for me. I'm using the default settings with the PlatformIO IDE |
maybe this article could help to improve the flashing speed |
+1 for the idea that @Jorgen-VikingGod suggested. Using the modified esptool.py from the Mongoose platform (Source: https://github.com/cesanta/mongoose-flashing-tool/blob/master/common/platforms/esp8266/stubs/esptool.py) speeds up flashing a lot compared to the one shipped with PlatformIO: PlatformIO esptool: Until this or another fast flasher is integrated, one could do a workaround like this (only tested with PlatformIO 3): Place the modded esptool to
[env:nodemcuv2]
platform = espressif
framework = arduino
board = nodemcuv2
upload_speed = 3000000
extra_script = tools/custom_uploader.py
import os
from SCons.Script import DefaultEnvironment
env = DefaultEnvironment()
esptool_mod = "{0}/tools/esptool-cesanta.py".format(env['PROJECT_DIR'])
env.Replace(UPLOADER=esptool_mod)
env.Replace(UPLOADERFLAGS=[
'--port',
'$UPLOAD_PORT',
'write_flash',
'--flash_baud=$UPLOAD_SPEED',
'0'
])
env.Replace(UPLOADCMD='$UPLOADER $UPLOADERFLAGS $SOURCE') |
Moved to platformio/platform-espressif8266#15 |
Flashing of the ESP8266 boards takes a while. Anybody who has flashed some of them noticed it's about a minute. I saw this post blog today. Those guys at Cesanta Software have created a modified version of the esptool but also have another flash tool called Flash'N'Chips which reduces the flash times significantly. It would be great to have the flash time reduced for PlatformIO using these 2 options.
The text was updated successfully, but these errors were encountered: