Skip to content

ESP32 firmware

Juraj Andrassy edited this page Sep 8, 2024 · 2 revisions

ESP32 AT firmware supports Ethernet commands but they have to be enabled in build configuration and build from sources.

The ESP32 AT firmware source only supports Ethernet PHY modules: LAN8720, IP101, DP83848 and RTL8201. modified AT firmware supporting W5500 will be available soon.

WROOM with LAN8720 (basic)

download link

This binary is build for ESP32 WROOM with Ethernet enabled and LAN8720 selected in sdkconfig. Additionally CONFIG_ESP_WIFI_SLP_IRAM_OPTis turned off to prevent IRAM overflow.

WT32-ETH01

download link

This binary is built for WT32-ETH01 board WROOM version or any ESP32 WROOM with LAN8720 with io 16 as oscillator enable pin. The AT commands UART is reconfigured to UART0 on pins io 1 and io 3. The zip includes the changed source code and configuration files.

WROOM with W5500

download link

This binary is build for ESP32 WROOM with Ethernet enabled and W5500 support patched in at-eth-init.c (LAN8720 is selected in sdkconfig). Additionally CONFIG_ESP_WIFI_SLP_IRAM_OPTis turned off to prevent IRAM overflow.

The IO to wire the W5500 module is listed in at-eth-init.c in the download zip. Wiring reset pin is optional, but the INT pin must be wired, because IDF v 5.0 used for AT 3.4 doesn't support polling (IDF 5.1 does).

#define CONFIG_ETH_SPI_MISO_GPIO 19
#define CONFIG_ETH_SPI_MOSI_GPIO 23
#define CONFIG_ETH_SPI_SCLK_GPIO 18
#define CONFIG_ETH_SPI_CS_GPIO   21
#define CONFIG_ETH_SPI_INT_GPIO  22

#define CONFIG_AT_ETH_PHY_RST_GPIO     5

Other configuration

The esp-at project has good documentation and the IDF build tools are simple to use so you can do your settings and build the firmware with them.

To build your version of the firmware with an SPI Ethernet module, get at-eth-init.c from the W5500 version download and modify the defines for your settings.

And you can ask in Issues or Discussions tab for a build for your configuration.

Clone this wiki locally