testing the ethernet example just in time
preview question:
can we use Wifi and Ethernet at same time?
must we use Wifi ( enabling ) if we use Ethernet?
cause:
------
i tried to disable WiFi in menuconfig and get few undefines.
undefined reference to `esp_wifi_internal_reg_rxcb'
undefined reference to `esp_wifi_get_mac'
undefined reference to `esp_wifi_internal_set_sta_ip'
undefined reference to `esp_wifi_internal_free_rx_buffer'
undefined reference to `esp_wifi_internal_tx'
..
CC port/esp_sha1.o
AR libmbedtls.a
LD ethernet_demo.elf
C:/nod/ethernet/ethernet/build/esp32\libesp32.a(event_default_handlers.o):(.literal.system_event_ap_stop_handle_default+0xc): undefined reference to `esp_wifi_internal_reg_rxcb'
C:/nod/ethernet/ethernet/build/esp32\libesp32.a(event_default_handlers.o):(.literal.system_event_ap_start_handle_default+0xc): undefined reference to `esp_wifi_get_mac'
C:/nod/ethernet/ethernet/build/esp32\libesp32.a(event_default_handlers.o):(.literal.system_event_sta_got_ip_default+0xc): undefined reference to `esp_wifi_internal_set_sta_ip'
C:/nod/ethernet/ethernet/build/esp32\libesp32.a(event_default_handlers.o): In function `system_event_ap_stop_handle_default':
C:/sdk32/esp-idf/components/esp32/event_default_handlers.c:183: undefined reference to `esp_wifi_internal_reg_rxcb'
C:/nod/ethernet/ethernet/build/esp32\libesp32.a(event_default_handlers.o): In function `system_event_sta_disconnected_handle_default':
C:/sdk32/esp-idf/components/esp32/event_default_handlers.c:245: undefined reference to `esp_wifi_internal_reg_rxcb'
C:/nod/ethernet/ethernet/build/esp32\libesp32.a(event_default_handlers.o): In function `system_event_sta_connected_handle_default':
C:/sdk32/esp-idf/components/esp32/event_default_handlers.c:213: undefined reference to `esp_wifi_internal_reg_rxcb'
C:/nod/ethernet/ethernet/build/esp32\libesp32.a(event_default_handlers.o): In function `system_event_ap_start_handle_default':
C:/sdk32/esp-idf/components/esp32/event_default_handlers.c:235: undefined reference to `esp_wifi_internal_reg_rxcb'
C:/sdk32/esp-idf/components/esp32/event_default_handlers.c:173: undefined reference to `esp_wifi_get_mac'
C:/nod/ethernet/ethernet/build/esp32\libesp32.a(event_default_handlers.o): In function `system_event_sta_start_handle_default':
C:/sdk32/esp-idf/components/esp32/event_default_handlers.c:176: undefined reference to `esp_wifi_get_mac'
C:/sdk32/esp-idf/components/esp32/event_default_handlers.c:199: undefined reference to `esp_wifi_internal_set_sta_ip'
C:/nod/ethernet/ethernet/build/lwip\liblwip.a(pbuf.o):(.literal.pbuf_free+0x0): undefined reference to `esp_wifi_internal_free_rx_buffer'
C:/nod/ethernet/ethernet/build/lwip\liblwip.a(pbuf.o): In function `pbuf_free':
C:/sdk32/esp-idf/components/lwip/core/pbuf.c:1253: undefined reference to `esp_wifi_internal_free_rx_buffer'
C:/nod/ethernet/ethernet/build/lwip\liblwip.a(wlanif.o):(.literal.low_level_output+0x0): undefined reference to `esp_wifi_internal_tx'
C:/nod/ethernet/ethernet/build/lwip\liblwip.a(wlanif.o): In function `low_level_output':
C:/sdk32/esp-idf/components/lwip/port/netif/wlanif.c:117: undefined reference to `esp_wifi_internal_tx'
C:/sdk32/esp-idf/components/lwip/port/netif/wlanif.c:122: undefined reference to `esp_wifi_internal_tx'
collect2.exe: error: ld returned 1 exit status
a second thing (puzzled):
the ethernet example calls tcpip_adapter_init();
https://github.com/espressif/esp-idf/bl ... ain.c#L164
this calls
https://github.com/espressif/esp-idf/bl ... lwip.c#L48
and there we address to ap ( btw ap without WiFi enabled brings undefines ? )
missing the "TCPIP_ADAPTER_IF_ETHERNET" and IP Setting, where we get our "ETH" IP Address ?
btw we have a check on :
https://github.com/espressif/esp-idf/bl ... wip.c#L679
best wishes
rudi