Skip to main content
Damien Gotfroi
Associate
April 12, 2019
Question

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

  • April 12, 2019
  • 1 reply
  • 1293 views

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

This topic has been closed for replies.

1 reply

JanS
Associate
November 6, 2020

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.
Super User
November 7, 2020

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