STM32-H7 driver for LAN8670 external phy
Hi, I'm working on project, and as a part of it I need to establish an Ethernet connection between the 2 devices. The device is powered by STM32H7 MCU which is connected to Microchip LAN8670 PHY (10BaseT-1s).
On the other side there is or another device, or the LAN8670 bases EVB LAN8670-USB dongle.
from the EV side, Microchip provides driver for windows, and the dongle seems working.
But from the PCB side it's more complicated - there is no driver for this PHY.
As I understand, all the STM boards with ethernet have the same LAN8742 PHY, and HAL ETH drivers (also LwIP), are based on BSP driver LAN8742 (from ST or Microchip, both have it in their GitHub repositories).
But the only 2 drivers I could find for LAN8670 are the Microchip Harmony driver for their MCUs (see their GitHub), and the oryx driver for cyclone TCP stack.
So the only way I see, if someone hasn't did it yet, is to port those drivers to the STM base (which is no so straight, the drivers are very different).
Besides the drivers, the STM32H7 family can't even establish proper ethernet connection out of the box with is own PHY (using nucleo board) - need to redirect the memory, as shown in the example. So even if to port the basic BSP driver, I'm now sure it will work properly.
Any thoughts about it? How can I use this PHY with STM32 MCU ?
