W5500 library is (finally) ported

Please do not post requests
acronis
Posts: 144
Joined: Thu Mar 02, 2017 12:32 pm

Re: W5500 library is (finally) ported

Post by acronis » Wed Jul 12, 2017 8:57 am

Great !
I am very grateful for YOUR work !
You do so much for everyone !

THANK you !!!

stevestrong
Posts: 1829
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: W5500 library is (finally) ported

Post by stevestrong » Sat Jul 29, 2017 9:30 am

I finally managed to rework the existing Ethernet lib from Vassilis (thanks for the great job, Vassilis!) in a more generally usable way.
https://github.com/stevstrong/Ethernet_STM32

The main changes:
- in only works on W5500-based boards, any other derivative target has been removed
- it only supports STM32F1 and F4, any other reference to AVR or other targets has been removed
- there is no need to edit any header file for setup, the SPI object and the chip select pin is passed by using an additional function:

Code: Select all

    Ethernet.init([spi_object], [chip_select_pin]);
Currently there is only the WebClient example checked in the repo, but with the mentioned extra function call any Ethernet example (Arduino native, from Vassilis, or from Teensy) should work out of the box.

For more information see the readme file under the given link.

It works for both F1 and F4, but only using the latest commits from my repo: https://github.com/stevstrong/Arduino_STM32/
given that it uses some features which are not yet in the main (Roger's) repo, like the SPI 16 bit register access functions.

Any suggestions/comments are welcome here.
Please report bugs on github.

acronis
Posts: 144
Joined: Thu Mar 02, 2017 12:32 pm

Re: W5500 library is (finally) ported

Post by acronis » Sat Jul 29, 2017 12:10 pm

WOW !
SUPER !
I'M REALLY WAITING FOR THIS !

Could you tell me what pins you need and where to connect, I will check !

https://ru.aliexpress.com/item/Free-shi ... 0.0.H5Ls9p

Thank YOU very much for your work !

stevestrong
Posts: 1829
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: W5500 library is (finally) ported

Post by stevestrong » Sat Jul 29, 2017 3:08 pm

I think it is straight forward.
You need to connect the appropriate SPI pins (of which ever SPI port you want), the chip select and power supply 5V + GND.
The 3.3V, INT and RST pins are not used.

User avatar
Vassilis
Posts: 320
Joined: Thu May 21, 2015 6:42 am
Location: Thessaloniki, Greece
Contact:

Re: W5500 library is (finally) ported

Post by Vassilis » Thu Sep 14, 2017 11:53 am

@stevestrong
I like the way anyone can choose the SPI port and CS pin.
Well done !

Post Reply