When I was ordering new ESP8266 modules, I ordered ESP8266 ESP-14 modules in a rush. When I received them, I saw the port layout was very different. After some research I found out that the ESP8266 ESP-14 is a STMicro STM8S003F3P6 combined with a Expressif ESP8266-EX WiSoC. At page 25 of the STM8S003F3P6 manual you can see that it designates port M_PD6 as RX and M_PD5 as TX. I also noticed that the ESP was controlled via the Serial interface and the ESP RX and TX ports have to be connected vise versa for that.
Schematic for connecting theĀ ESP8266 ESP-14
To flash the ESP-14 just use M_PD5 as RX, M_PD6 as TX, connect ESP_GPIO0 with a 10K resistor to 3.3v, connect ESP_VDD to 3.3v and connect GND. In my experience you have to create a soldered programmer with an external power supply that delivers 1A.
Software for flashing the ESP8266 ESP-14 – Arduino IDE
If you are using the Arduino IDE, make sure you are on version 1.6.5 and you have added http://arduino.esp8266.com/staging/package_esp8266com_index.json in the preferences at ‘Additional Boards Manager URLs’. You can use these settings for flashing:
Example code for the the ESP8266 ESP-14
Then, you can use this code to test if its working
void setup() { // put your setup code here, to run once: Serial.begin(115200); Serial.println("Test your ESP8266"); } void loop() { // put your main code here, to run repeatedly: Serial.println("Tick"); delay(500); Serial.println("Tack"); delay(500); }
After flashing the ESP8266 ESP-14, disconnect the 3.3v from ESP_GPIO0 and reboot the module, while remain the Serial Connection connected to your computer. You will see the Tick-Tack now.
Errors
If you get errors or your module keeps rebooting, please check:
- your power supply, does it really deliver enough current?
- your wiring, are the cables tightly connected?
- your breadboard, in my experience, breadboards do not work for flashing an ESP8266 because of its poor connection surface
More information
I have used these sources to write my article:
- The ESP8266 ESP-14 Chinese manual
- A blog on cnx-software.com
- This picture: