Added "upload_resetmethod" option to Project Configuration File platformio.ini and allowed to change default upload reset method for Espressif development platform // Resolve #444

This commit is contained in:
Ivan Kravets committed 2016-01-14 01:07:57 +02:00
1 parent 1b85a3ddd3
commit 52ceb64758
7 files changed
+45 -48

No files matched your search

+13 -28
View File
@@ -23,6 +23,19 @@ from :ref:`projectconf`
upload_speed = 9600
Custom Reset Method
-------------------
See :ref:`projectconf_upload_resetmethod` option from :ref:`projectconf`
.. code-block:: ini
[env:esp12e]
platform = espressif
framework = arduino
board = esp12e
upload_resetmethod = ck
.. _platform_espressif_customflash:
Custom Flash Size
@@ -53,34 +66,6 @@ To override default LD script please use :ref:`projectconf_build_flags` from
[env:myenv]
build_flags = -Wl,-Tesp8266.flash.4m.ld
Custom Reset Method
-------------------
To overwrite predefined reset method for uploading please use :ref:`projectconf_extra_script`.
For example, default reset method for ``esp12e`` board is ``nodemcu``. Let's
overwrite it to ``ck``:
* :ref:`projectconf`
.. code-block:: ini
[env:esp12e]
platform = espressif
framework = arduino
board = esp12e
extra_script = extra_script.py
* ``extra_script.py`` should be located on the same level as :ref:`projectconf`
.. code-block:: python
from SCons.Script import DefaultEnvironment
env = DefaultEnvironment()
env['BOARD_OPTIONS']['upload']['resetmethod'] = 'ck'
.. _platform_espressif_uploadfs:
Uploading files to file system SPIFFS
+7
View File
@@ -445,6 +445,13 @@ which "uploader" tool uses when sending firmware to board.
Extra flags for uploader. Will be added to the end of uploader command. If you
need to override uploader command or base flags please use :ref:`projectconf_extra_script`.
.. _projectconf_upload_resetmethod:
``upload_resetmethod``
^^^^^^^^^^^^^^^^^^^^^^
Specify reset method for "uploader" tool. This option isn't available for all
development platforms. The only :ref:`platform_espressif` supports it.
Library options
~~~~~~~~~~~~~~~