You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to configure LAN8720 RMII Ethernet on STM32F407VET6? #957
stm32f407vet6_dev_board.h - Ethernet is working for this board, with a DP83848 PHY
- 7. A driver is required for the LAN8720 PHY, not sure if one is provided by ST. The schematic for dev board mentioned above could be a pointer, perhaps also the schematic for the Nucleo F756ZG dev board which uses a LAN8742 PHY.
The reason it failed to build is likely that the project is not set up to include the necessary parts - the Debug F407 25MHz ETH build configuration is (for the DP83848 PHY).
You have to get (or write) a LAN8720 driver and create a build configuration using it. Copy this and change the two last include paths:
Perhaps the F7 LAN8742 can be used as-is or as a base if no driver is available for the F4. To check if a driver is available previously I added a new project and edited the .ioc file - but the latest IDE version tell me to install stm32cubeMX to do so, which I have not done yet.
Activity
c0ncua109 commentedon May 20, 2026
I already tried enabling Ethernet by changing:
terjeio commentedon May 20, 2026
The reason it failed to build is likely that the project is not set up to include the necessary parts - the Debug F407 25MHz ETH build configuration is (for the DP83848 PHY).
c0ncua109 commentedon May 20, 2026
LAN8720 is basically a lower-cost variant of the LAN8742 and they are largely register-compatible for RMII operation.
What would be the correct way to build grblHAL using the existing LAN8742 Ethernet configuration?
Should I just use the existing
Debug F407 25MHz ETHbuild configuration and keep the same PHY driver setup, only changing the PHY address if required?My hardware is STM32F407VET6 + LAN8720 in RMII mode.
terjeio commentedon May 20, 2026
You have to get (or write) a LAN8720 driver and create a build configuration using it. Copy this and change the two last include paths:
Perhaps the F7 LAN8742 can be used as-is or as a base if no driver is available for the F4. To check if a driver is available previously I added a new project and edited the .ioc file - but the latest IDE version tell me to install stm32cubeMX to do so, which I have not done yet.