cancel
Showing results for 
Search instead for 
Did you mean: 

Using ETH on STM32H753 without MIIM bus (MDIO, MDC)

Damien Gotfroi
Associate

Hello,

In a project, we are using a STM32 and an Octavo (AM335x). Both are connected to a Microchip KSZ9567R Ethernet Switch.

The Ethernet Switch has only one MIIM interface, and I guess I can't connect together STM32 MIIM and Octavo MIIM on this single switch MIIM Interface.

The solution seems to use instead the switch SPI or I2C interface.

But in CubeMX it seems the use of the STM32 MIIM interface is mandatory...

How can I disable it ?

Many thanks and best regards

2 REPLIES 2
JanS
Associate II

I'm also interested in an answer to this as I'd also like to use the SPI/I2C interface instead of the MIIM interface due to access to more of the KSZ... internal registers.

So, is it possible to have working ETH without using the MIIM (MDC/MDIO) pins and instead having the chip configured via SPI/I2C from the STM32H7?

Pavel A.
Evangelist III

I had a KZ switch in one of recent projects, though it was connected only thru RMII.

It looked like the ethernet configuration code in ST examples can be easily decoupled from PHY interface,

so the latter can be moved to I2C or SPI. No problem.

-- pa