I'm using a ESP32 with an LAN8710A-EZC similare to an Olimax board (https://www.olimex.com/Products/IoT/ESP ... e-hardware). On the board is running MicroPython 1.12-137. To initialize the Ethernet connection I use the following code:
Code: Select all
import network from machine import Pin LAN = network.LAN(mdc = Pin(23), mdio = Pin(18), power = None, phy_type = network.PHY_LAN8720, clock_mode=network.ETH_CLOCK_GPIO0_IN, phy_addr=0) LAN.active(1)
I (501867) emac: emac reset done
I (501867) ethernet: start
>>> I (505867) ethernet: LAN cable connected
I (506897) event: eth ip: 192.168.0.6, mask: 255.255.255.0, gw: 192.168.0.1
I (506897) ethernet: Got IP
And then the esp32 stops running and I have to tipp something in the console the get back in the repl. The board is now connected to the Internet but the following code stops.
Hope someone can help me!