Categories

Tutorial

ESP8266 Flash with NodeMCU firmware

Robo India presents tutorial how to flash ESP8266 wifi module with LUA firmware. NodeMCU firmware is used here.

Detailed Tutorial

1. Introduction:

ESP8266 wifi module can be used as a development board with LUA programming. To start with LUA Programming on ESP8266 wifi module, the module should have a firm wire that supports LUA. NodeMCU is an open source firmware for ESP8266 wifi module. This tutorial explains how to upload NodeMCU firmware to ESP8266 wifi module.

Before we go ahead you may need to know the setup connections of ESP8266, This tutorial of Robo India explains setup connections of ESP8266.

Connect RX and TX pins of ESP8266 module to the Serial Port of you computer, if you don't have one in your computer, FTDI or CP2102 can be used.

2. Required Software

Two software will be required to flash ESP8266 wifi module with NodeMCU.

2.1 NodeMCU Firmware

Download NodeMCU firmware from the below link.

https://github.com/nodemcu/nodemcu-firmware/releases

You will find two firmware there, one is for integer and other is for float. Download any one of them as per your requirement. 

2.2 Flasher

A software will be required to transfer the firmware we downloaded in above step to the ESP8266 wifi module. This software is known as flasher. Download flasher from the below mentioned link. It has got flasher for Win64 and Win32, download as per your computer's operating system.

https://github.com/nodemcu/nodemcu-flasher

3. Flashing

In order to flash ESP8266 wifi module, your module should be connected to your computer. From device manager of your computer please note down the comport no to which your ESP8266 wifi module is connected. For mine it is COM2.

Open Flasher downloaded in above step and select COM Port.

esp8266-nodemcu-flasher-1

Click on configuration tab and enter the full path the firmware you downloaded in step2. if the path is correct it will be in green color else it will turn red. As shown in the following image.

esp8266-nodemcu-flasher-2

Go to Operation tab of Flasher software and click on Flash(F) button.

Press Flash Switch (on ESP8266 Module) and reset the module by pressing reset switch. You should keep on pressing Flash button while pressing and releasing Reset button. (Flash button connects GPIO0 to GND and Reset Button connects RST to GND)

By doing this ESP8266 module will enter into flash mode, You may check this by clicking on Log tab of Flasher Software.

esp8266-nodemcu-flasher-3.0

It is showing Acknowledge successful.

esp8266-nodemcu-flasher-3.1

After successful acknowledgment it show the status of set base address. In the above image it is showing successful set base address.

esp8266-nodemcu-flasher-4

The module is being flashed with the NodeMCU firmware. In the operation tab you can see current status of flashing.

Once the module gets connected to Flasher software, it starts showing MAC address of the ESP8266 wifi module.

esp8266-nodemcu-flasher-5

On successful completion of flashing green tick mark appear on bottom left corner. The same can be seen from Log tab of Flasher software.

esp8266-nodemcu-flasher-6

After successful flashing Flasher software disconnects itself.

The ESP8266 wifi module is now successfully flashed with NodeMCU firmware. You may use it for LUA programming.

If you have any query please write us at info@roboindia.com

our whatsapp helpline: whatsapp-logo-robo-india +91 9694011188

Thanks and Regards
Content Development Team
Robo India
http://roboindia.com

Related Tutorials
Logic Level Converter

Robo India presents tutorial how to use logic level converter. While interfacing with sensor or other electronic device logic level converter is required, if one device works on 5V and other on 3.3V and both have to communicate than this logic level converter will be required between them.

ESP8266 Wiif Module Setup

Robo India presents tutorial how to setup ESP8266 wifi module. Hardware configuration to run ESP 8266 wifi module is explained in this tutorial.

Robo India Tutorial portal

Illustrated tutorials and guides.

Feel free to contact us

© Robo India | http://roboindia.com