-
-
Notifications
You must be signed in to change notification settings - Fork 799
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
esptool reset mode #351
Comments
Take a look on http://docs.platformio.org/en/latest/projectconf.html#extra-script See related #247 (comment)
|
Do you need a help with http://docs.platformio.org/en/latest/projectconf.html#extra-script ? |
It would be great if you could provide an example for adding additional options, as my Python skill is very low. But that If it's not too much for asking, the Arduino for esp8266 framework comes with
Thanks! |
from SCons.Script import DefaultEnvironment
env = DefaultEnvironment()
env.Replace(
MYUPLOADERFLAGS=[
"-vv",
"-cd", "nodemcu",
"-cb", "$UPLOAD_SPEED",
"-cp", "$UPLOAD_PORT",
"-ca", "0x00000",
"-cf", "$SOURCE"
],
UPLOADCMD='$UPLOADER $MYUPLOADERFLAGS',
)
[env:esp01]
platform = espressif
framework = arduino
board = esp01
extra_script = platformio_extra_script.py Did it help you? |
Wow... Super helpful! Thanks man! I'll try tonight. Will confirm the result. |
Please re-open this issue if you still need help. |
Sorry for late update. I can confirm that your guidance works. Thanks! |
@ivankravets could you explain the meaning of the |
Hi @andriyadi |
Would be great if we can change the reset mode to be used by esptool, for uploading firmware to esp8266. As we know, esptool supports 2 reset modes now via
-cd
option: ck and nodemcu.I check in this file
platformio/platformio/builder/scripts/espressif.py
, the-cd
option is hardcoded tock
. Can I change that via platform.ini, or I should the source code of that espressif.py file?Anyway, great progress so far! Definitely gonna keep using platformio.
Thanks.
The text was updated successfully, but these errors were encountered: