Wiznet makers

Hannah

Published October 20, 2023 ©

33 UCC

5 WCC

1 VAR

0 Contests

0 Followers

0 Following

How to import W6100 to STM32F411

In this article, we will walk you through the process of importing the W6100 module into an STM32F411 microcontroller.

COMPONENTS Hardware components

wiznet - w6100 ethernet shield

x 1


STMicroelectronics - STM32F411RE

x 1


PROJECT DESCRIPTION

I've attempted to write a guide for porting W6100 Ethernet shield to STM32F411. Here are the steps:

  1. To begin porting W6100 to the STM32 series, start by configuring the SPI section. Set up four pins for SPI based on the pins you are using.
  2. Configure a 1ms timer. According to the datasheet, TIM1 mode uses the APB2 bus and is set to 80MHz. Adjust the settings to achieve a 1ms time period in the update event calculation.
  3. When you generate the code, it will create a main project as shown on the right. You should then copy the W6100-related code into this project. Ensure that you insert it between the lines of code that are annotated with comments. This will help safeguard your code against being overwritten during future configuration changes. Also, remember to add the necessary include paths based on the code you've added.
  4. Next, modify the Wiznet chip read and write sections to be compatible with the HAL driver.
  5. Finally, verify the test results.

 

I hope this article can be a valuable reference when importing the W6100 chip to a different MCU.

Documents
  • W6100_STM32F411

Comments Write