Skip to main content
This topic has been closed for replies.

8 replies

Piranha
Principal III
December 2, 2020

Apart for a bit more configuration, there are no technical problems using such a PHY+switch.

Almost all of the real problems are in software:

https://community.st.com/s/question/0D50X0000C6eNNSSQ2/bug-fixes-stm32h7-ethernet

https://community.st.com/s/question/0D50X0000AhNBoWSQW/actually-working-stm32-ethernet-and-lwip-demonstration-firmware

STM32 User
Associate II
December 2, 2020

My hope is to remove the PHY to gain spacing on a board.

Piranha
Principal III
December 2, 2020

You are not removing PHY but replacing it with an integrated PHY+switch. :)

Piranha
Principal III
December 3, 2020

What registers are you comparing between STM32 and a PHY? That's a nonsense. You are misunderstanding something.

STM32 has a MAC peripheral, which can be connected to anything supporting MII/RMII interfaces. To use wired Ethernet you need an external PHY chip with one of those interfaces. And optionally you can use an integrated PHY+switch chip if you need more than one physical port.

As I said, there are no problems using almost any PHY with MII/RMII interface (including KSZ8863) with any STM32 with Ethernet peripheral.

STM32 User
Associate II
December 3, 2020

https://ww1.microchip.com/downloads/en/DeviceDoc/00002335B.pdf

From the data sheet on the SWITCH

"Supports RMII Interface and 50 MHz Reference Clock Output". Can I directly connect the STM32 MAC peripheral to this switch RMII interface? Will there be code required or is it just plug and play?

Pavel A.
December 6, 2020

Almost  just plug and play. The only thing to do with the STM32 MAC, configure it to 100 Mb/s full duplex, as this is how the switch is connected to STM32. Do not check the link state periodically on the internal port, because it never changes.

Of course, as long as it works. Otherwise you'll need to read the boring registers ;)

-- pa

Pavel A.
December 3, 2020

@STM32 User​ Would advice to connect also I2C interface of the the KSZ8863, to be able to see all its registers.

I2C is cheap and access to entire register space can be very helpful for debugging and diagnostic.

-- pa