2021-08-16 05:28 AM
We are working with KSZ8563 3 port ethernet switch over the RMII interface. Communication is MDIO and it is working. But we couldn't run the lwip udp example.
Is there any sample software on KSZ Phys, so I will check the settings? Our controller is STM32H753ZI.
Umit
2021-08-16 08:08 AM
KZ8563 perhaps.
If I remember correctly this is very simple.
STM32 connects to the internal MAC only port of the KZ, so it is considered always connected and always at 100 Mbit full duplex.
Other two external ports are by default managed automatically.
So you just remove the link detection logic in the examples, and it should just work.
Later you can add link detection on external ports and do something with that info, if you want.
-- pa
2021-08-16 10:16 AM
Thank you Pavel,
Could you give me more details about link detection logic? How can i remove it ?
2021-08-17 12:10 PM
For example in LwIP_HTTP_Server_Netconn_RTOS demo:
in this place instead of getting the PHY state just skip to this line and proceed as if you have 100 MB/s full duplex.
Also, do nothing here. STM32 sits on the port that is always connected.
--pa