The tools are downloaded and installed into a directory specified during ESP-IDF Tools Installer process. By default, this is C:Usersusername.espressif. Add ESP-IDF tools to PATH using an export script ¶ ESP-IDF tools installer creates a Start menu shortcut for “ESP-IDF.

This Guide demonstrates how to download AT firmware and flash it into an ESP device by taking ESP32-WROOM-32 as an example. The Guide is also applicable to other ESP modules.

690 Bibo Road Block 2 Suite 204, Zhangjiang Shanghai, China. English; 简体中文 /. Mar 03, 2017 I read through both the routes of programming an ESP8266 through an Arduino way and as well as the Espressif way using Flash download tools. In an example in SDK 2.0, which describes how to flash a program in ESP8266 using the Flash download tools, they mention that I need to flash the following bin files at specific locations: Non OTA firmware Map.

Before you start, please make sure you have already connected your hardware. For more details, see Hardware Connection.

For different series of modules, the commands supported by AT firmware are different. Please refer to How to understand the differences of each type of module for more details.

Download AT Firmware¶

Flash

To download AT firmware to your computer, please do as follows:

  • Navigate to AT Binary Lists
  • Find the firmware for your device
  • Click the link to download it

Here, we download ESP32-WROOM-32_AT_Bin_V2.1 for ESP32-WROOM-32. The list below describes the structure of this firmware and what each bin file contains. Other AT firmware has similar structure and bin files.

The file download.config contains the configuration to flash the firmware into multiple addresses:

How To Use Esp32 Flash Download Tool

  • --flash_modedio means the firmware is compiled with flash DIO mode.
  • --flash_freq40m means the firmware’s flash frequency is 40 MHz.
  • --flash_size4MB means the firmware is using flash size 4 MB.
  • 0x10000ota_data_initial.bin means downloading ota_data_initial.bin into the address 0x10000.

Flash AT Firmware into Your Device¶

Follow the instructions below for your operating system.

Windows¶

Before starting to flash, you need to download Flash Download Tools for Windows. For more details about the tools, please see readme.pdf or the doc folder in the zip folder.

  • Open the ESP Flash Download Tool.
  • Select a mode according to your need. (Here, we select DeveloperMode.)
  • Select your target chip. For example, choose “ESP8266 DownloadTool” for ESP8266 chip; choose “ESP32-S2 DownloadTool” for ESP32-S2 chip. (Here, we select ESP32 DownloadTool.)

Flash Download Tools Target Chip

  • Flash AT firmware into your device. You can select either of the two ways below.

    • To download one combined factory bin to address 0, select “DoNotChgBin” to use the default configuration of the factory bin.

    • To download multiple bins separately to different addresses, set up the configurations according to the file download.config and do NOT select “DoNotChgBin”.

      Download to Multiple Addresses

In case of flashing issues, please verify what the COM port number of download interface of the ESP board is and select it from “COM:” dropdown list. If you don’t know the port number, you can refer to Check port on Windows for details.

Espressif Flash Download Tool V2 4

When you finish flashing, please Check Whether AT Works.

Linux or macOS¶

Before you start to flash, you need to install esptool.py.

You can select either of the two ways below to flash AT firmware into your device.

  • To download the bins separately into multiple addresses, enter the following command and replace PORTNAME and download.config:

    Replace PORTNAME with your port name. If you don’t know it, you can refer to Check port on Linux and macOS for details.

    Replace download.config with the content inside the file.

    Below is the example command for ESP32-WROOM-32.

  • To download the bins together to one address, enter the following command and replace PORTNAME and FILEDIRECTORY:

    Replace PORTNAME with your port name. If you don’t know it, you can refer to Check port on Linux and macOS for details.

    Replace FILEDIRECTORY with the file directory you would flash to the address 0x0. It is normally factory/XXX.bin.

    Below is the example command for ESP32-WROOM-32.

When you finish flashing, please Check Whether AT Works.

Check Whether AT Works¶

To check whether AT works, do as follows:

Espressif Flash Download Tool Free

  • Open a serial port tool, such as SecureCRT;
  • Select the Port attached to “AT command/response” line (see Hardware Connection for details);
  • Set Baudrate to 115200;
  • Set Data Bits to 8;
  • Set Parity to None;
  • Set Stop Bits to 1;
  • Set Flow Type to None;
  • Enter the command “AT+GMR” with a new line (CR LF).

Flash Download Mac

If the response is OK as the picture below shows, it means that AT works.

Otherwise, you need to check your ESP startup log, which is visible on PC over “Download/Log output connection”. If it is like the log below, it means that ESP-AT firmware have been initalized correctly.

ESP32 startup log:

ESP32-S2 startup log:

ESP32-C3 startup log:

ESP8266 startup log:

It's the first time we use the esp32 d2wd which embeled falsh inner, we once use the esp32 d0wd which the flash out and it's flash download well. We don't konw why the same way can't be used in the esp32 d2wd? Apart from the flash is there any difference between the d2wd and d02d ? Before we download flash we have been pulled down the gpio0 so it can be in download mode, but the print message is error we can't get any information because it's garbled.Could anyone help me please? I submit the picture in the attachments,THX!