Example Ethernet loopback code for STM32H573 and LAN8742A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-11 3:44 AM
Hi,
I'm currently working on a project involving the STM32H573 microcontroller and the LAN8742A Ethernet PHY. My goal is to implement a simple Ethernet loopback test to verify the basic functionality of the Ethernet interface. Could you please provide if you have anything?
Thanks,
Ravi.ch
- Labels:
-
STM32H5 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-11 6:19 AM
Hello @rchilakalapudi ,
My understanding is that you want to implement an example without any middleware to test Ethernet controller functionality my recommendation is to have a look at the following article:
How to create a bare metal HAL Ethernet applicatio... - STMicroelectronics Community
Also, you can check a basic implementation using Azure Netxduo :
or an example using LWIP middleware :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-12 4:26 PM
The LAN8742A can do internal loopback (without any external connection or cable). See the data sheet, 3.8.10 Loopback operation. This section also explains how to make a connector for external loopback.
