Skip to content

Commit

Permalink
Fix reset method for Espressif NodeMCU (ESP-12E Module) // Resolve #380
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Dec 16, 2015
1 parent d3b7fc7 commit 34a5d36
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 50 deletions.
7 changes: 7 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ Release History
PlatformIO 2.0
--------------

2.6.1 (2015-12-??)
~~~~~~~~~~~~~~~~~~

* Fixed reset method for Espressif NodeMCU (ESP-12E Module)
(`issue #380 <https://github.com/platformio/platformio/issues/380>`_)


2.6.0 (2015-12-15)
~~~~~~~~~~~~~~~~~~

Expand Down
13 changes: 3 additions & 10 deletions docs/frameworks/arduino.rst
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ BQ
- RAM

* - ``zumbt328``
- `BQ ZUM BT-328 board <http://www.bq.com/gb/products/zum.html>`_
- `BQ ZUM BT-328 <http://www.bq.com/gb/products/zum.html>`_
- ATMEGA328P
- 16 MHz
- 32 Kb
Expand Down Expand Up @@ -485,21 +485,14 @@ Espressif
- RAM

* - ``esp01``
- `Espressif ESP8266 ESP-01 board <https://nurdspace.nl/ESP8266>`_
- `Espressif Generic ESP8266 ESP-01 <https://nurdspace.nl/ESP8266>`_
- ESP8266
- 80 MHz
- 512 Kb
- 32 Kb

* - ``esp01_1m``
- `Espressif ESP8266 ESP-01-1MB board <https://nurdspace.nl/ESP8266>`_
- ESP8266
- 80 MHz
- 1024 Kb
- 32 Kb

* - ``esp12e``
- `Espressif ESP8266 ESP-12E board (NodeMCU) <https://nurdspace.nl/ESP8266>`_
- `Espressif NodeMCU (ESP-12 Module) <https://nurdspace.nl/ESP8266>`_
- ESP8266
- 80 MHz
- 4096 Kb
Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/atmelavr.rst
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ BQ
- RAM

* - ``zumbt328``
- `BQ ZUM BT-328 board <http://www.bq.com/gb/products/zum.html>`_
- `BQ ZUM BT-328 <http://www.bq.com/gb/products/zum.html>`_
- ATMEGA328P
- 16 MHz
- 32 Kb
Expand Down
11 changes: 2 additions & 9 deletions docs/platforms/espressif.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,21 +86,14 @@ Espressif
- RAM

* - ``esp01``
- `Espressif ESP8266 ESP-01 board <https://nurdspace.nl/ESP8266>`_
- `Espressif Generic ESP8266 ESP-01 <https://nurdspace.nl/ESP8266>`_
- ESP8266
- 80 MHz
- 512 Kb
- 32 Kb

* - ``esp01_1m``
- `Espressif ESP8266 ESP-01-1MB board <https://nurdspace.nl/ESP8266>`_
- ESP8266
- 80 MHz
- 1024 Kb
- 32 Kb

* - ``esp12e``
- `Espressif ESP8266 ESP-12E board (NodeMCU) <https://nurdspace.nl/ESP8266>`_
- `Espressif NodeMCU (ESP-12 Module) <https://nurdspace.nl/ESP8266>`_
- ESP8266
- 80 MHz
- 4096 Kb
Expand Down
7 changes: 6 additions & 1 deletion examples/espressif/esp8266-webserver/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@
# Automatic targets - enable auto-uploading
# targets = upload

[env:esp01_8266]
[env:esp01]
platform = espressif
framework = arduino
board = esp01

[env:esp12e]
platform = espressif
framework = arduino
board = esp12e
2 changes: 1 addition & 1 deletion platformio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

VERSION = (2, 6, 0)
VERSION = (2, 6, "1.dev0")
__version__ = ".".join([str(s) for s in VERSION])

__title__ = "platformio"
Expand Down
31 changes: 5 additions & 26 deletions platformio/boards/espressif.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,40 +9,19 @@
"variant": "generic"
},
"frameworks": ["arduino"],
"name": "Espressif ESP8266 ESP-01 board",
"name": "Espressif Generic ESP8266 ESP-01",
"platform": "espressif",
"upload": {
"maximum_ram_size": 32768,
"maximum_size": 524288,
"protocol": "arduino",
"require_upload_port" : true,
"speed": 115200
},
"url": "https://nurdspace.nl/ESP8266",
"vendor": "Espressif"
},
"esp01_1m": {
"build": {
"core": "esp8266",
"extra_flags": "-DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DESP8266",
"f_cpu": "80000000L",
"ldscript": "esp8266.flash.1m128.ld",
"mcu": "esp8266",
"variant": "generic"
},
"frameworks": ["arduino"],
"name": "Espressif ESP8266 ESP-01-1MB board",
"platform": "espressif",
"upload": {
"maximum_ram_size": 32768,
"maximum_size": 1048576,
"protocol": "arduino",
"resetmethod": "ck",
"require_upload_port" : true,
"speed": 115200
},
"url": "https://nurdspace.nl/ESP8266",
"vendor": "Espressif"
},

"esp12e": {
"build": {
"core": "esp8266",
Expand All @@ -53,12 +32,12 @@
"variant": "nodemcu"
},
"frameworks": ["arduino"],
"name": "Espressif ESP8266 ESP-12E board (NodeMCU)",
"name": "Espressif NodeMCU (ESP-12 Module)",
"platform": "espressif",
"upload": {
"maximum_ram_size": 32768,
"maximum_size": 4194304,
"protocol": "arduino",
"resetmethod": "nodemcu",
"require_upload_port" : true,
"speed": 115200
},
Expand Down
2 changes: 1 addition & 1 deletion platformio/boards/misc.json
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@
"variant": "eightanaloginputs"
},
"frameworks": ["arduino"],
"name": "BQ ZUM BT-328 board",
"name": "BQ ZUM BT-328",
"platform": "atmelavr",
"upload": {
"disable_flushing": true,
Expand Down
2 changes: 1 addition & 1 deletion platformio/builder/scripts/espressif.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def BeforeUpload(target, source, env): # pylint: disable=W0613,W0621
UPLOADER=join("$PIOPACKAGES_DIR", "tool-esptool", "esptool"),
UPLOADERFLAGS=[
"-vv",
"-cd", "ck",
"-cd", "${BOARD_OPTIONS['upload']['resetmethod']}",
"-cb", "$UPLOAD_SPEED",
"-cp", "$UPLOAD_PORT",
"-ca", "0x00000",
Expand Down

0 comments on commit 34a5d36

Please sign in to comment.