Skip to content

Commit 9977276

Browse files
committed
Merge pull request #1 from esp8266/esp8266
Get latest
2 parents 367962d + 8b114a5 commit 9977276

File tree

6 files changed

+1410
-4
lines changed

6 files changed

+1410
-4
lines changed

README.md

+43-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This project brings support for ESP8266 chip to the Arduino environment. ESP8266
88
| OS | Build status | Latest release | Alpha Version |
99
| --- | ------------ | -------------- | --------------- |
1010
| Linux | [![Linux build status](http://img.shields.io/travis/igrr/Arduino.svg)](https://travis-ci.org/igrr/Arduino) | [arduino-1.6.1-linux64.tar.xz](../../releases/download/1.6.1-esp8266-1/arduino-1.6.1-linux64.tar.xz) | |
11-
| Windows | [![Windows build status](http://img.shields.io/appveyor/ci/igrr/Arduino.svg)](https://ci.appveyor.com/project/igrr/Arduino) | [arduino-1.6.1-p1-windows.zip](https://github.com/igrr/Arduino/releases/download/1.6.1-esp8266-1/arduino-1.6.1-p1-windows.zip) | [appveyor Build](https://ci.appveyor.com/project/igrr/Arduino/build/artifacts) |
11+
| Windows | [![Windows build status](http://img.shields.io/appveyor/ci/igrr/Arduino.svg)](https://ci.appveyor.com/project/igrr/Arduino) | [arduino-1.6.1-p1-windows.zip](https://github.com/igrr/Arduino/releases/download/1.6.1-esp8266-1/arduino-1.6.1-p1-windows.zip) | [appveyor 64Bit Build](https://ci.appveyor.com/project/igrr/Arduino/build/artifacts) |
1212
| OS X | | [arduino-1.6.1-macosx-java-latest-signed.zip](../../releases/download/1.6.1-esp8266-1/arduino-1.6.1-macosx-java-latest-signed.zip) | |
1313

1414

@@ -181,8 +181,48 @@ Libraries that don't rely on low-level access to AVR registers should work well.
181181

182182
#### Upload via serial port ####
183183
Pick the correct serial port.
184-
You need to put ESP8266 into bootloader mode before uploading code (pull GPIO0 low and
185-
toggle power).
184+
You need to put ESP8266 into bootloader mode before uploading code.
185+
186+
#### Minimal hardware Setup for Bootloading and usage ####
187+
188+
ESPxx Hardware
189+
190+
| PIN | Resistor | Serial Adapter |
191+
| ------------- | -------- | -------------- |
192+
| VCC | | VCC (3.3V) |
193+
| GND | | GND |
194+
| TX or GPIO2* | | RX |
195+
| RX | | TX |
196+
| GPIO0 | PullUp | DTR |
197+
| Reset* | | RTS |
198+
| GPIO15* | PullDown | |
199+
| CH_PD | PullUp | |
200+
201+
* Note
202+
- GPIO15 is also named MTDO
203+
- Reset is also named RSBT or REST (adding PullUp improves the stability of the Module)
204+
- GPIO2 is alternative TX for the boot loader mode
205+
206+
ESP01 example:
207+
208+
![ESP01 connect](https://raw.githubusercontent.com/Links2004/Arduino/esp8266/docs/ESP01_connect.jpg)
209+
210+
#### Minimal hardware Setup for Bootloading only ####
211+
ESPxx Hardware
212+
213+
| PIN | Resistor | Serial Adapter |
214+
| ------------- | -------- | -------------- |
215+
| VCC | | VCC (3.3V) |
216+
| GND | | GND |
217+
| TX or GPIO2 | | RX |
218+
| RX | | TX |
219+
| GPIO0 | | GND |
220+
| Reset | | RTS* |
221+
| GPIO15 | PullDown | |
222+
| CH_PD | PullUp | |
223+
224+
* Note
225+
- if no RTS is used a manual power toggle is needed
186226

187227
### Issues and support ###
188228

boards.txt

+47
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
menu.UploadSpeed=Upload Speed
22
menu.CpuFrequency=CPU Frequency
33
menu.FlashSize=Flash size
4+
45
##############################################################
56
generic.name=Generic ESP8266 Module
67

@@ -56,6 +57,52 @@ generic.menu.FlashSize.2M.build.flash_size=2M
5657
generic.menu.FlashSize.4M=4M
5758
generic.menu.FlashSize.4M.build.flash_size=4M
5859

60+
##############################################################
61+
modwifi.name=Olimex MOD-WIFI-ESP8266(-DEV)
62+
63+
modwifi.upload.tool=esptool
64+
modwifi.upload.speed=115200
65+
modwifi.upload.resetmethod=ck
66+
modwifi.upload.maximum_size=2097152
67+
modwifi.upload.wait_for_upload_port=true
68+
modwifi.serial.disableDTR=true
69+
modwifi.serial.disableRTS=true
70+
71+
modwifi.build.mcu=esp8266
72+
modwifi.build.f_cpu=80000000L
73+
modwifi.build.board=MOD_WIFI_ESP8266
74+
modwifi.build.core=esp8266
75+
modwifi.build.variant=generic
76+
# Winbond W25Q16 flash
77+
modwifi.build.flash_mode=qio
78+
modwifi.build.flash_size=2M
79+
modwifi.build.flash_freq=40
80+
81+
modwifi.menu.CpuFrequency.80=80 MHz
82+
modwifi.menu.CpuFrequency.80.build.f_cpu=80000000L
83+
modwifi.menu.CpuFrequency.160=160 MHz
84+
modwifi.menu.CpuFrequency.160.build.f_cpu=160000000L
85+
86+
modwifi.menu.UploadSpeed.115200=115200
87+
modwifi.menu.UploadSpeed.115200.upload.speed=115200
88+
modwifi.menu.UploadSpeed.9600=9600
89+
modwifi.menu.UploadSpeed.9600.upload.speed=9600
90+
modwifi.menu.UploadSpeed.57600=57600
91+
modwifi.menu.UploadSpeed.57600.upload.speed=57600
92+
modwifi.menu.UploadSpeed.256000.windows=256000
93+
modwifi.menu.UploadSpeed.256000.upload.speed=256000
94+
modwifi.menu.UploadSpeed.230400.linux=230400
95+
modwifi.menu.UploadSpeed.230400.macosx=230400
96+
modwifi.menu.UploadSpeed.230400.macosx=230400
97+
modwifi.menu.UploadSpeed.230400.upload.speed=230400
98+
modwifi.menu.UploadSpeed.460800.linux=460800
99+
modwifi.menu.UploadSpeed.460800.macosx=460800
100+
modwifi.menu.UploadSpeed.460800.upload.speed=460800
101+
modwifi.menu.UploadSpeed.512000.windows=512000
102+
modwifi.menu.UploadSpeed.512000.upload.speed=512000
103+
modwifi.menu.UploadSpeed.921600=921600
104+
modwifi.menu.UploadSpeed.921600.upload.speed=921600
105+
59106
##############################################################
60107
nodemcu.name=NodeMCU (ESP8266 ESP-12 Module)
61108

cores/esp8266/esp8266_peri.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static uint8_t esp8266_gpioToFn[16] = {0x34, 0x18, 0x38, 0x14, 0x3C, 0x40, 0x1C,
132132
#define T1I ESP8266_REG(0x60C) //Interrupt Status Register (1bit) write to clear
133133
//edge interrupt enable register
134134
#define TEIE ESP8266_DREG(0x04)
135-
#define TEIE1 0x02 //it for timer 1
135+
#define TEIE1 0x02 //bit for timer 1
136136

137137
//Timer 2 Registers (32bit CountUp Timer)
138138
#define T2L ESP8266_REG(0x620) //Load Value (Starting Value of Counter)

0 commit comments

Comments
 (0)