Skip to main content
Visitor II
January 13, 2025
Question

Using KSZ8863 3Port Ethernet Switch on STM32f207VET

  • January 13, 2025
  • 1 reply
  • 874 views

Hello.



I'm going to use STM32f207VET and KSZ8863 (3Port Ethernet switch) for custom boards in this project I'm working on.

The switch and stm32 are already hardware-connected to the RMII interface on the custom board.

Clock used an external crystal and set it at 50 Mhz as below.

Honeybadger_0-1736772090286.png

 

 

What I want to set up on these devices is as follows.
100Mbps Speed, Full Duplex, Auto Negotiation.

 

 

화면 캡처 2025-01-13 213932.png
I think you can select user PHY among the external PHY configuration options in the tube and then modify the code inside the HAL_ETH_Init() function after making other settings according to the KSZ8863 data sheet.


As far as I know, to drive the Ethernet switch, you need to enter the values in each of the two PHY registers according to the MDIO protocol.


But I don't know if what I know is right.

If what I know is correct, do I just need to set the PHY register using MDIO?

If what I know is wrong, please let me know which one is wrong.


Also, please let me know how PHY will be initialized.


Thank you.

    This topic has been closed for replies.