Getting error of implicit declaration of function 'esp_eth_get_speed' in
Posted: Tue Apr 02, 2019 5:10 am
Hi,
Yesterday I updated esp-idf with the latest version i.e. beta version and started getting below error. Checked header files for the inclusion of esp_eth_get_speed() and found it that file. Didn't understand the reason for implicit declaration of function esp_eth_get_speed. Is it a bug in your new version or something else??
Below is the log while building the code:
CC build/lwip/port/esp32/netif/ethernetif.o
D:/Ritu/ESP32/ESP32-WROMM-32/esp-idf/components/lwip/port/esp32/netif/ethernetif.c: In function 'ethernetif_init':
D:/Ritu/ESP32/ESP32-WROMM-32/esp-idf/components/lwip/port/esp32/netif/ethernetif.c:237:6: error: implicit declaration of function 'esp_eth_get_speed' [-Werror=implicit-function-declaration]
if(esp_eth_get_speed() == ETH_SPEED_MODE_100M){
^
cc1.exe: some warnings being treated as errors
make[1]: *** [/d/Ritu/ESP32/ESP32-WROMM-32/esp-idf/make/component_wrapper.mk:290: port/esp32/netif/ethernetif.o] Error 1
make: *** [/d/Ritu/ESP32/ESP32-WROMM-32/esp-idf/make/project.mk:578: component-lwip-build] Error 2
Please suggest the solution for the same asap.
Thanks
Ritu
Yesterday I updated esp-idf with the latest version i.e. beta version and started getting below error. Checked header files for the inclusion of esp_eth_get_speed() and found it that file. Didn't understand the reason for implicit declaration of function esp_eth_get_speed. Is it a bug in your new version or something else??
Below is the log while building the code:
CC build/lwip/port/esp32/netif/ethernetif.o
D:/Ritu/ESP32/ESP32-WROMM-32/esp-idf/components/lwip/port/esp32/netif/ethernetif.c: In function 'ethernetif_init':
D:/Ritu/ESP32/ESP32-WROMM-32/esp-idf/components/lwip/port/esp32/netif/ethernetif.c:237:6: error: implicit declaration of function 'esp_eth_get_speed' [-Werror=implicit-function-declaration]
if(esp_eth_get_speed() == ETH_SPEED_MODE_100M){
^
cc1.exe: some warnings being treated as errors
make[1]: *** [/d/Ritu/ESP32/ESP32-WROMM-32/esp-idf/make/component_wrapper.mk:290: port/esp32/netif/ethernetif.o] Error 1
make: *** [/d/Ritu/ESP32/ESP32-WROMM-32/esp-idf/make/project.mk:578: component-lwip-build] Error 2
Please suggest the solution for the same asap.
Thanks
Ritu