STM32 microcontrollers: going online with Wiznet W5500

how to work with this chip using the STM32 MK as an example.(W5500)
ORIGINAL POST
By Alexander (Александр)
components
Hardware Components
MK STM32
X 1
W5500 Module
X 1
details

STM32 마이크로 컨트롤러 위즈네트 w5500.jpg

Wiznet W5500 is an Ethernet controller with SPI interface. The chip supports 10baseT and 100baseT standards. A characteristic feature of the controller is that it has a hardware implementation of TCP / IPv4. This allows you to significantly unload the microcontroller working with it. Wiznet W5500 supports up to 8 sockets and has a total of 16 KB of memory for receiving and another 16 KB for transmission. This memory can be arbitrarily allocated between sockets. Let’s figure out how to work with this chip using the STM32 MK as an example. Note: In this context, you might be interested in Exploring Ethernet Frames with an Oscilloscope if you missed it. In my experiments, I used a module like this: Ethernet module based on Wiznet W5500 The price of the device on eBay is about $ 4. The module has a voltage regulator, so it can be powered from both 5 V and 3.3 V. The chip itself works great with both 3.3 V and 5 V logic. Thus, it can be easily used with any other microcontroller, not necessarily an STM32, or even an FPGA. Specifically for Arduino there is Adafruit’s Ethernet2 library. Fun fact! At the time of this writing, Sigrok did not have a protocol decoder for the Wiznet W5500. Meanwhile, this protocol is quite simple, and is described in the W5500 datasheet [PDF]. A great opportunity to contribute to open source;) There is also an official library from the manufacturer itself called ioLibrary_Driver, which we will use. The library is licensed by MIT. It is not tied to a specific microcontroller, and can be used with the same success with STM8, AVR, 8051 or PIC.

 

STM32 마이크로 컨트롤러 위즈네트 w5500.jpg

Wiznet W5500 is an Ethernet controller with SPI interface. The chip supports 10baseT and 100baseT standards. A characteristic feature of the controller is that it has a hardware implementation of TCP / IPv4. This allows you to significantly unload the microcontroller working with it. Wiznet W5500 supports up to 8 sockets and has a total of 16 KB of memory for receiving and another 16 KB for transmission. This memory can be arbitrarily allocated between sockets. Let’s figure out how to work with this chip using the STM32 MK as an example. Note: In this context, you might be interested in Exploring Ethernet Frames with an Oscilloscope if you missed it. In my experiments, I used a module like this: Ethernet module based on Wiznet W5500 The price of the device on eBay is about $ 4. The module has a voltage regulator, so it can be powered from both 5 V and 3.3 V. The chip itself works great with both 3.3 V and 5 V logic. Thus, it can be easily used with any other microcontroller, not necessarily an STM32, or even an FPGA. Specifically for Arduino there is Adafruit’s Ethernet2 library. Fun fact! At the time of this writing, Sigrok did not have a protocol decoder for the Wiznet W5500. Meanwhile, this protocol is quite simple, and is described in the W5500 datasheet [PDF]. A great opportunity to contribute to open source;) There is also an official library from the manufacturer itself called ioLibrary_Driver, which we will use. The library is licensed by MIT. It is not tied to a specific microcontroller, and can be used with the same success with STM8, AVR, 8051 or PIC.

 

documents
Code
stm32-w5500
github library
ioLibrary
WIZnet official

COMMENTS

Please Login to comment
  Subscribe  
Notify of
POSTED BY
Reusable S/W