KSZ8863RLL Switch & ESP-32
Posted: Thu Oct 31, 2019 1:27 pm
Hi,
I have a PCB with a 3-port ethernet switch KSZ8863RLL (http://ww1.microchip.com/downloads/en/D ... 02335B.pdf) and an esp32 WROVER connected to it via RMII and MDIO interface, and I need to establish an internet connection with the esp. The switching itself is working by default. By connecting a computer to Port 2 of the switch and Port 1 to an external switch, the computer correctly receives an IP from a DHCP server and is connected to the internet.
However, the esp cannot obtain an IP address. By using a logic analyzer to view the activity on the RMII pins, I am able to see that there is periodic traffic on the EMAC TXD0 and TXD1 pins of the esp. More specifically, the esp transmits something exactly every 15 seconds, but I am unable to find what this interval means or what the data it is trying to transmit is. In the end, a DHCP Discover/Request by the esp never reaches the DHCP server, although tcpip_adapter is initialised and DHCP client started (confirmed via log output).
Does anyone have experience with switches and can point me in the right direction?
I have a PCB with a 3-port ethernet switch KSZ8863RLL (http://ww1.microchip.com/downloads/en/D ... 02335B.pdf) and an esp32 WROVER connected to it via RMII and MDIO interface, and I need to establish an internet connection with the esp. The switching itself is working by default. By connecting a computer to Port 2 of the switch and Port 1 to an external switch, the computer correctly receives an IP from a DHCP server and is connected to the internet.
However, the esp cannot obtain an IP address. By using a logic analyzer to view the activity on the RMII pins, I am able to see that there is periodic traffic on the EMAC TXD0 and TXD1 pins of the esp. More specifically, the esp transmits something exactly every 15 seconds, but I am unable to find what this interval means or what the data it is trying to transmit is. In the end, a DHCP Discover/Request by the esp never reaches the DHCP server, although tcpip_adapter is initialised and DHCP client started (confirmed via log output).
Does anyone have experience with switches and can point me in the right direction?