2025-01-13 04:45 AM
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.
What I want to set up on these devices is as follows.
100Mbps Speed, Full Duplex, Auto Negotiation.
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.
2025-01-13 05:02 AM