Wiznet makers

Benjamin

Published July 17, 2024 ©

43 UCC

11 WCC

4 VAR

0 Contests

0 Followers

1 Following

Original Link

Ditel_W5500

This project uses the W5500 Ethernet module and includes an example of integration with the Nucleo_F446RE board.

COMPONENTS Hardware components

STMicroelectronics - NUCLEO-F446RE

x 1


WIZnet - W5500

x 1


PROJECT DESCRIPTION

Overview

The Ditel_W5500 project integrates the W5500 Ethernet module with the STM32 Nucleo_F446RE board, offering network functionality examples. It primarily uses SPI communication to control the W5500 module, enabling dynamic IP address allocation via DHCP or static IP address configuration.

Key Features

  • DHCP Support: Obtain IP addresses dynamically through DHCP.
  • Static IP Configuration: Manually set IP, gateway, subnet mask, and DNS server addresses.
  • UDP Communication: Open UDP sockets and send/receive data.

Code Details

  • DW5500_init Function: Initializes SPI and GPIO pins and sets network information. It supports both DHCP and static IP configurations.
  • SPI Control Functions: _DW5500_Select and _DW5500_Unselect manage the CS pin for SPI communication.
  • Data Transmission Functions: _DW5500_ReadBuff and _DW5500_WriteBuff handle data transfer via SPI.
  • DHCP Callback Functions: Handle IP assignment verification through DHCP.
  • UDP Functions: Initialize, open, close, and manage data transmission over UDP sockets.

Usage Example

The project includes example code for using the Nucleo_F446RE board, demonstrating W5500 module setup and UDP communication.

Project Structure

  • Core Folder: Contains essential library files.
  • Example/Library-W5500-Nucleo_F446RE Folder: Provides example code for the Nucleo_F446RE board.

Installation and Setup

  1. Configure SPI and GPIO using STM32CubeMX.
  2. Compile the example code and upload it to the Nucleo board.
  3. Connect the Ethernet cable and verify network communication.

This project serves as a valuable reference and example for developers looking to implement simple network communication using the W5500 Ethernet module. For more details, visit the Ditel_W5500 GitHub page.

 

 

Documents
  • Ditel_W5500.c

Comments Write