---
title: "STM32F4EthernetLoopbackW5500"
url: "https://maker.wiznet.io/gemma/projects/stm32f4ethernetloopbackw5500/"
markdown_url: "https://maker.wiznet.io/gemma/projects/stm32f4ethernetloopbackw5500/md"
type: "UCC: User Created Content"
author: "storm345"
author_url: "https://github.com/storm345/STM32F4EthernetLoopbackW5500"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "storm345"
original_url: "https://github.com/storm345/STM32F4EthernetLoopbackW5500"
published: "2023-04-03"
language: "en"
hardware: ["WIZnet W5500"]
likes: 0
views: 27
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# STM32F4EthernetLoopbackW5500

> Simple minimal loopback implementation on the STM32F407VG discovery board with W5500 module over SPI using CubeIDE and the STM32 HAL.

Original author: storm345 (source: https://github.com/storm345/STM32F4EthernetLoopbackW5500)

## Components

- **WIZnet W5500** x 1 ([docs](https://docs.wiznet.io/Product/Chip/Ethernet/W5500))

WIZnet parts: W5500 ([Datasheet](https://docs.wiznet.io/Product/Chip/Ethernet/W5500/datasheet?utm_source=maker&utm_medium=project&utm_campaign=w5500), [product hub](https://maker.wiznet.io/products/w5500/))

## Documents and links

- [storm345](https://github.com/storm345/STM32F4EthernetLoopbackW5500) (code)

## Article

Simple minimal loopback implementation on the STM32F407VG discovery board with W5500 module over SPI using CubeIDE and the STM32 HAL. Uses the Wiznet W5500 ioLibrary and loopback implementation. Application code is simply adapted from the CoIde example shared by Wiznet <https://docs.wiznet.io/img/products/w5500/w5500_example_loopback_stm32f103x_coide_20131104.zip>

**Summary**

The repository contains the source code for a simple loopback program that runs on an STM32F4 microcontroller with a Wiznet W5500 Ethernet controller. The program sets up the W5500 controller to communicate with an Ethernet network and then sends data received from the network back to the network, essentially creating a loopback connection. The code is written in C and uses the STM32F4 Standard Peripheral Library as well as the Wiznet W5500 driver library. The repository includes a Makefile to build the code and a README file with instructions on how to set up the hardware and run the program.

**How to use**

To use the repository, you can follow these steps:

1. Clone the repository to your local machine using Git.

2. Install the necessary software and tools to build and flash the code to the STM32F4 microcontroller, such as a C compiler, a make tool, and a flash programming utility.

3. Connect the STM32F4 board to your computer using a suitable programming interface, such as a ST-LINK or JTAG debugger.

4. Build the code using the included Makefile.

5. Flash the code to the STM32F4 board using the programming utility.

6. Connect the board to an Ethernet network using a suitable Ethernet cable.

7. Verify that the board is communicating with the network by checking the link status and IP address.

8. Test the loopback connection by sending data from a network device to the board and verifying that it is received and echoed back to the network.

For detailed instructions on how to set up and use the repository, please refer to the README file included in the repository.

![](https://maker.wiznet.io/upload/ckeditor5/271954182%5F1680511932%2Epng)

---

Source: https://maker.wiznet.io/gemma/projects/stm32f4ethernetloopbackw5500/
