-
-
Notifications
You must be signed in to change notification settings - Fork 801
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
Not clear how to overwrite $BOARD.options.resetmethod .. #444
Comments
Hi @seclorum! |
I'd really rather not do that, since it means maintaining another set of file(z) outside the project repository - rather would like to know how to over-ride the defaults for this key (esp12e.upload.resetmethod) in platformio_extra_script.py, since that is already a build artifact of platformio being tracked in the project repo:
It seems that this should be possible with UPLOAD_RESETMETHOD, per tools/platformio.py .. but my overriding of this var is not propagating and I'm probably not doing it properly anyway. |
Please use http://docs.platformio.org/en/latest/projectconf.html#extra-script
[env:esp12e]
platform = espressif
framework = arduino
board = esp12e
extra_script = extra_script.py
from SCons.Script import DefaultEnvironment
env = DefaultEnvironment()
env['BOARD_OPTIONS']['upload']['resetmethod'] = 'ck' |
…ressif development platform // Resolve #444
TODO: Implement Ping @crushedice2000 |
Please re-test with the latest http://docs.platformio.org/en/latest/installation.html#d-development-version |
@ivankravets: Thank you very much! |
Thanks! |
I would like to force my board.options.resetmethod="ck", but see no way to do that outside of editing the board.json file .. is there a way to override this for my board in a project-local config? (i.e. through platformio_extra_script.py - tried to override it like "esp12.board.options.resetmethod=ck" but no go ..
The text was updated successfully, but these errors were encountered: