---
title: "STM32(HAL library) + W5500"
url: "https://maker.wiznet.io/mark/projects/stm32-hal-library-w5500-1/"
markdown_url: "https://maker.wiznet.io/mark/projects/stm32-hal-library-w5500-1/md"
type: "UCC: User Created Content"
author: "天外飞仙CUG"
author_url: "https://blog.csdn.net/zhang062061/article/details/126900201?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522166899837516782425193910%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=166899837516782425193910&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~hot_rank-3-126900201-null-null.nonecase&utm_term=w5500%20stm32%E5%BC%80%E5%8F%91hal%E5%BA%93&spm=1018.2226.3001.4450"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "天外飞仙CUG"
original_url: "https://blog.csdn.net/zhang062061/article/details/126900201?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522166899837516782425193910%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=166899837516782425193910&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~hot_rank-3-126900201-null-null.nonecase&utm_term=w5500%20stm32%E5%BC%80%E5%8F%91hal%E5%BA%93&spm=1018.2226.3001.4450"
published: "2023-09-04"
language: "en"
likes: 0
views: 4105
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# STM32(HAL library) + W5500

> STM32(HAL library) + W5500

Original author: 天外飞仙CUG (source: https://blog.csdn.net/zhang062061/article/details/126900201?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522166899837516782425193910%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=166899837516782425193910&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~hot_rank-3-126900201-null-null.nonecase&utm_term=w5500%20stm32%E5%BC%80%E5%8F%91hal%E5%BA%93&spm=1018.2226.3001.4450)

## Article

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

1.It should be noted that the resistors R12~R17 are for mode selection, and which ones to weld are selected according to actual needs.

2.SPI interface for MCU & W5500, plus the INT and RST pins, occupying a total of 6 IOs, of which the INT pin can be used, and RST generally needs to be connected.

SW Part:

<https://github.com/Wiznet/ioLibrary_Driver>

SPI setting:

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

Add socket.c , wizchip_conf.c & W5500.c in the project:

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

SPI initialization:

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

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

---

Source: https://maker.wiznet.io/mark/projects/stm32-hal-library-w5500-1/
