From bc5f69319fcf57104d78bf4a2364393d051f5d53 Mon Sep 17 00:00:00 2001 From: Ian Tester Date: Wed, 6 May 2015 14:53:29 +1000 Subject: [PATCH 1/7] Add definition for the Olimex MOD-WIFI-ESP8266(-DEV) boards --- hardware/esp8266com/esp8266/boards.txt | 50 ++++++++++++++ .../esp8266/variants/modwifi/pins_arduino.h | 67 +++++++++++++++++++ 2 files changed, 117 insertions(+) create mode 100644 hardware/esp8266com/esp8266/variants/modwifi/pins_arduino.h diff --git a/hardware/esp8266com/esp8266/boards.txt b/hardware/esp8266com/esp8266/boards.txt index bbcebb9e0..3cc72a0f0 100644 --- a/hardware/esp8266com/esp8266/boards.txt +++ b/hardware/esp8266com/esp8266/boards.txt @@ -1,6 +1,7 @@ menu.UploadSpeed=Upload Speed menu.CpuFrequency=CPU Frequency menu.FlashSize=Flash size + ############################################################## generic.name=Generic ESP8266 Module @@ -56,6 +57,55 @@ generic.menu.FlashSize.2M.build.flash_size=2M generic.menu.FlashSize.4M=4M generic.menu.FlashSize.4M.build.flash_size=4M +############################################################## +modwifi.name=Olimex MOD-WIFI-ESP8266(-DEV) + +modwifi.upload.tool=esptool +modwifi.upload.speed=115200 +modwifi.upload.resetmethod=ck +modwifi.upload.maximum_size=2097152 +modwifi.upload.wait_for_upload_port=true +modwifi.serial.disableDTR=true +modwifi.serial.disableRTS=true + +modwifi.build.mcu=esp8266 +modwifi.build.f_cpu=80000000L +modwifi.build.board=MOD_WIFI_ESP8266 +modwifi.build.core=esp8266 +modwifi.build.variant=modwifi +# Winbond W25Q16 flash +modwifi.build.flash_mode=qio +modwifi.build.flash_size=2M +modwifi.build.flash_freq=40 + +modwifi.menu.CpuFrequency.80=80 MHz +modwifi.menu.CpuFrequency.80.build.f_cpu=80000000L +modwifi.menu.CpuFrequency.160=160 MHz +modwifi.menu.CpuFrequency.160.build.f_cpu=160000000L + +modwifi.menu.UploadSpeed.115200=115200 +modwifi.menu.UploadSpeed.115200.upload.speed=115200 +modwifi.menu.UploadSpeed.9600=9600 +modwifi.menu.UploadSpeed.9600.upload.speed=9600 +modwifi.menu.UploadSpeed.57600=57600 +modwifi.menu.UploadSpeed.57600.upload.speed=57600 +modwifi.menu.UploadSpeed.256000.windows=256000 +modwifi.menu.UploadSpeed.256000.upload.speed=256000 +modwifi.menu.UploadSpeed.230400.linux=230400 +modwifi.menu.UploadSpeed.230400.macosx=230400 +modwifi.menu.UploadSpeed.230400.macosx=230400 +modwifi.menu.UploadSpeed.230400.upload.speed=230400 +modwifi.menu.UploadSpeed.460800.linux=460800 +modwifi.menu.UploadSpeed.460800.macosx=460800 +modwifi.menu.UploadSpeed.460800.upload.speed=460800 +modwifi.menu.UploadSpeed.512000.windows=512000 +modwifi.menu.UploadSpeed.512000.upload.speed=512000 +modwifi.menu.UploadSpeed.921600=921600 +modwifi.menu.UploadSpeed.921600.upload.speed=921600 + +modwifi.menu.FlashSize.2M=2M +modwifi.menu.FlashSize.2M.build.flash_size=2M + ############################################################## nodemcu.name=NodeMCU (ESP8266 ESP-12 Module) diff --git a/hardware/esp8266com/esp8266/variants/modwifi/pins_arduino.h b/hardware/esp8266com/esp8266/variants/modwifi/pins_arduino.h new file mode 100644 index 000000000..4fef366d0 --- /dev/null +++ b/hardware/esp8266com/esp8266/variants/modwifi/pins_arduino.h @@ -0,0 +1,67 @@ +/* + pins_arduino.h - Pin definition functions for Arduino + Part of Arduino - http://www.arduino.cc/ + + Copyright (c) 2007 David A. Mellis + Modified for ESP8266 platform by Ivan Grokhotkov, 2014-2015. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General + Public License along with this library; if not, write to the + Free Software Foundation, Inc., 59 Temple Place, Suite 330, + Boston, MA 02111-1307 USA + + $Id: wiring.h 249 2007-02-03 16:52:51Z mellis $ +*/ + +#ifndef Pins_Arduino_h +#define Pins_Arduino_h + +#define EXTERNAL_NUM_INTERRUPTS 16 +#define NUM_DIGITAL_PINS 17 +#define NUM_ANALOG_INPUTS 1 + +#define analogInputToDigitalPin(p) ((p > 0)?NOT_A_PIN:0) +#define digitalPinToInterrupt(p) (((p) < EXTERNAL_NUM_INTERRUPTS)?p:NOT_A_PIN) +#define digitalPinHasPWM(p) (((p) < NUM_DIGITAL_PINS)?p:NOT_A_PIN) + +static const uint8_t SDA = 4; +static const uint8_t SCL = 5; + +static const uint8_t SS = 15; +static const uint8_t MOSI = 13; +static const uint8_t MISO = 12; +static const uint8_t SCK = 14; + +static const uint8_t A0 = 17; + +// These serial port names are intended to allow libraries and architecture-neutral +// sketches to automatically default to the correct port name for a particular type +// of use. For example, a GPS module would normally connect to SERIAL_PORT_HARDWARE_OPEN, +// the first hardware serial port whose RX/TX pins are not dedicated to another use. +// +// SERIAL_PORT_MONITOR Port which normally prints to the Arduino Serial Monitor +// +// SERIAL_PORT_USBVIRTUAL Port which is USB virtual serial +// +// SERIAL_PORT_LINUXBRIDGE Port which connects to a Linux system via Bridge library +// +// SERIAL_PORT_HARDWARE Hardware serial port, physical RX & TX pins. +// +// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX +// pins are NOT connected to anything by default. +#define SERIAL_PORT_MONITOR Serial +#define SERIAL_PORT_USBVIRTUAL Serial +#define SERIAL_PORT_HARDWARE Serial +#define SERIAL_PORT_HARDWARE_OPEN Serial + +#endif /* Pins_Arduino_h */ From a20d32902aacb08a70f945a1f61094e9a215a11a Mon Sep 17 00:00:00 2001 From: biohazardxxx Date: Wed, 6 May 2015 14:28:05 +0200 Subject: [PATCH 2/7] Mode missed --- .../libraries/EEPROM/examples/eeprom_clear/eeprom_clear.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/hardware/esp8266com/esp8266/libraries/EEPROM/examples/eeprom_clear/eeprom_clear.ino b/hardware/esp8266com/esp8266/libraries/EEPROM/examples/eeprom_clear/eeprom_clear.ino index f3185f2ec..98b7ad746 100644 --- a/hardware/esp8266com/esp8266/libraries/EEPROM/examples/eeprom_clear/eeprom_clear.ino +++ b/hardware/esp8266com/esp8266/libraries/EEPROM/examples/eeprom_clear/eeprom_clear.ino @@ -16,6 +16,7 @@ void setup() EEPROM.write(i, 0); // turn the LED on when we're done + pinMode(13, OUTPUT); digitalWrite(13, HIGH); EEPROM.end(); } From 3419538cd24d4c88c7a65efc5eb04c8e711e296a Mon Sep 17 00:00:00 2001 From: Ian Tester Date: Thu, 7 May 2015 01:37:16 +1000 Subject: [PATCH 3/7] No need to have a separate variant for the Olimex MOD-WIFI-ESP8266, nor a menu entry for the flash size --- hardware/esp8266com/esp8266/boards.txt | 5 +- .../esp8266/variants/modwifi/pins_arduino.h | 67 ------------------- 2 files changed, 1 insertion(+), 71 deletions(-) delete mode 100644 hardware/esp8266com/esp8266/variants/modwifi/pins_arduino.h diff --git a/hardware/esp8266com/esp8266/boards.txt b/hardware/esp8266com/esp8266/boards.txt index 3cc72a0f0..4190e6483 100644 --- a/hardware/esp8266com/esp8266/boards.txt +++ b/hardware/esp8266com/esp8266/boards.txt @@ -72,7 +72,7 @@ modwifi.build.mcu=esp8266 modwifi.build.f_cpu=80000000L modwifi.build.board=MOD_WIFI_ESP8266 modwifi.build.core=esp8266 -modwifi.build.variant=modwifi +modwifi.build.variant=generic # Winbond W25Q16 flash modwifi.build.flash_mode=qio modwifi.build.flash_size=2M @@ -103,9 +103,6 @@ modwifi.menu.UploadSpeed.512000.upload.speed=512000 modwifi.menu.UploadSpeed.921600=921600 modwifi.menu.UploadSpeed.921600.upload.speed=921600 -modwifi.menu.FlashSize.2M=2M -modwifi.menu.FlashSize.2M.build.flash_size=2M - ############################################################## nodemcu.name=NodeMCU (ESP8266 ESP-12 Module) diff --git a/hardware/esp8266com/esp8266/variants/modwifi/pins_arduino.h b/hardware/esp8266com/esp8266/variants/modwifi/pins_arduino.h deleted file mode 100644 index 4fef366d0..000000000 --- a/hardware/esp8266com/esp8266/variants/modwifi/pins_arduino.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - pins_arduino.h - Pin definition functions for Arduino - Part of Arduino - http://www.arduino.cc/ - - Copyright (c) 2007 David A. Mellis - Modified for ESP8266 platform by Ivan Grokhotkov, 2014-2015. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General - Public License along with this library; if not, write to the - Free Software Foundation, Inc., 59 Temple Place, Suite 330, - Boston, MA 02111-1307 USA - - $Id: wiring.h 249 2007-02-03 16:52:51Z mellis $ -*/ - -#ifndef Pins_Arduino_h -#define Pins_Arduino_h - -#define EXTERNAL_NUM_INTERRUPTS 16 -#define NUM_DIGITAL_PINS 17 -#define NUM_ANALOG_INPUTS 1 - -#define analogInputToDigitalPin(p) ((p > 0)?NOT_A_PIN:0) -#define digitalPinToInterrupt(p) (((p) < EXTERNAL_NUM_INTERRUPTS)?p:NOT_A_PIN) -#define digitalPinHasPWM(p) (((p) < NUM_DIGITAL_PINS)?p:NOT_A_PIN) - -static const uint8_t SDA = 4; -static const uint8_t SCL = 5; - -static const uint8_t SS = 15; -static const uint8_t MOSI = 13; -static const uint8_t MISO = 12; -static const uint8_t SCK = 14; - -static const uint8_t A0 = 17; - -// These serial port names are intended to allow libraries and architecture-neutral -// sketches to automatically default to the correct port name for a particular type -// of use. For example, a GPS module would normally connect to SERIAL_PORT_HARDWARE_OPEN, -// the first hardware serial port whose RX/TX pins are not dedicated to another use. -// -// SERIAL_PORT_MONITOR Port which normally prints to the Arduino Serial Monitor -// -// SERIAL_PORT_USBVIRTUAL Port which is USB virtual serial -// -// SERIAL_PORT_LINUXBRIDGE Port which connects to a Linux system via Bridge library -// -// SERIAL_PORT_HARDWARE Hardware serial port, physical RX & TX pins. -// -// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX -// pins are NOT connected to anything by default. -#define SERIAL_PORT_MONITOR Serial -#define SERIAL_PORT_USBVIRTUAL Serial -#define SERIAL_PORT_HARDWARE Serial -#define SERIAL_PORT_HARDWARE_OPEN Serial - -#endif /* Pins_Arduino_h */ From 9e306d706cc97f88226b334df1d241e2d5aa18bc Mon Sep 17 00:00:00 2001 From: Markus Sattler Date: Wed, 6 May 2015 17:38:00 +0200 Subject: [PATCH 4/7] add Patch for station+softAP issue based on SDK_v1.0.1 from espressif esp_iot_sdk_v1.0.1_15_05_04_p1 ------------------------------------------- Here is a patch for station+softAP issue that users may have, based on SDK_v1.0.1, solved problem that connect to ESP8266 softAP may fail in station+softAP mode. Sorry for the inconvenience. --- hardware/tools/esp8266/sdk/changelog.txt | 7 +++++++ hardware/tools/esp8266/sdk/lib/libnet80211.a | Bin 185970 -> 186022 bytes hardware/tools/esp8266/sdk/version | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/hardware/tools/esp8266/sdk/changelog.txt b/hardware/tools/esp8266/sdk/changelog.txt index 12e9aa55e..68a53e296 100644 --- a/hardware/tools/esp8266/sdk/changelog.txt +++ b/hardware/tools/esp8266/sdk/changelog.txt @@ -1,3 +1,10 @@ +esp_iot_sdk_v1.0.1_15_05_04_p1 +------------------------------------------- +Here is a patch for station+softAP issue that users may have, based on SDK_v1.0.1, +solved problem that connect to ESP8266 softAP may fail in station+softAP mode. + +Sorry for the inconvenience. + esp_iot_sdk_v1.0.1_15_04_24 Release Note ------------------------------------------- diff --git a/hardware/tools/esp8266/sdk/lib/libnet80211.a b/hardware/tools/esp8266/sdk/lib/libnet80211.a index 1e908b85c4d777e04767c11ea2dc1ddc3479f412..2fa845c3bfee66b3f7bfe2aa632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oI&`DPCIg8)9`Ulg;P#oykZ|ENxlSs}@&f&DI8u&R3K1C^uvIwZ zQ^BtqEINKl)vT$LL02X`=?8j;v5p_%C!c*tS}|NHB^X>z~IV4*%kZ; z*`>_O7vhPuKvSh7xq=??7+4C@8P4S(~TWJ|0%$V)p zGh-G0%=`}VBC%V)<_Xcu zoJ;XpW^9Ul%7eX)xRLx1oFPT9`DWQk-y9cjmP=Co0a`0$;1&HaGv2a0H2SYJ`m@Y< zw}hGT;(M7H*M}@(Nyh=gtE@u<8(2Ra*Zl%_iCjvk1-^=B#5Ay4APE&yNAZS^HA0NC zCf0F3$wxhO>>$`!hXyvVUIU$G1i_cV&WL-+0xp2NM>{hvMk|FHop@G$o zKEgUW`2yGxZ|nf;*q(2KaWTQ`;4Biu;zpmb5iTx8Xsjr%f5|#Duz~dw*jyR6(NP)9 z5HzrX^?cTG0V;=maooO;(y1r_u`syg7MbIBvaO3GumSf63gcMEy=fHcAiqSoj&*2Y z_1$-jb=(Nw(69$($z2f6unrAuF!Svona>~-#d-}}m~k=7V;)ZN6&fDTj0@X1O-CoN z4h^h!^hd0>(OqY;3GRSpp>Q{6tfqK{hC7&_qIj)_Yc-8M$T~Ez+So4WywZo*<}Agh zRQ40pp(0-1Gn@eptS!tmClU z%Zv;CK4x6v_cQyE7{zbU8j3%pwA#QT)}evb25x5^7x#}~Um73H8rGqK4Xkg4&WGY5 zw!!v0g|7p3`<>+sd;#>M()c|~Tw)y>*uc7l?9{DQ0H&!PPjQikKSe!!aFwzS4IE!G zTL0@f19yi>8lJA<&ruO?(MHyxfz>VgHEj3WuSQ$H!bJGd|`5%=nmllz9tz{*&Ng)EkVyn=_739M*7?rq_E|hXz(VeTsE_A4jgzBY5bX!u-fGNbVfd*F3fEldg>v93}BC6+eur=7V zT~-G- Date: Wed, 6 May 2015 17:51:37 +0200 Subject: [PATCH 5/7] add 64Bit build note --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7893a7ebe..8e880e55c 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This project brings support for ESP8266 chip to the Arduino environment. ESP8266 | OS | Build status | Latest release | Alpha Version | | --- | ------------ | -------------- | --------------- | | 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) | | -| 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) | +| 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) | | 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) | | From 395de067cadfe76d1be80d79f91e4a46dabc39f2 Mon Sep 17 00:00:00 2001 From: Markus Sattler Date: Wed, 6 May 2015 18:54:34 +0200 Subject: [PATCH 6/7] add Minimal hardware Setup for Bootloading and usage to README.md --- README.md | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8e880e55c..4fd953ea3 100644 --- a/README.md +++ b/README.md @@ -181,8 +181,30 @@ Libraries that don't rely on low-level access to AVR registers should work well. #### Upload via serial port #### Pick the correct serial port. -You need to put ESP8266 into bootloader mode before uploading code (pull GPIO0 low and -toggle power). +You need to put ESP8266 into bootloader mode before uploading code. + +#### Minimal hardware Setup for Bootloading and usage #### + +ESPxx Hardware + +| PIN | Resistor | Serial Adapter | +| ------------- | -------- | -------------- | +| VCC | | VCC (3.3V) | +| GND | | GND | +| TX or GPIO2* | | RX | +| RX | | TX | +| GPIO0 | PullUp | DTR | +| Reset* | | RTS | +| GPIO15* | PullDown | | +| CH_PD | PullUp | | + +* Note + - GPIO15 is also named MTDO + - Reset is also named RSBT or REST (adding PullUp improves the stability of the Module) + - GPIO2 is alternative TX for the boot loader mode + +ESP01 example: +![ESP01 connect](https://raw.githubusercontent.com/Links2004/Arduino/esp8266/docs/ESP01_connect.jpg) ### Issues and support ### From 9be4912b1aa7f33790f0a2c9e0a11c95862374c3 Mon Sep 17 00:00:00 2001 From: Markus Sattler Date: Wed, 6 May 2015 19:17:13 +0200 Subject: [PATCH 7/7] add note for only bootloading --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 4fd953ea3..0f01ba86d 100644 --- a/README.md +++ b/README.md @@ -204,8 +204,26 @@ ESPxx Hardware - GPIO2 is alternative TX for the boot loader mode ESP01 example: + ![ESP01 connect](https://raw.githubusercontent.com/Links2004/Arduino/esp8266/docs/ESP01_connect.jpg) +#### Minimal hardware Setup for Bootloading only #### +ESPxx Hardware + +| PIN | Resistor | Serial Adapter | +| ------------- | -------- | -------------- | +| VCC | | VCC (3.3V) | +| GND | | GND | +| TX or GPIO2 | | RX | +| RX | | TX | +| GPIO0 | | GND | +| Reset | | RTS* | +| GPIO15 | PullDown | | +| CH_PD | PullUp | | + +* Note + - if no RTS is used a manual power toggle is needed + ### Issues and support ### Forum: http://www.esp8266.com/arduino