AuthorMalik ArchivesCategories |
Back to Blog
Esp8266 Flash Tool For Mac10/13/2021
In the same project, I’ve mentioned that by default, the ESP8266 ESP-01 Module comes with an AT Command Firmware.Mongoose OS uses mos tool for various tasks: building firmware, flashing. In the previous ESP8266 Project, we have seen how to write our own program in ESP8266 using Arduino IDE and control an LED using the GPIO Pins. If you have chosen one of the two package managers, execute the corresponding command in the terminal: For Homebrew: brew install esptool For pip: pip install esptool Connect the ESP8266 to your Mac via USB and find out the COM port with the following command: ls.Downloading the Latest ESP8266 Firmware Circuit Diagram for Flashing the Firmware to ESP8266 Hardware Setup for ESP8266 Firmware Update In my case, I have the ESP8266 ESP-01 Module by AI-Thinker.This leads to a lot of questions like whether the firmware is original or not, is the firmware up to date or not and many other.So, in this project, we will flash the official Espressif Systems’ firmware for ESP8266 Module using the official ESP8266 Flasher Tool provided by Espressif Systems which is the ESP8266 FLASH DOWNLOAD TOOL and Arduino UNO as the USB to Serial Interface.The ESP8266 Firmware can be installed for two reasons: If you want to update the ESP8266 Firmware to its latest version or to completely install the new firmware (in case it was overwritten by any program).I’ve connected the GPIO0 Pin to GND directly. Before proceeding further, please refer the previous project for configuring Arduino IDE and getting the Arduino UNO ready for flashing the firmware. In order to put the ESP8266 SoC in Flashing Mode, the GPIO0 Pin must be connected to GND and a momentary GND Pulse on RST Pin. RX to RX of Arduino UNO (through level converter)Circuit Diagram for Flashing the Firmware to ESP8266The following image shows the circuit diagram for enabling the Flashing Mode in ESP8266. So, the connections are as follows.
Esp8266 Flash Tool How To Write OurESP8266 can’t tolerate 5V. In one position, the GPIO0 is connected to GND and in the other position, it is free to use as a GPIO. You can use a SPDT switch to achieve this action i.e. Set the baud rate to 115200 and select Both NL and CR option in the serial monitor. You can use any software like Putty, Terminal, etc.In Arduino IDE, select the correct COM Port and open the Serial Monitor. I am using the Arduino’s Serial Monitor. *IMPORTANT*.After making the connections as per the circuit diagram given above (and disconnecting the GPIO0 from GND), plug-in the USB Cable of Arduino to the Computer and Open any Serial Monitor Software. For this, we need to disconnect the GPIO0 pin from GND. Even the RX Pin of ESP8266 is connected through a level converter.Before installing the Firmware, we will first check the existing firmware in the ESP8266 Module using serial communication. Try the procedure mentioned in this project first and if you succeed, you can try installing other ESP8266 Firmware. In order to download the AT Commands Firmware for ESP8266, visit the official link here or directly download from this link.There are other firmware versions for ESP8266 Module. The ESP8266 Firmware files are in the form of Binary Files i.e.bin files.Now since I will be using only the AT Command Set of the ESP8266, I will download only the Bin Files associated with the AT Commands. The RTOS SDK on the other hand is based on FreeRTOS.I’ll be using the Non-OS SDK (well, technically, the Firmware files based on the Non-OS SDK). For other flash sizes, please refer to the ESP8266 Getting Started Guide, from this link.In the ESP8266 Download Tool, in the SPI Download Tab, select the necessary files in the “Download Path Config” option by click on the (…) button. The following table will give you the list of files and their corresponding addresses.NOTE: This list is for Firmware over the Air (FOTA) Flash Memory Mapping for ESP8266 Modules with 1MB of Flash. You need to upload four files at four different addresses. Select the ESP8266 Download Tool.After opening the ESP8266 Flash Download Tool, you need to select the firmware files that we need to install. So, open the application file ESPFlashDownloadTool_v3.6.2.2.You will then get various options like ESP8266 Download Tool, ESP8285 Download Tool, ESP32 Download Tool and ESP32D2WD Download Tool. Make sure that all the serial terminal are closed.Before starting the flashing, check that GPIO0 is connected to GND and give a pulse LOW (push the Reset button) on the RST pin.Now click on START button. Since I have a 1MB flash on-board, I have selected the 8Mbit (which is equal to 1MB) flash size option.Finally, select the correct COM Port and set the baud rate to 115200. Next select the flash size. Open the serial monitor of Arduino once again and check for new firmware.NOTE: Click on Reset button after opening the serial monitor.In order to check the firmware version, type AT+GMR and hit send. Disconnect the GPIO0 from GND and reset the device. If there is any error, disconnect the USB cable, connect it once again, and after clicking on START, push the Reset button of the ESP8266.You will get a FINISH message on the Tool and you can close the tool after this. If you notice in the ESP8266 Firmware Flash Tool, the moment you click on START, you will get two MAC Address as AP and STA and also information about the Module in the DETECTED INFO section.If everything goes well, the ESP8266 Module must be updated with new firmware. In my case, the new AT Command Set Version is 1.5.0.0 and the SDK Version is 2.1.0.In this project, you have seen how to update/flash firmware in ESP8266 Module using the official Espressif ESP8266 Firmware.
0 Comments
Read More
Leave a Reply. |