Welcome to Francis Academic Press

Academic Journal of Computing & Information Science, 2026, 9(4); doi: 10.25236/AJCIS.2026.090412.

Design and Implementation of Etherne Communication System Based on STM32F407

Author(s)

Cuiping Zhang1,2, Jiazu Xie1,2

Corresponding Author:
Jiazu Xie
Affiliation(s)

1Tianjin Key Laboratory of Wireless Mobile Communications and Power Transmission, Tianjin Normal University, Tianjin, 300387, China

2College of Electronic and Communication Engineering, Tianjin Normal University, Tianjin, 300387, China  

Abstract

With the rapid development of the Internet of Things (IoT) and industrial control networks, the demand for embedded devices to access Ethernet is increasing day by day. This article designs and implements an Ethernet communication system based on STMicroelectronics' high-performance ARM Cortex-M4 core microcontroller STM32F407ZGT6. The system adopts a modular design concept, with STM32F407 as the core hardware and LAN8720A physical layer transceiver (PHY) chip integrated to build an Ethernet interface; The lightweight TCP/IP protocol stack (LWIP) was ported to the software to implement network protocol processing, and a Socket based application layer communication program was developed. This paper provides a detailed explanation of hardware circuit design, software architecture construction, the porting and configuration of the LWIP protocol stack, application layer communication protocol design, and the system testing plan. The test results show that the system can stably implement TCP and UDP communication, meeting the basic needs of embedded devices accessing local area networks for data exchange. It has the advantages of low cost, stable performance, and easy development, laying the foundation for more complex network applications such as web servers and remote control in the future.

Keywords

STM32F407; Ethernet communication; LWIP; TCP/IP; Embedded systems; LAN8720A; Socket

Cite This Paper

Cuiping Zhang, Jiazu Xie. Design and Implementation of Etherne Communication System Based on STM32F407. Academic Journal of Computing & Information Science (2026), Vol. 9, Issue 4: 96-102. https://doi.org/10.25236/AJCIS.2026.090412.

References

[1] Wang Tianmiao, Wei Hongxing. Embedded System Design and Example Development [M]. Beijing: Tsinghua University Press, 2020.

[2] Dunkels A. Design and Implementation of the lwIP TCP/IP Stack [J]. Swedish Institute of Computer Science, 2001, 2(1): 1-47.

[3] STMicroelectronics. RM0090 Reference manual - STM32F407xx advanced ARM-based 32-bit MCUs [EB/OL]. (2019-10-01) .

[4] Microchip. LAN8720A Datasheet - Small Footprint RMII 10/100 Ethernet Transceiver with HP Auto-MDIX and flexPWR® Technology [DS]. 2021.

[5] STMicroelectronics. STM32F407IGH6 Datasheet [Z]. 2019.

[6] STMicroelectronics. Description of STM32F4 HAL and low-layer drivers: UM1725 [EB/OL]. (2021-01-01) .

[7] lwIP Contributors. lwIP - A Lightweight TCP/IP stack [EB/OL]. [2024-11-20].

[8] Huang Keya. ARM Cortex-M4 Embedded System Principles and Applications: Based on STM32F407 Microcontroller HAL Library Development [M]. Beijing: Tsinghua University Press, 2024.

[9] OASIS. MQTT Version 5.0: OASIS Standard [S/OL]. (2019-03-07) .