You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 29, 2023. It is now read-only.
### Releases v1.5.0
1. Add support to any custom hardware / software `SPI` for W5x00 using [Ethernet_Generic Library](https://github.com/khoih-prog/Ethernet_Generic)
2. Add support to STM32L5 boards, such as `Nucleo-L552ZE-Q`
Copy file name to clipboardexpand all lines: README.md
+111-22
Original file line number
Diff line number
Diff line change
@@ -46,10 +46,11 @@
46
46
*[To use W5x00 Ethernet, for example using Ethernet_Generic library](#to-use-w5x00-ethernet-for-example-using-Ethernet_Generic-library)
47
47
*[To use ENC28J60 Ethernet, using EthernetENC library (**NEW and Better**)](#to-use-enc28j60-ethernet-using-ethernetenc-library-new-and-better)
48
48
*[To use ENC28J60 Ethernet, using UIPEthernet library](#to-use-enc28j60-ethernet-using-uipethernet-library)
49
+
*[2. How to select which SPI to use](#2-How-to-select-which-SPI-to-use)
49
50
*[Important](#important)
50
-
*[2. How to connect or select another CS/SS pin to use](#2-how-to-connect-or-select-another-csss-pin-to-use)
51
-
*[3. How to increase W5x00 TX/RX buffer](#3-how-to-increase-w5x00-txrx-buffer)
52
-
*[4. How to adjust sendContent_P() and send_P() buffer size](#4-how-to-adjust-sendcontent_p-and-send_p-buffer-size)
51
+
*[3. How to connect or select another CS/SS pin to use](#3-how-to-connect-or-select-another-csss-pin-to-use)
52
+
*[4. How to increase W5x00 TX/RX buffer](#4-how-to-increase-w5x00-txrx-buffer)
53
+
*[5. How to adjust sendContent_P() and send_P() buffer size](#5-how-to-adjust-sendcontent_p-and-send_p-buffer-size)
53
54
*[Usage](#usage)
54
55
*[Class Constructor](#class-constructor)
55
56
*[Basic Operation](#basic-operations)
@@ -135,6 +136,7 @@
135
136
*[10. SimpleWebSocket_LAN8720 on BLACK_F407VE using LAN8720 Ethernet and STM32Ethernet Library](#10-simplewebsocket_lan8720-on-black_f407ve-using-lan8720-ethernet-and-stm32ethernet-library)
136
137
*[11. WebClient_LAN8720 on BLACK_F407VE using LAN8720 Ethernet and STM32Ethernet Library](#11-webclient_lan8720-on-black_f407ve-using-lan8720-ethernet-and-stm32ethernet-library)
137
138
*[12. AdvancedWebServer_LAN8720 on BLACK_F407VE using LAN8720 Ethernet and STM32Ethernet Library](#12-advancedwebserver_lan8720-on-black_f407ve-using-lan8720-ethernet-and-stm32ethernet-library)
139
+
*[13. AdvancedWebServer on NUCLEO_L552ZE_Q with W5x00 using Ethernet_Generic Library and custom SPI](#12-AdvancedWebServer-on-NUCLEO_L552ZE_Q-with-W5x00-using-Ethernet_Generic-Library-and-custom- SPI)
138
140
*[Debug](#debug)
139
141
*[Troubleshooting](#troubleshooting)
140
142
*[Not supported boards](#Not-supported-boards)
@@ -241,7 +243,7 @@ Check [`EthernetWebServer Library Issue: Support for STM32F Series`](https://git
241
243
- Nucleo-64
242
244
- Discovery
243
245
- Generic STM32F0, STM32F1, STM32F2, STM32F3, STM32F4, STM32F7 (with 64+K Flash): x8 and up
244
-
- STM32L0, STM32L1, STM32L4
246
+
- STM32L0, STM32L1, STM32L4, STM32L5
245
247
- STM32G0, STM32G4
246
248
- STM32H7
247
249
- STM32WB
@@ -280,7 +282,7 @@ Check [`EthernetWebServer Library Issue: Support for STM32F Series`](https://git
280
282
-[`STM32Ethernet library v1.3.0+`](https://github.com/stm32duino/STM32Ethernet) for built-in LAN8742A Ethernet on (Nucleo-144, Discovery). [](https://github.com/stm32duino/STM32Ethernet/releases/latest)
281
283
-[`LwIP library v2.1.2+`](https://github.com/stm32duino/LwIP) for built-in LAN8742A Ethernet on (Nucleo-144, Discovery). [](https://github.com/stm32duino/LwIP/releases/latest)
282
284
5. For W5x00 Ethernet:
283
-
-[`Ethernet_Generic library v2.1.0+`](https://github.com/khoih-prog/Ethernet_Generic) for W5100, W5200 and W5500/WIZ550io/WIZ850io/USR-ES1 with Wiznet W5500 chip. [](https://github.com/khoih-prog/Ethernet_Generic/releases/latest)
285
+
-[`Ethernet_Generic library v2.2.0+`](https://github.com/khoih-prog/Ethernet_Generic) for W5100, W5200 and W5500/WIZ550io/WIZ850io/USR-ES1 with Wiznet W5500 chip. [](https://github.com/khoih-prog/Ethernet_Generic/releases/latest)
284
286
6. For ENC28J60 Ethernet:
285
287
-[`EthernetENC library v2.0.2+`](https://github.com/jandrassy/EthernetENC) for ENC28J60. [](https://github.com/jandrassy/EthernetENC/releases/latest). **New and Better**
286
288
-[`UIPEthernet library v2.0.11+`](https://github.com/UIPEthernet/UIPEthernet) for ENC28J60. [](https://github.com/UIPEthernet/UIPEthernet/releases/latest)
@@ -553,6 +555,56 @@ For example, EthernetLarge library
553
555
#include<EthernetWebServer.h>
554
556
```
555
557
558
+
#### 2. How to select which SPI to use
559
+
560
+
561
+
To use standard SPI, check if
562
+
563
+
```cpp
564
+
#defineUSING_CUSTOM_SPI false
565
+
#defineUSING_SPI2 false
566
+
```
567
+
568
+
569
+
To use SPI2 or any custom SPI
570
+
571
+
572
+
```cpp
573
+
// Be sure to use true only if necessary for your board, or compile error
574
+
#defineUSING_CUSTOM_SPI true
575
+
576
+
#if ( USING_CUSTOM_SPI )
577
+
// Currently test OK for F767ZI and L552ZE_Q
578
+
#define USING_SPI2 true
579
+
580
+
#if (USING_SPI2)
581
+
//#include <SPI.h>
582
+
// For L552ZE-Q, F767ZI, but you can change the pins for any other boards
#### 13. AdvancedWebServer on NUCLEO_L552ZE_Q with W5x00 using Ethernet_Generic Library and custom SPI
1565
+
1566
+
Following is debug terminal output and screen shot when running example [AdvancedWebServer](examples/AdvancedWebServer) on NUCLEO_L552ZE_Q, using W5500 Ethernet with Ethernet_Generic Library and custom SPI
Start AdvancedWebServer on NUCLEO_L552ZE_Q, with W5x00 using Ethernet_Generic Library and custom SPI
1575
+
Ethernet_Generic v2.2.0
1576
+
EthernetWebServer_STM32 v1.5.0
1577
+
[EWS] Default SPI pinout:
1578
+
[EWS] MOSI: 22
1579
+
[EWS] MISO: 25
1580
+
[EWS] SCK: 23
1581
+
[EWS] SS: 24
1582
+
[EWS] =========================
1583
+
Connected! IP address: 192.168.2.116
1584
+
HTTP EthernetWebServer is @ IP : 192.168.2.116
1585
+
.[EWS] String Len = 0, extend to 2048
1586
+
........ ....
1587
+
```
1588
+
1589
+
1590
+
1505
1591
---
1506
1592
---
1507
1593
@@ -1568,8 +1654,10 @@ Submit issues to: [EthernetWebServer_STM32 issues](https://github.com/khoih-prog
1568
1654
12. Use new [**Ethernet_Generic** library](https://github.com/khoih-prog/Ethernet_Generic) as default for W5x00.
1569
1655
13. Rewrite library and add example [multiFileProject](examples/multiFileProject) to demo for multiple-file project to fix `multiple-definitions` linker error
1570
1656
14. Change from `arduino.cc` to `arduino.tips` in examples
1571
-
1657
+
15. Add support to any custom hardware / software `SPI` for W5x00 using [Ethernet_Generic Library](https://github.com/khoih-prog/Ethernet_Generic)
1658
+
16. Add support to STM32L5 boards, such as `Nucleo-L552ZE-Q`
1572
1659
1660
+
---
1573
1661
---
1574
1662
1575
1663
### Contributions and Thanks
@@ -1601,6 +1689,7 @@ If you want to contribute to this project:
"description": "Simple Ethernet WebServer, HTTP Client and WebSocket Client library for STM32F/L/H/G/WB/MP1 boards running built-in Ethernet LAN8742A, LAN8720 or Ethernet W5x00, ENC28J60 shields. Ethernet_Generic library is used as default for W5x00",
5
+
"description": "Simple Ethernet WebServer, HTTP Client and WebSocket Client library for STM32F/L/H/G/WB/MP1 boards running built-in Ethernet LAN8742A, LAN8720 or Ethernet W5x00, ENC28J60 shields. Ethernet_Generic library is used as default for W5x00, Now W5x00 can use any custom hardware / software SPI",
sentence=EthernetWebServer_STM32 is a simple Ethernet WebServer, HTTP Client and WebSocket Client library for STM32F/L/H/G/WB/MP1 boards using built-in Ethernet LAN8742A, LAN8720, Ethernet W5x00 or ENC28J60 shields
7
-
paragraph=The library supports HTTP GET and POST requests, provides argument parsing, handles one client at a time. It now provides HTTP Client and WebSocket Client. It supports Arduino STM32F/L/H/G/WB/MP1 series with 32+ Kbytes of Flash, using built-in Ethernet (Nucleo-144: F429ZI, F767ZI, Discovery: STM32F746G-DISCOVERY), or LAN8720, ENC28J60, W5x00 Ethernet shields. Ethernet_Generic library is used as default for W5x00
7
+
paragraph=The library supports HTTP GET and POST requests, provides argument parsing, handles one client at a time. It now provides HTTP Client and WebSocket Client. It supports Arduino STM32F/L/H/G/WB/MP1 series with 32+ Kbytes of Flash, using built-in Ethernet (Nucleo-144: F429ZI, F767ZI, Discovery: STM32F746G-DISCOVERY), or LAN8720, ENC28J60, W5x00 Ethernet shields. Ethernet_Generic library is used as default for W5x00. Now W5x00 can use any custom hardware / software SPI
0 commit comments