2025-07-28 3:53 AM
Hello,
I am working on the STM32H743BIT6 ethernet communication. I am using the external PHY DP83TC814RRHARQ1 for my requirement. I am configuring in CubeMX as USER_PHY under platform settings of LwIP. How can i communicate via external PHY.? Does configuring the pins for this external PHY is enough or do we need to include drivers of DP83TC814RRHARQ1 in the software. Can you help me on this how to communicate with this external PHY.
2025-07-29 1:56 AM
Hello @mahesh543 and welcome to ST Community!
You need to configure the pins properly and include the PHY drivers (both header and source files) for your specific PHY device in your project directory, then import them accordingly. This will enable your MCU to communicate with the PHY by reading from and writing to its registers.
Best regards
2025-07-29 2:58 AM
I have configured the PHY in LwIP platform settings as USER_PHY. It is correct? I have provided the image in the above. Can you suggest me regarding the PHY configuration.
Thank you
Mahesh
2025-07-29 3:43 AM - edited 2025-07-31 2:31 AM
>I have configured the PHY in LwIP platform settings as USER_PHY. It is correct?
Yes that is correct.
>Can you suggest me regarding the PHY configuration.
Regarding PHY configuration, the necessary setup is typically handled within the driver you import into your project. Your task is to establish the connection between LwIP and your specific PHY so that communication with the PHY registers is possible. You might find this thread helpful:
https://community.st.com/t5/stm32cubemx-mcus/how-to-configure-external-ethernet-phy/m-p/803061
Additionally, downloading a working LwIP project and examining how LwIP communicates with the PHY via the IO functions in the ethernetif.c source file can provide valuable insights.