Skip to content
This repository was archived by the owner on Jan 29, 2023. It is now read-only.

Commit 80f3ffc

Browse files
authored
v1.0.4
#### New in v1.0.4 1. Add support to all STM32 boards (***STM32F/L/H/G/WB/MP1***) with 32K+ Flash. - STM32L0, STM32L1, STM32L4 - STM32G0, STM32G4 - STM32H7 - STM32WB - STM32MP1
1 parent 01227fe commit 80f3ffc

File tree

3 files changed

+192
-4
lines changed

3 files changed

+192
-4
lines changed

LibraryPatches/UIPEthernet/utility/Enc28J60Network.h

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,33 @@
3838
defined(NRF52840_METRO) || defined(NRF52840_PCA10056) || defined(PARTICLE_XENON) || defined(NINA_B302_ublox) || defined(NINA_B112_ublox) )
3939
#include <SPI.h>
4040
#define ENC28J60_USE_SPILIB 1
41-
// default to pin 10
42-
#define ENC28J60_CONTROL_CS 10
43-
#endif
41+
42+
#ifndef USE_THIS_SS_PIN
43+
// default to pin 10
44+
#define ENC28J60_CONTROL_CS 10
45+
#else
46+
#warning Using USE_THIS_SS_PIN in Enc28J60Network.h for nRF52
47+
#define ENC28J60_CONTROL_CS USE_THIS_SS_PIN
48+
#endif
49+
#endif
50+
51+
// KH, For SAMD21/SAMD51
52+
#if ( defined(ARDUINO_SAMD_ZERO) || defined(ARDUINO_SAMD_MKR1000) || defined(ARDUINO_SAMD_MKRWIFI1010) \
53+
|| defined(ARDUINO_SAMD_NANO_33_IOT) || defined(ARDUINO_SAMD_MKRFox1200) || defined(ARDUINO_SAMD_MKRWAN1300) || defined(ARDUINO_SAMD_MKRWAN1310) \
54+
|| defined(ARDUINO_SAMD_MKRGSM1400) || defined(ARDUINO_SAMD_MKRNB1500) || defined(ARDUINO_SAMD_MKRVIDOR4000) || defined(__SAMD21G18A__) \
55+
|| defined(ARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS) || defined(__SAMD21E18A__) || defined(__SAMD51__) || defined(__SAMD51J20A__) || defined(__SAMD51J19A__) \
56+
|| defined(__SAMD51G19A__) || defined(__SAMD51P19A__) || defined(__SAMD21G18A__) )
57+
#include <SPI.h>
58+
#define ENC28J60_USE_SPILIB 1
59+
60+
#ifndef USE_THIS_SS_PIN
61+
// default to pin 10
62+
#define ENC28J60_CONTROL_CS 10
63+
#else
64+
#warning Using USE_THIS_SS_PIN in Enc28J60Network.h for SAMD
65+
#define ENC28J60_CONTROL_CS USE_THIS_SS_PIN
66+
#endif
67+
#endif
4468

4569
#include "mempool.h"
4670
#if defined(__MBED__)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ You can also use this link [![arduino-library-badge](https://www.ardu-badge.com/
155155
1. Install [VS Code](https://code.visualstudio.com/)
156156
2. Install [PlatformIO](https://platformio.org/platformio-ide)
157157
3. Install **EthernetWebServer_STM32** library by using [Library Manager](https://docs.platformio.org/en/latest/librarymanager/). Search for ***EthernetWebServer_STM32*** in [Platform.io Author's Libraries](https://platformio.org/lib/search?query=author:%22Khoi%20Hoang%22)
158-
4. Use included [platformio.ini](examples/platformio/platformio.ini) file from examples to ensure that all dependent libraries will installed automatically.
158+
4. Use included [platformio.ini](platformio/platformio.ini) file from examples to ensure that all dependent libraries will installed automatically. Please visit documentation for the other options and examples at [Project Configuration File](https://docs.platformio.org/page/projectconf.html)
159159

160160
---
161161

platformio/platformio.ini

Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
;PlatformIO Project Configuration File
2+
;
3+
; Build options: build flags, source filter
4+
; Upload options: custom upload port, speed and extra flags
5+
; Library options: dependencies, extra library storages
6+
; Advanced options: extra scripting
7+
;
8+
; Please visit documentation for the other options and examples
9+
; https://docs.platformio.org/page/projectconf.html
10+
11+
[platformio]
12+
; ============================================================
13+
; chose environment:
14+
; STM32
15+
16+
; ============================================================
17+
default_envs = STM32
18+
19+
[env]
20+
; ============================================================
21+
; Serial configuration
22+
; choose upload speed, serial-monitor speed
23+
; ============================================================
24+
upload_speed = 921600
25+
;upload_port = COM11
26+
;monitor_speed = 9600
27+
;monitor_port = COM11
28+
29+
lib_deps =
30+
STM32duino LwIP@~2.1.2
31+
STM32duino STM32Ethernet@~1.2.0
32+
Functional-Vlpp@~1.0.1
33+
UIPEthernet@~2.0.8
34+
Ethernet@~2.0.0
35+
EthernetLarge@~2.0.0
36+
Ethernet2@~1.0.4
37+
Ethernet3@~1.5.3
38+
39+
build_flags =
40+
; set your build_flags
41+
42+
[env:STM32]
43+
platform = ststm32
44+
framework = arduino
45+
46+
; ============================================================
47+
; Choose your board by uncommenting one of the following lines
48+
; ============================================================
49+
50+
; ============================================================
51+
; Board configuration Nucleo-144
52+
; ============================================================
53+
54+
;board = nucleo_f207zg
55+
;board = nucleo_f429zi
56+
;board = nucleo_f746zg
57+
;board = nucleo_f756zg
58+
board = nucleo_f767zi
59+
;board = nucleo_h743zi
60+
;board = nucleo_l496zg
61+
;board = nucleo_l496zg-p
62+
;board = nucleo_l4r5zi
63+
;board = nucleo_l4r5zi-p
64+
65+
; ============================================================
66+
; Board configuration Nucleo-64
67+
; ============================================================
68+
69+
;board = nucleo_f030r8
70+
;board = nucleo_f072rb
71+
72+
;board = nucleo_f091rc
73+
;board = nucleo_f103rb
74+
;board = nucleo_f302r8
75+
;board = nucleo_f303re
76+
;board = nucleo_f401re
77+
;board = nucleo_f411re
78+
;board = nucleo_f446re
79+
;board = nucleo_g071rb
80+
;board = nucleo_g431rb
81+
;board = nucleo_g474re
82+
;board = nucleo_l053r8
83+
;board = nucleo_l073rz
84+
;board = nucleo_l152re
85+
;board = nucleo_l433rc_p
86+
;board = nucleo_l452re
87+
;board = nucleo_l452re-p
88+
;board = nucleo_l476rg
89+
;board = pnucleo_wb55rg
90+
91+
; ============================================================
92+
; Board configuration Nucleo-32
93+
; ============================================================
94+
95+
;board = nucleo_f031k6
96+
;board = nucleo_l031k6
97+
;board = nucleo_l412kb
98+
;board = nucleo_l432lc
99+
;board = nucleo_f303k8
100+
;board = nucleo_g431kb
101+
102+
; ============================================================
103+
; Board configuration Discovery Boards
104+
; ============================================================
105+
106+
;board = disco_f030r8
107+
;board = disco_f072rb
108+
;board = disco_f030r8
109+
;board = disco_f100rb
110+
;board = disco_f407vg
111+
;board = disco_f413zh
112+
;board = disco_f746ng
113+
;board = disco_g0316
114+
;board = disco_l475vg_iot
115+
;board = disco_f072cz-lrwan1
116+
117+
; ============================================================
118+
; Board configuration STM32MP1 Boards
119+
; ============================================================
120+
121+
;board = stm32mp157a-dk1
122+
;board = stm32mp157c-dk2
123+
124+
; ============================================================
125+
; Board configuration Generic Boards
126+
; ============================================================
127+
128+
;board = bluepill_f103c6
129+
;board = bluepill_f103c8
130+
;board = blackpill_f103c8
131+
;board = stm32f103cx
132+
;board = stm32f103rx
133+
;board = stm32f103tx
134+
;board = stm32f103vx
135+
;board = stm32f103zx
136+
;board = stm32f103zet6
137+
;board = maplemini_f103cb
138+
;board = blackpill_f303cc
139+
;board = black_f407ve
140+
;board = black_f407vg
141+
;board = black_f407ze
142+
;board = black_f407zg
143+
;board = blue_f407ve_mini
144+
;board = blackpill_f401cc
145+
;board = blackpill_f411ce
146+
;board = coreboard_f401rc
147+
;board = feather_f405
148+
149+
; ============================================================
150+
; Board configuration Many more Boards to be filled
151+
; ============================================================
152+
153+
154+
155+
156+
157+
158+
159+
160+
161+
162+
163+
164+

0 commit comments

Comments
 (0)