mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Explain in documentation how to overwrite upload reset method for Espressif development platform // Resolve #444
This commit is contained in:
@ -7,6 +7,9 @@ PlatformIO 2.0
|
|||||||
2.7.2 (2016-01-??)
|
2.7.2 (2016-01-??)
|
||||||
~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
* Explained in documentation how to `overwrite upload reset method <http://docs.platformio.org/en/latest/platforms/espressif.html#custom-reset-method>`_
|
||||||
|
for Espressif development platform
|
||||||
|
(`issue #444 <https://github.com/platformio/platformio/issues/444>`_)
|
||||||
* Fixed builder for mbed framework and ST STM32 platform
|
* Fixed builder for mbed framework and ST STM32 platform
|
||||||
|
|
||||||
|
|
||||||
|
@ -53,6 +53,34 @@ To override default LD script please use :ref:`projectconf_build_flags` from
|
|||||||
[env:myenv]
|
[env:myenv]
|
||||||
build_flags = -Wl,-Tesp8266.flash.4m.ld
|
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:
|
.. _platform_espressif_uploadfs:
|
||||||
|
|
||||||
Uploading files to file system SPIFFS
|
Uploading files to file system SPIFFS
|
||||||
|
Reference in New Issue
Block a user