diff options
| author | Luke Hoersten <[email protected]> | 2026-06-13 21:57:47 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2026-06-13 21:57:47 -0500 |
| commit | e2ac22e58901e18b0b567b85d93a8f68335180bc (patch) | |
| tree | 620b10cd61f92273bd35627b6868c0befd12009b /sdkconfig.defaults | |
| parent | cadff71f2917b1ec8b140ea54a5994b9e438c0c8 (diff) | |
M1: Ethernet bring-up
net_eth module brings up the Waveshare ESP32-P4-ETH-POE Ethernet
interface (internal EMAC + IP101GRI PHY) and waits for a DHCP lease.
Pin map confirmed via Waveshare wiki + ESPHome's working config:
MDC=31, MDIO=52, REF_CLK=50 (CLK_EXT_IN from PHY)
TX_EN=49, TXD0=34, TXD1=35
CRS_DV=28, RXD0=30, RXD1=29
PHY reset/enable=51, PHY addr=1
app_main initializes NVS, netif, the default event loop, then starts
the Ethernet driver and waits up to 30s for an IP. On success it logs
the IP; on timeout it logs a warning and proceeds (the driver keeps
retrying in the background).
sdkconfig: declare 16 MB flash so partitions.csv (6.1 MB) fits.
main/CMakeLists.txt: explicit REQUIRES esp_eth esp_event esp_netif
nvs_flash.
Acceptance (per M1 in the impl guide): device gets a DHCP lease over
Ethernet and prints its IP. Build is clean against ESP-IDF 5.4 for
target esp32p4.
Diffstat (limited to 'sdkconfig.defaults')
| -rw-r--r-- | sdkconfig.defaults | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sdkconfig.defaults b/sdkconfig.defaults index 3f88f72..e612dc8 100644 --- a/sdkconfig.defaults +++ b/sdkconfig.defaults @@ -1,5 +1,9 @@ CONFIG_IDF_TARGET="esp32p4" +# Flash (Waveshare ESP32-P4-ETH-POE ships with 16 MB QSPI flash) +CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y +CONFIG_ESPTOOLPY_FLASHSIZE="16MB" + # Partition table CONFIG_PARTITION_TABLE_CUSTOM=y CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv" |
