Skip to content

Commit a04c225

Browse files
committed
Merge remote-tracking branch 'remotes/esp8266/master' into httpUpdate
2 parents 5a4ced2 + 3f0fdab commit a04c225

File tree

1 file changed

+20
-42
lines changed

1 file changed

+20
-42
lines changed

doc/platformio.md

Lines changed: 20 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,24 @@ platformio boards espressif
1919
# --------------------------------------------------------------------------------------------------------
2020
# Type MCU Frequency Flash RAM Name
2121
# --------------------------------------------------------------------------------------------------------
22-
# esp01 esp8266 80Mhz 512Kb 32Kb Espressif ESP8266 ESP-01 board
23-
# esp01_1m esp8266 80Mhz 1024Kb 32Kb Espressif ESP8266 ESP-01-1MB board
24-
# esp12e esp8266 80Mhz 4096Kb 32Kb Espressif ESP8266 ESP-12E board (NodeMCU)
22+
# huzzah esp8266 80Mhz 1024Kb 80Kb Adafruit HUZZAH ESP8266
23+
# espino esp8266 80Mhz 1024Kb 80Kb ESPino
24+
# esp12e esp8266 80Mhz 1024Kb 80Kb Espressif ESP8266 ESP-12E
25+
# esp01 esp8266 80Mhz 512Kb 80Kb Espressif Generic ESP8266 ESP-01
26+
# nodemcu esp8266 80Mhz 1024Kb 80Kb NodeMCU 0.9 & 1.0
27+
# modwifi esp8266 80Mhz 1024Kb 80Kb Olimex MOD-WIFI-ESP8266(-DEV)
28+
# thing esp8266 80Mhz 512Kb 80Kb SparkFun ESP8266 Thing
29+
# esp210 esp8266 80Mhz 1024Kb 80Kb SweetPea ESP-210
30+
# d1 esp8266 80Mhz 1024Kb 80Kb WeMos D1
31+
# d1_mini esp8266 80Mhz 1024Kb 80Kb WeMos D1 mini
2532
# ...
2633

2734
#
2835
# Initialise base project
2936
#
3037
platformio init --board %TYPE%(see above)
31-
# for example, initialise project for ESP8266 ESP-12E board (NodeMCU)
32-
platformio init --board esp12e
38+
# for example, initialise project for Espressif Generic ESP8266 ESP-01
39+
platformio init --board esp01
3340

3441
# The next files/directories will be created in myproject
3542
# platformio.ini - Project Configuration File. |-> PLEASE EDIT ME <-|
@@ -49,43 +56,14 @@ platformio run
4956
platformio run --target upload
5057
```
5158

52-
## OTA firmware uploading
59+
## Advanced documentation
5360

54-
There are 2 options:
61+
- [OTA update](http://docs.platformio.org/en/latest/platforms/espressif.html#ota-update)
62+
* [Authentication and upload options](http://docs.platformio.org/en/latest/platforms/espressif.html#authentication-and-upload-options)
63+
- [Custom CPU Frequency and Upload Speed](http://docs.platformio.org/en/latest/platforms/espressif.html#custom-cpu-frequency-and-upload-speed)
64+
- [Custom Flash Size](http://docs.platformio.org/en/latest/platforms/espressif.html#custom-flash-size)
65+
- [IDE Integration](http://docs.platformio.org/en/latest/ide.html) (Atom, CLion, Eclipse, Qt Creator, Sublime Text, VIM, Visual Studio)
66+
- [Project Examples](http://docs.platformio.org/en/latest/platforms/espressif.html#examples)
5567

56-
- Directly specify `--upoad-port` in command line
57-
```bash
58-
platformio run --target upload --upload-port IP_ADDRESS_HERE
59-
```
60-
- Specify [upload_port](http://docs.platformio.org/en/latest/projectconf.html#upload-port) option in `platformio.ini`
61-
```ini
62-
[env:***]
63-
...
64-
upload_port = IP_ADDRESS_HERE
65-
```
66-
67-
### Authentication and upload options
68-
69-
You can pass additional options/flags to OTA uploader using [upload_flags](http://docs.platformio.org/en/latest/projectconf.html#upload-flags) option in `platformio.ini`
70-
```ini
71-
[env:***]
72-
upload_flags = --port=8266
73-
```
74-
75-
Availalbe flags
76-
- `--port=ESP_PORT` ESP8266 ota Port. Default 8266
77-
- `--auth=AUTH` Set authentication password
78-
- `--spiffs` Use this option to transmit a SPIFFS image and do not flash the module
79-
80-
For the full list with availalbe options please run this command `~/.platformio/packages/framework-arduinoespressif/tools/espota.py -h`.
81-
82-
83-
## IDE Integration
84-
In addition, PlatformIO [can be integrated into the popular IDEs](http://docs.platformio.org/en/latest/ide.html). For example, initialise project for Espressif ESP8266 ESP-01 board and Eclipse IDE
85-
```
86-
platformio init --board esp01 --ide eclipse
87-
```
88-
Then [import project](http://docs.platformio.org/en/latest/ide/eclipse.html) using `Eclipse Menu: File > Import... > General > Existing Projects into Workspace`.
89-
90-
## Demo of OTA firmware uploading
68+
## Demo of OTA update
9169
[![PlatformIO and OTA firmware uploading to Espressif ESP8266 ESP-01](http://img.youtube.com/vi/W8wWjvQ8ZQs/0.jpg)](http://www.youtube.com/watch?v=W8wWjvQ8ZQs "PlatformIO and OTA firmware uploading to Espressif ESP8266 ESP-01")

0 commit comments

Comments
 (0)