examples/ethernet/README.md
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
|---|
See the README.md file in the upper level examples directory for more information about examples.
Ethernet examples demonstrate basic features related to Ethernet layer, such as:
basic Ethernet initialization and binding to IP stack via ESP-NETIF
tools for performance measurement, i.e. iperf
hardware time synchronization
By default, ESP-IDF offers drivers for its internal Ethernet MAC (see Espressif documentation for supported chips) and for Generic IEEE 802.3 compliant PHYs. However, it does not limit users to use just those options. It is possible to create specific MAC and PHY layer drivers tailored for specific chip needs, including SPI Ethernet modules. Espressif maintains additional Ethernet drivers at esp-eth-drivers repository and the drivers are accessible via The ESP Component Registry from users' projects.
The Component for Ethernet Initialization is a component intended for simple initialization of a wide range of Ethernet PHY chips, including SPI Ethernet modules and for advanced Ethernet configuration options, see its homepage for more information.
esp32_emac_config.dma_burst_len = ETH_DMA_BURST_LEN_4; // or other appropriate value