Wiznet makers

TheoIm

Published November 26, 2024 ©

32 UCC

25 WCC

5 VAR

0 Contests

0 Followers

0 Following

1 MCU, 2 WIZnet Chips: Dual SPI Networking on STM32

This project utilizes an W5100S-EVB(STM32 MCU Board) to manage 2 W5100S chips via separate SPI interfaces, enabling concurrent network operations from a single

COMPONENTS Hardware components

WIZnet - W5100S-EVB

x 1


WIZnet - WIZnet Ethernet HAT

x 1


PROJECT DESCRIPTION

Controlling Two W5100S Ethernet HATs with STM32 MCU

Objective: Utilize the STM32 MCU board (W5100S-EVB) to activate an additional SPI channel and connect two WIZnet Ethernet HATs (W5100S), creating a project that controls two W5100S chips with a single MCU.

Implementation Approach: Use the Chip Select (CS) pin alternately to switch between the Ethernet HATs, enabling communication between the MCU and both W5100S chips.

SPI Configuration:

  • SPI1:
    • Pins PA5, PA6, and PA7 (SCK, MISO, MOSI) from GPIOA.
    • Connected to CHIP2 (WIZCHIP2).
    • CS: GPIOD pin 2, Reset: GPIOC pin 7.
  • SPI2:
    • Pins PB13, PB14, and PB15 (SCK, MISO, MOSI) from GPIOB.
    • Connected to CHIP1 (WIZCHIP1).
    • CS: GPIOD pin 7, Reset: GPIOD pin 8.

Result: Successfully connected two Ethernet ports to a single MCU and conducted a loopback test without any data loss.

Details and Code: Refer to the GitHub link for full implementation details.

STM32_Dual_W5100S

Documents
Comments Write