2020-12-02 03:28 PM
https://www.digikey.com/en/products/detail/microchip-technology/KSZ8863RLLI/2426202 - switch
Any1 have experiance with using these two components?
If not are they're any known plug and play switches that will achieve this?
2020-12-02 03:46 PM
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
2020-12-02 03:48 PM
My hope is to remove the PHY to gain spacing on a board.
2020-12-02 03:58 PM
You are not removing PHY but replacing it with an integrated PHY+switch. :)
2020-12-02 03:59 PM
Interesting so even though the registers seem to be similar on the STM32 and the 3 port switch they can't be connected to each other.
2020-12-02 04:45 PM
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.
2020-12-02 05:41 PM
@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
2020-12-03 03:12 PM
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?
2020-12-06 10:17 AM
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