cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX Ethernet feature request

wisse-cp
Associate

Hello, I have a feature request relating to ethernet for CubeMX.

We have a PHY that is configured via SPI instead of MDIO but CubeMX insists on configuring the MDIO and MDC pins even when they're not required. We have to manually write code to undo this assignment and use the pins for another function instead. A checkbox like the "Activate Rx Err signal" but for MDIO would be nice.

2 REPLIES 2
Tilen MAJERLE
ST Employee

Hello @wisse-cp​ ,

If I understand well, you have only SPI communication between STM32 & external PHY. If this is the case, you do not need ETHERNET IP configured in CubeMX.

Then you just configure SPI.

Or do I understand wrongly?

Not quite, we still need the Ethernet peripheral enabled for the MII connection. The difference is that instead of the MDIO configuration bus we use SPI.

CubeMX forces the ETH_MDC and ETH_MDIO pins to be configured as such in this case, instead of letting these two pins be used for other functions.