Wt32_eth01 (esp32 + lan8720)

I have this problem !

C:\Users\spiro\Documents\Arduino\SimpleAuthentication\SimpleAuthentication.ino: In function 'void setup()':
C:\Users\spiro\Documents\Arduino\SimpleAuthentication\SimpleAuthentication.ino:167:12: error: no matching function for call to 'ETHClass::begin(int, int)'
167 | ETH.begin(ETH_PHY_ADDR, ETH_PHY_POWER);
| ~^~~~~~~~~~~~~~~~~~~~~
In file included from c:\Users\spiro\Documents\Arduino\libraries\WebServer_WT32_ETH01\src/WebServer_WT32_ETH01.hpp:76,
from c:\Users\spiro\Documents\Arduino\libraries\WebServer_WT32_ETH01\src/WebServer_WT32_ETH01.h:72,
from C:\Users\spiro\Documents\Arduino\SimpleAuthentication\SimpleAuthentication.ino:18:
C:\Users\spiro\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.1\libraries\Ethernet\src/ETH.h:126:8: note: candidate: 'bool ETHClass::begin(eth_phy_type_t, int32_t, int, int, int, eth_clock_mode_t)'
126 | bool begin(eth_phy_type_t type, int32_t phy_addr, int mdc, int mdio, int power, eth_clock_mode_t clk_mode);
| ^~~~~
C:\Users\spiro\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.1\libraries\Ethernet\src/ETH.h:126:8: note: candidate expects 6 arguments, 2 provided
C:\Users\spiro\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.1\libraries\Ethernet\src/ETH.h:129:8: note: candidate: 'bool ETHClass::begin(eth_phy_type_t, int32_t, int, int, int, SPIClass&, uint8_t)'
129 | bool begin(eth_phy_type_t type, int32_t phy_addr, int cs, int irq, int rst, SPIClass &spi, uint8_t spi_freq_mhz = ETH_PHY_SPI_FREQ_MHZ);
| ^~~~~
C:\Users\spiro\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.1\libraries\Ethernet\src/ETH.h:129:8: note: candidate expects 7 arguments, 2 provided
C:\Users\spiro\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.1\libraries\Ethernet\src/ETH.h:131:8: note: candidate: 'bool ETHClass::begin(eth_phy_type_t, int32_t, int, int, int, spi_host_device_t, int, int, int, uint8_t)'
131 | bool begin(
| ^~~~~
C:\Users\spiro\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.1\libraries\Ethernet\src/ETH.h:131:8: note: candidate expects 10 arguments, 2 provided
C:\Users\spiro\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.1\libraries\Ethernet\src/ETH.h:136:8: note: candidate: 'bool ETHClass::begin()'
136 | bool begin() {
| ^~~~~
C:\Users\spiro\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.1\libraries\Ethernet\src/ETH.h:136:8: note: candidate expects 0 arguments, 2 provided

exit status 1

Compilation error: no matching function for call to 'ETHClass::begin(int, int)'

you could be having problems with upgrade from ESP32 core 2.x to 3.0
have a look at post udpsendreceive-wt32-eth01 by @Juraj

downgrade the core to 2.0.x
It compiles without warnings.

How do I do that?

depending on your IDE Version you should have a "Board-Manager" and within the board-manager you can choose other core versions also.

my first guess would be:
https://www.google.com/search?client=firefox-b-d&q=Arduino+how+to+downgrad+board+core+version

look at the current plaform's Ethernet library examples

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.