table of Contents
1.2, AT firmware download and configuration of ESP32
1.3 Download AT firmware for ESP8266 (module or related development board)
Part 2: Download the latest AT firmware for ESP32 development board
2.1 Download the latest firmware
2.2 Configure download software
2.3 ESP32 Download Tool configuration
2.4.1 UART0 only has power-on debugging information
2.4.2 UART2 (corresponding to IO16, IO17) is the AT command control port
0. Environment
Hardware 1: esp8266 (ESP-WROOM-02D ESP8266 module)
Hardware 2: NodeMCU
Hardware 3: ESP32-DevKitC (core board development board)
Download AT firmware for esp32 and esp8266. I downloaded the latest AT firmware on the espressif official website, but the AT commands cannot be used normally after downloading. The reason is: For ESP32, in the latest version of AT firmware, UART0 prints power-on debugging information by default, and UART2 is the AT command interface.
The first part: the old version of AT firmware, UART0 is the download debugging port and the AT command communication interface
1.1, download tools
In espressif official website: Flash download tool (ESP8266 & ESP32) can be found in the following link and
download:
https://www.espressif.com/zh-hans/products/hardware/esp32-devkitc/resources
1.2, AT firmware download and configuration of ESP32
AT firmware of ESP32: https://wiki.ai-thinker.com/esp32/sdk
1.3 Download AT firmware for ESP8266 (module or related development board)
Firmware download address (the version is not the latest, but it is compatible with the old version of the hardware) https://wiki.ai-thinker.com/esp8266/sdk
Software configuration:
1.4, test
After the download is complete, open the serial port connected to the ESP module in the serial debugging assistant, and enter AT+line feed.
Part 2: Download the latest AT firmware for ESP32 development board
2.1 Download the latest firmware
Path: https://www.espressif.com/zh-hans/support/download/at
The latest version: ESP32 AT Bin V1.2
2.2 Configure download software
Configure the ESP32 Download Tool according to the download.config in the compressed package
--flash_mode dio
--flash_freq 40m
--flash_size detect
0x10000 ota_data_initial.bin
0x1000 bootloader/bootloader.bin
0x20000 at_customize.bin
0x21000 customized_partitions/ble_data.bin
0x24000 customized_partitions/server_cert.bin
0x26000 customized_partitions/server_key.bin
0x28000 customized_partitions/server_ca.bin
0x2a000 customized_partitions/client_cert.bin
0x2c000 customized_partitions/client_key.bin
0x2e000 customized_partitions/client_ca.bin
0x30000 customized_partitions/factory_param.bin
0xf000 phy_init_data.bin
0x100000 esp-at.bin
0x8000 partitions_at.bin
You can see that the factory_param.bin in the folder has the following versions:
factory_param.bin
factory_param_PICO-D4.bin
factory_param_SOLO-1.bin
factory_param_WROOM-32.bin
factory_param_WROVER-32.bin
Since my hardware is ESP32-DevKitC, I choose the matching esp32-wroom file.
0x30000 customized_partitions/factory_param_WROOM-32.bin
2.3 ESP32 Download Tool configuration
Note: Remember to tick on the left side of the file, the crystal oscillator is 40MHz, the SPI speed is 40MHz, the SPI mode is DIO, and the FLASH SIZE selects the detected 32M. The COM port should correspond to UART0 of ESP32. Finally click START.
2.4 Test results
The CP2102 on the ESP32-DevKit is directly connected to the UART0 of ESP-WROOM32. I need to connect the GPIO16 and GPIO17 corresponding to uart2 to the computer through the external UART to USB module.
Rx | Tx | |
uart0 | GPIO3 | GPIO1 |
uart1 | GPIO9 | GPIO10 |
uart2 | GPIO16 | GPIO17 |
2.4.1 UART0 only has power-on debugging information
2.4.2 UART2 (corresponding to IO16, IO17) is the AT command control port
Reference material: Use of AT command firmware developed by ESP32 SDK
The last update time of this blog post is: July 31, 2019