Skip to content

Commit 26b1104

Browse files
committed
Attempt esp8266#2 at merging in changes from upstream.
2 parents 86204ca + 40c159f commit 26b1104

File tree

138 files changed

+9033
-6835
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+9033
-6835
lines changed

.travis.yml

+20-41
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,29 @@
11
sudo: false
22
language: bash
3-
os:
4-
- linux
3+
os: linux
4+
dist: trusty
55

6-
addons:
7-
apt:
8-
sources:
9-
- ubuntu-toolchain-r-test
10-
packages:
11-
- g++-4.8
6+
env:
7+
- BUILD_TYPE=build
8+
9+
install:
10+
- pip install --user -r doc/requirements.txt
1211

1312
script:
14-
- set -e
15-
- export CXX="g++-4.8" CC="gcc-4.8" GCOV="gcov-4.8"
16-
- echo -e "travis_fold:start:host_tests"
17-
- pushd $TRAVIS_BUILD_DIR/tests/host
18-
- make
19-
- make clean-objects
20-
- echo -e "travis_fold:end:host_tests"
21-
- echo -e "travis_fold:start:sketch_test_env_prepare"
22-
- popd
23-
- wget -O arduino.tar.xz https://www.arduino.cc/download.php?f=/arduino-nightly-linux64.tar.xz
24-
- tar xf arduino.tar.xz
25-
- mv arduino-nightly $HOME/arduino_ide
26-
- cd $HOME/arduino_ide/hardware
27-
- mkdir esp8266com
28-
- cd esp8266com
29-
- ln -s $TRAVIS_BUILD_DIR esp8266
30-
- cd esp8266/tools
31-
- python get.py
32-
- export PATH="$HOME/arduino_ide:$TRAVIS_BUILD_DIR/tools/xtensa-lx106-elf/bin:$PATH"
33-
- which arduino
34-
- cd $TRAVIS_BUILD_DIR
35-
- source tests/common.sh
36-
- install_libraries
37-
- echo -e "travis_fold:end:sketch_test_env_prepare"
38-
- echo -e "travis_fold:start:sketch_test"
39-
- build_sketches $HOME/arduino_ide $TRAVIS_BUILD_DIR/libraries "-l $HOME/Arduino/libraries"
40-
- echo -e "travis_fold:end:sketch_test"
41-
- echo -e "travis_fold:start:size_report"
42-
- cat size.log
43-
- echo -e "travis_fold:end:size_report"
13+
- $TRAVIS_BUILD_DIR/tests/common.sh
4414

45-
after_success:
46-
- pushd $TRAVIS_BUILD_DIR/tests/host
47-
- bash <(curl -s https://codecov.io/bash) -X gcov
15+
deploy:
16+
provider: releases
17+
prerelease: true
18+
api_key:
19+
secure: A4FBmqyhlzy33oPeZVolg2Q/A3ZcJ3WnRQqQJ3NAPy+qGM5xcboOYtwcLL9vKaHZGfUB7lUP9QVZFGou1Wrmo9DnPvAoe3+XvCaDRGzVMxeIpu7UStbBD4Knbh98tlbMvZCXYRlT4VcusI9bMLK6UWw4sMdPislBh2FEfglTiag=
20+
file_glob: true
21+
file:
22+
- package/versions/$TRAVIS_TAG/esp8266-$TRAVIS_TAG.zip
23+
- package/versions/$TRAVIS_TAG/package_esp8266com_index.json
24+
on:
25+
repo: esp8266/Arduino
26+
tags: true
4827

4928
notifications:
5029
email:

README.md

+24-34
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ This project brings support for ESP8266 chip to the Arduino environment. It lets
55

66
ESP8266 Arduino core comes with libraries to communicate over WiFi using TCP and UDP, set up HTTP, mDNS, SSDP, and DNS servers, do OTA updates, use a file system in flash memory, work with SD cards, servos, SPI and I2C peripherals.
77

8-
A large community is well established for questions and answers about Arduino for ESP8266 [ESP8266 Community Forum](http://www.esp8266.com/u/arduinoanswers)
9-
108
# Contents
119
- Installing options:
1210
- [Using Boards Manager](#installing-with-boards-manager)
@@ -18,35 +16,24 @@ A large community is well established for questions and answers about Arduino fo
1816
- [Contributing](#contributing)
1917
- [License and credits](#license-and-credits)
2018

21-
### Installing with Boards Manager ###
19+
### Installing with Boards Manager
2220

2321
Starting with 1.6.4, Arduino allows installation of third-party platform packages using Boards Manager. We have packages available for Windows, Mac OS, and Linux (32 and 64 bit).
2422

25-
- Install Arduino 1.6.8 from the [Arduino website](http://www.arduino.cc/en/main/software).
23+
- Install Arduino 1.8.2 from the [Arduino website](http://www.arduino.cc/en/main/software).
2624
- Start Arduino and open Preferences window.
2725
- Enter ```http://arduino.esp8266.com/stable/package_esp8266com_index.json``` into *Additional Board Manager URLs* field. You can add multiple URLs, separating them with commas.
2826
- Open Boards Manager from Tools > Board menu and install *esp8266* platform (and don't forget to select your ESP8266 board from Tools > Board menu after installation).
2927

30-
The best place to ask questions related to this core is ESP8266 community forum: http://www.esp8266.com/arduino.
31-
If you find this forum or the ESP8266 Boards Manager package useful, please consider supporting it with a donation. <br />
32-
[![Donate](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://www.paypal.com/webscr?cmd=_s-xclick&hosted_button_id=4M56YCWV6PX66)
33-
34-
#### Available versions
35-
36-
##### Stable version ![](http://arduino.esp8266.com/stable/badge.svg)
28+
#### Latest release [![Latest release](https://img.shields.io/github/release/esp8266/Arduino.svg)](https://github.com/esp8266/Arduino/releases/latest/)
3729
Boards manager link: `http://arduino.esp8266.com/stable/package_esp8266com_index.json`
3830

3931
Documentation: [http://esp8266.github.io/Arduino/versions/2.3.0/](http://esp8266.github.io/Arduino/versions/2.3.0/)
4032

41-
##### Staging version ![](http://arduino.esp8266.com/staging/badge.svg)
42-
Boards manager link: `http://arduino.esp8266.com/staging/package_esp8266com_index.json`
43-
44-
Documentation: [http://esp8266.github.io/Arduino/versions/2.3.0-rc2/](http://esp8266.github.io/Arduino/versions/2.3.0-rc2/)
45-
4633
### Using git version
47-
[![Linux build status](https://travis-ci.org/esp8266/Arduino.svg)](https://travis-ci.org/esp8266/Arduino) [![codecov.io](https://codecov.io/github/esp8266/Arduino/coverage.svg?branch=master)](https://codecov.io/github/esp8266/Arduino?branch=master)
34+
[![Linux build status](https://travis-ci.org/esp8266/Arduino.svg)](https://travis-ci.org/esp8266/Arduino)
4835

49-
- Install Arduino 1.6.8
36+
- Install Arduino 1.8.2 from the [Arduino website](http://www.arduino.cc/en/main/software).
5037
- Go to Arduino directory
5138
- Clone this repository into hardware/esp8266com/esp8266 directory (or clone it elsewhere and create a symlink)
5239
```bash
@@ -72,7 +59,7 @@ Linux 32/64, Linux ARM (like Raspberry Pi, BeagleBone, CubieBoard).
7259
- [What is PlatformIO?](http://docs.platformio.org/page/what-is-platformio.html)
7360
- [PlatformIO IDE](http://platformio.org/platformio-ide)
7461
- Quick Start with [PlatformIO IDE](http://docs.platformio.org/page/ide/atom.html#quick-start) or [PlatformIO Core](http://docs.platformio.org/page/core.html)
75-
- [Advanced using](http://docs.platformio.org/page/platforms/espressif.html) -
62+
- [Advanced usage](http://docs.platformio.org/page/platforms/espressif.html) -
7663
custom settings, uploading to SPIFFS, Over-the-Air (OTA) or using stage version
7764
- [Integration with Cloud and Standalone IDEs](http://docs.platformio.org/page/ide.html) -
7865
Cloud9, Codeanywhere, Eclipse Che (Codenvy), Atom, CLion, Eclipse, Emacs, NetBeans, Qt Creator, Sublime Text, VIM and Visual Studio
@@ -85,30 +72,33 @@ Using make instead of the Arduino IDE makes it easier to do automated and produc
8572

8673
### Documentation
8774

88-
Documentation for latest development version:
89-
90-
- [Reference](doc/reference.md)
91-
- [Libraries](doc/libraries.md)
92-
- [File system](doc/filesystem.md)
93-
- [OTA update](doc/ota_updates/readme.md)
94-
- [Supported boards](doc/boards.md)
95-
- [FAQ / Trubleshooting](doc/faq/readme.md)
96-
- [Change log](doc/changes.md)
75+
Documentation for latest development version: https://arduino-esp8266.readthedocs.io/en/latest/
9776

9877
### Issues and support ###
9978

100-
If you encounter an issue, you are welcome to submit it here on Github: https://github.com/esp8266/Arduino/issues.
101-
Please provide as much context as possible: version which you are using (you can check it in Boards Manager), your sketch code, serial output, board model, IDE settings (board selection, flash size, etc).
79+
[ESP8266 Community Forum](http://www.esp8266.com/u/arduinoanswers) is a well established community for questions and answers about Arduino for ESP8266.
80+
81+
If you find this forum useful, please consider supporting it with a donation. <br />
82+
[![Donate](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://www.paypal.com/webscr?cmd=_s-xclick&hosted_button_id=4M56YCWV6PX66)
83+
84+
If you encounter an issue which you think is a bug in the ESP8266 Arduino Core or the associated libraries, you are welcome to submit it here on Github: https://github.com/esp8266/Arduino/issues.
85+
86+
Please provide as much context as possible:
10287

103-
If you can not find the answers above, you can also try [ESP8266 Community Forum](http://www.esp8266.com/arduino)
88+
- ESP8266 Arduino core version which you are using (you can check it in Boards Manager)
89+
- your sketch code; please wrap it into a code block, see [Github markdown manual](https://help.github.com/articles/basic-writing-and-formatting-syntax/#quoting-code)
90+
- when encountering an issue which happens at run time, attach serial output. Wrap it into a code block, just like the code.
91+
- for issues which happen at compile time, enable verbose compiler output in the IDE preferences, and attach that output (also inside a code block)
92+
- ESP8266 development board model
93+
- IDE settings (board choich, flash size)
10494

10595
### Contributing
10696

107-
For minor fixes of code and documentation, go ahead and submit a pull request.
97+
For minor fixes of code and documentation, please go ahead and submit a pull request.
10898

109-
Check out the list of issues which are easy to fix — [easy issues for 2.2.0](https://github.com/esp8266/Arduino/issues?q=is%3Aopen+is%3Aissue+milestone%3A2.2.0+label%3A%22level%3A+easy%22). Working on them is a great way to move the project forward.
99+
Check out the list of issues which are easy to fix — [easy issues for 2.4.0](https://github.com/esp8266/Arduino/issues?q=is%3Aopen+is%3Aissue+milestone%3A2.4.0+label%3A%22level%3A+easy%22). Working on them is a great way to move the project forward.
110100

111-
Larger changes (rewriting parts of existing code from scratch, adding new functions to the core, adding new libraries) should generally be discussed [in the chat](https://gitter.im/esp8266/Arduino) first.
101+
Larger changes (rewriting parts of existing code from scratch, adding new functions to the core, adding new libraries) should generally be discussed by opening an issue first.
112102

113103
Feature branches with lots of small commits (especially titled "oops", "fix typo", "forgot to add file", etc.) should be squashed before opening a pull request. At the same time, please refrain from putting multiple unrelated changes into a single pull request.
114104

boards.txt

+129
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
menu.BoardModel=Model
12
menu.UploadSpeed=Upload Speed
23
menu.CpuFrequency=CPU Frequency
4+
menu.CrystalFreq=Crystal Frequency
35
menu.FlashSize=Flash Size
46
menu.FlashMode=Flash Mode
57
menu.FlashFreq=Flash Frequency
@@ -36,6 +38,10 @@ generic.menu.CpuFrequency.80.build.f_cpu=80000000L
3638
generic.menu.CpuFrequency.160=160 MHz
3739
generic.menu.CpuFrequency.160.build.f_cpu=160000000L
3840

41+
generic.menu.CrystalFreq.26=26 MHz
42+
generic.menu.CrystalFreq.40=40 MHz
43+
generic.menu.CrystalFreq.40.build.extra_flags=-DF_CRYSTAL=40000000
44+
3945
generic.menu.FlashFreq.40=40MHz
4046
generic.menu.FlashFreq.40.build.flash_freq=40
4147
generic.menu.FlashFreq.80=80MHz
@@ -146,6 +152,11 @@ generic.menu.FlashSize.1M64.build.spiffs_end=0xFB000
146152
generic.menu.FlashSize.1M64.build.spiffs_blocksize=4096
147153
generic.menu.FlashSize.1M64.upload.maximum_size=958448
148154

155+
generic.menu.FlashSize.1M0=1M (no SPIFFS)
156+
generic.menu.FlashSize.1M0.build.flash_size=1M
157+
generic.menu.FlashSize.1M0.build.flash_ld=eagle.flash.1m0.ld
158+
generic.menu.FlashSize.1M0.upload.maximum_size=1023984
159+
149160
generic.menu.FlashSize.2M=2M (1M SPIFFS)
150161
generic.menu.FlashSize.2M.build.flash_size=2M
151162
generic.menu.FlashSize.2M.build.flash_ld=eagle.flash.2m.ld
@@ -1892,3 +1903,121 @@ coredev.menu.DebugLevel.OTA2____=OTA + Updater
18921903
coredev.menu.DebugLevel.OTA2____.build.debug_level=-DDEBUG_ESP_OTA -DDEBUG_ESP_UPDATER
18931904
coredev.menu.DebugLevel.all_____=All
18941905
coredev.menu.DebugLevel.all_____.build.debug_level=-DDEBUG_ESP_CORE -DDEBUG_ESP_SSL -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_TLS_MEM
1906+
1907+
############ Arduino boards with Esp8266 ############
1908+
1909+
arduino-esp8266.name=Arduino
1910+
1911+
arduino-esp8266.upload.tool=esptool
1912+
arduino-esp8266.upload.speed=9600
1913+
arduino-esp8266.upload.resetmethod=ck
1914+
arduino-esp8266.upload.maximum_size=1044464
1915+
arduino-esp8266.upload.maximum_data_size=81920
1916+
arduino-esp8266.upload.wait_for_upload_port=true
1917+
arduino-esp8266.serial.disableDTR=true
1918+
arduino-esp8266.serial.disableRTS=true
1919+
1920+
arduino-esp8266.build.mcu=esp8266
1921+
arduino-esp8266.build.f_cpu=80000000L
1922+
#arduino-esp8266.build.f_crystal=40000000
1923+
arduino-esp8266.build.core=esp8266
1924+
arduino-esp8266.build.flash_mode=qio
1925+
arduino-esp8266.build.flash_size=4M
1926+
arduino-esp8266.build.flash_freq=40
1927+
arduino-esp8266.build.debug_port=
1928+
arduino-esp8266.build.debug_level=
1929+
arduino-esp8266.build.board=ESP8266_ARDUINO
1930+
1931+
arduino-esp8266.menu.BoardModel.starottodeved=Star OTTO
1932+
arduino-esp8266.menu.BoardModel.starottodeved.build.board=ESP8266_ARDUINO_STAR_OTTO
1933+
arduino-esp8266.menu.BoardModel.starottodeved.build.variant=arduino_uart
1934+
arduino-esp8266.menu.BoardModel.starottodeved.build.extra_flags=-DF_CRYSTAL=40000000
1935+
1936+
arduino-esp8266.menu.BoardModel.primo=Primo
1937+
arduino-esp8266.menu.BoardModel.primo.build.board=ESP8266_ARDUINO_PRIMO
1938+
arduino-esp8266.menu.BoardModel.primo.build.variant=arduino_spi
1939+
arduino-esp8266.menu.BoardModel.primo.build.extra_flags=-DF_CRYSTAL=40000000
1940+
1941+
arduino-esp8266.menu.BoardModel.unowifideved=Uno WiFi
1942+
arduino-esp8266.menu.BoardModel.unowifideved.build.board=ESP8266_ARDUINO_UNOWIFI
1943+
arduino-esp8266.menu.BoardModel.unowifideved.build.variant=arduino_uart
1944+
arduino-esp8266.menu.BoardModel.unowifideved.build.extra_flags=-DF_CRYSTAL=40000000
1945+
1946+
arduino-esp8266.menu.UploadSpeed.9600=9600
1947+
arduino-esp8266.menu.UploadSpeed.9600.upload.speed=9600
1948+
arduino-esp8266.menu.UploadSpeed.19200=19200
1949+
arduino-esp8266.menu.UploadSpeed.19200.upload.speed=19200
1950+
arduino-esp8266.menu.UploadSpeed.57600=57600
1951+
arduino-esp8266.menu.UploadSpeed.57600.upload.speed=57600
1952+
arduino-esp8266.menu.UploadSpeed.115200=115200
1953+
arduino-esp8266.menu.UploadSpeed.115200.upload.speed=115200
1954+
arduino-esp8266.menu.UploadSpeed.230400=230400
1955+
arduino-esp8266.menu.UploadSpeed.230400.upload.speed=230400
1956+
arduino-esp8266.menu.UploadSpeed.460800=460800
1957+
arduino-esp8266.menu.UploadSpeed.460800.upload.speed=460800
1958+
1959+
arduino-esp8266.menu.FlashSize.4M1M=4M (1M SPIFFS)
1960+
arduino-esp8266.menu.FlashSize.4M1M.build.flash_size=4M
1961+
arduino-esp8266.menu.FlashSize.4M1M.build.flash_ld=eagle.flash.4m1m.ld
1962+
arduino-esp8266.menu.FlashSize.4M1M.build.spiffs_start=0x300000
1963+
arduino-esp8266.menu.FlashSize.4M1M.build.spiffs_end=0x3FB000
1964+
arduino-esp8266.menu.FlashSize.4M1M.build.spiffs_blocksize=8192
1965+
arduino-esp8266.menu.FlashSize.4M1M.build.spiffs_pagesize=256
1966+
1967+
arduino-esp8266.menu.FlashSize.4M3M=4M (3M SPIFFS)
1968+
arduino-esp8266.menu.FlashSize.4M3M.build.flash_size=4M
1969+
arduino-esp8266.menu.FlashSize.4M3M.build.flash_ld=eagle.flash.4m.ld
1970+
arduino-esp8266.menu.FlashSize.4M3M.build.spiffs_start=0x100000
1971+
arduino-esp8266.menu.FlashSize.4M3M.build.spiffs_end=0x3FB000
1972+
arduino-esp8266.menu.FlashSize.4M3M.build.spiffs_blocksize=8192
1973+
arduino-esp8266.menu.FlashSize.4M3M.build.spiffs_pagesize=256
1974+
1975+
##############################################################
1976+
1977+
gen4iod.name=4D Systems gen4 IoD Range
1978+
1979+
gen4iod.upload.tool=esptool
1980+
gen4iod.upload.speed=921600
1981+
gen4iod.upload.resetmethod=nodemcu
1982+
gen4iod.upload.maximum_size=434160
1983+
gen4iod.upload.maximum_data_size=81920
1984+
gen4iod.upload.wait_for_upload_port=true
1985+
gen4iod.serial.disableDTR=true
1986+
gen4iod.serial.disableRTS=true
1987+
1988+
gen4iod.build.mcu=esp8266
1989+
gen4iod.build.f_cpu=160000000L
1990+
gen4iod.build.board=GEN4_IOD
1991+
gen4iod.build.core=esp8266
1992+
gen4iod.build.variant=generic
1993+
gen4iod.build.flash_mode=qio
1994+
# flash chip: AT25SF041 (512 kbyte, 4Mbit)
1995+
gen4iod.build.flash_size=512K
1996+
gen4iod.build.flash_ld=eagle.flash.512k0.ld
1997+
gen4iod.build.flash_freq=80
1998+
gen4iod.build.debug_port=
1999+
gen4iod.build.debug_level=
2000+
2001+
gen4iod.menu.CpuFrequency.160=160 MHz
2002+
gen4iod.menu.CpuFrequency.160.build.f_cpu=160000000L
2003+
gen4iod.menu.CpuFrequency.80=80 MHz
2004+
gen4iod.menu.CpuFrequency.80.build.f_cpu=80000000L
2005+
2006+
gen4iod.menu.UploadSpeed.115200=115200
2007+
gen4iod.menu.UploadSpeed.115200.upload.speed=115200
2008+
gen4iod.menu.UploadSpeed.9600=9600
2009+
gen4iod.menu.UploadSpeed.9600.upload.speed=9600
2010+
gen4iod.menu.UploadSpeed.57600=57600
2011+
gen4iod.menu.UploadSpeed.57600.upload.speed=57600
2012+
gen4iod.menu.UploadSpeed.256000.windows=256000
2013+
gen4iod.menu.UploadSpeed.256000.upload.speed=256000
2014+
gen4iod.menu.UploadSpeed.230400.linux=230400
2015+
gen4iod.menu.UploadSpeed.230400.macosx=230400
2016+
gen4iod.menu.UploadSpeed.230400.upload.speed=230400
2017+
gen4iod.menu.UploadSpeed.460800.linux=460800
2018+
gen4iod.menu.UploadSpeed.460800.macosx=460800
2019+
gen4iod.menu.UploadSpeed.460800.upload.speed=460800
2020+
gen4iod.menu.UploadSpeed.512000.windows=512000
2021+
gen4iod.menu.UploadSpeed.512000.upload.speed=512000
2022+
gen4iod.menu.UploadSpeed.921600=921600
2023+
gen4iod.menu.UploadSpeed.921600.upload.speed=921600

0 commit comments

Comments
 (0)