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

Commit a575e69

Browse files
authored
v1.5.0 for new STM32 v2.3.0 core
### Releases v1.5.0 1. Update examples for new STM32 core v2.3.0 2. Update `Packages' Patches`
1 parent 2cc02da commit a575e69

File tree

47 files changed

+307
-31
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+307
-31
lines changed

Diff for: examples/AsyncFSBrowser_STM32/AsyncFSBrowser_STM32.ino

+6
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,12 @@ void setup()
240240
Serial.printf("\nStarting AsyncFSBrowser_STM32 on %s with %s\n", BOARD_NAME, SHIELD_TYPE);
241241
Serial.println(ASYNC_WEBSERVER_STM32_VERSION);
242242

243+
#if (_ASYNCWEBSERVER_STM32_LOGLEVEL_ > 2)
244+
Serial.print("STM32 Core version v"); Serial.print(STM32_CORE_VERSION_MAJOR);
245+
Serial.print("."); Serial.print(STM32_CORE_VERSION_MINOR);
246+
Serial.print("."); Serial.println(STM32_CORE_VERSION_PATCH);
247+
#endif
248+
243249
// start the ethernet connection and the server
244250
// Use random mac
245251
uint16_t index = millis() % NUMBER_OF_MAC;

Diff for: examples/AsyncMultiWebServer_STM32/AsyncMultiWebServer_STM32.ino

+6
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,12 @@ void setup()
211211
Serial.print(" with "); Serial.println(SHIELD_TYPE);
212212
Serial.println(ASYNC_WEBSERVER_STM32_VERSION);
213213

214+
#if (_ASYNCWEBSERVER_STM32_LOGLEVEL_ > 2)
215+
Serial.print("STM32 Core version v"); Serial.print(STM32_CORE_VERSION_MAJOR);
216+
Serial.print("."); Serial.print(STM32_CORE_VERSION_MINOR);
217+
Serial.print("."); Serial.println(STM32_CORE_VERSION_PATCH);
218+
#endif
219+
214220
// start the ethernet connection and the server
215221
// Use random mac
216222
uint16_t index = millis() % NUMBER_OF_MAC;

Diff for: examples/Async_AdvancedWebServer/Async_AdvancedWebServer.ino

+6
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,12 @@ void setup(void)
244244
Serial.print(" with "); Serial.println(SHIELD_TYPE);
245245
Serial.println(ASYNC_WEBSERVER_STM32_VERSION);
246246

247+
#if (_ASYNCWEBSERVER_STM32_LOGLEVEL_ > 2)
248+
Serial.print("STM32 Core version v"); Serial.print(STM32_CORE_VERSION_MAJOR);
249+
Serial.print("."); Serial.print(STM32_CORE_VERSION_MINOR);
250+
Serial.print("."); Serial.println(STM32_CORE_VERSION_PATCH);
251+
#endif
252+
247253
// start the ethernet connection and the server
248254
// Use random mac
249255
uint16_t index = millis() % NUMBER_OF_MAC;

Diff for: examples/Async_HelloServer/Async_HelloServer.ino

+6
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,12 @@ void setup(void)
161161
Serial.print(" with "); Serial.println(SHIELD_TYPE);
162162
Serial.println(ASYNC_WEBSERVER_STM32_VERSION);
163163

164+
#if (_ASYNCWEBSERVER_STM32_LOGLEVEL_ > 2)
165+
Serial.print("STM32 Core version v"); Serial.print(STM32_CORE_VERSION_MAJOR);
166+
Serial.print("."); Serial.print(STM32_CORE_VERSION_MINOR);
167+
Serial.print("."); Serial.println(STM32_CORE_VERSION_PATCH);
168+
#endif
169+
164170
// start the ethernet connection and the server
165171
// Use random mac
166172
uint16_t index = millis() % NUMBER_OF_MAC;

Diff for: examples/Async_HelloServer2/Async_HelloServer2.ino

+6
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,12 @@ void setup(void)
161161
Serial.print(" with "); Serial.println(SHIELD_TYPE);
162162
Serial.println(ASYNC_WEBSERVER_STM32_VERSION);
163163

164+
#if (_ASYNCWEBSERVER_STM32_LOGLEVEL_ > 2)
165+
Serial.print("STM32 Core version v"); Serial.print(STM32_CORE_VERSION_MAJOR);
166+
Serial.print("."); Serial.print(STM32_CORE_VERSION_MINOR);
167+
Serial.print("."); Serial.println(STM32_CORE_VERSION_PATCH);
168+
#endif
169+
164170
// start the ethernet connection and the server
165171
// Use random mac
166172
uint16_t index = millis() % NUMBER_OF_MAC;

Diff for: examples/Async_HttpBasicAuth/Async_HttpBasicAuth.ino

+6
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ void setup()
132132
Serial.print(" with "); Serial.println(SHIELD_TYPE);
133133
Serial.println(ASYNC_WEBSERVER_STM32_VERSION);
134134

135+
#if (_ASYNCWEBSERVER_STM32_LOGLEVEL_ > 2)
136+
Serial.print("STM32 Core version v"); Serial.print(STM32_CORE_VERSION_MAJOR);
137+
Serial.print("."); Serial.print(STM32_CORE_VERSION_MINOR);
138+
Serial.print("."); Serial.println(STM32_CORE_VERSION_PATCH);
139+
#endif
140+
135141
// start the ethernet connection and the server
136142
// Use random mac
137143
uint16_t index = millis() % NUMBER_OF_MAC;

Diff for: examples/Async_PostServer/Async_PostServer.ino

+6
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,12 @@ void setup(void)
216216
Serial.print(" with "); Serial.println(SHIELD_TYPE);
217217
Serial.println(ASYNC_WEBSERVER_STM32_VERSION);
218218

219+
#if (_ASYNCWEBSERVER_STM32_LOGLEVEL_ > 2)
220+
Serial.print("STM32 Core version v"); Serial.print(STM32_CORE_VERSION_MAJOR);
221+
Serial.print("."); Serial.print(STM32_CORE_VERSION_MINOR);
222+
Serial.print("."); Serial.println(STM32_CORE_VERSION_PATCH);
223+
#endif
224+
219225
// start the ethernet connection and the server
220226
// Use random mac
221227
uint16_t index = millis() % NUMBER_OF_MAC;

Diff for: examples/Async_RegexPatterns_STM32/Async_RegexPatterns_STM32.ino

+6
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ void setup()
151151
Serial.print(" with "); Serial.println(SHIELD_TYPE);
152152
Serial.println(ASYNC_WEBSERVER_STM32_VERSION);
153153

154+
#if (_ASYNCWEBSERVER_STM32_LOGLEVEL_ > 2)
155+
Serial.print("STM32 Core version v"); Serial.print(STM32_CORE_VERSION_MAJOR);
156+
Serial.print("."); Serial.print(STM32_CORE_VERSION_MINOR);
157+
Serial.print("."); Serial.println(STM32_CORE_VERSION_PATCH);
158+
#endif
159+
154160
// start the ethernet connection and the server
155161
// Use random mac
156162
uint16_t index = millis() % NUMBER_OF_MAC;

Diff for: examples/Async_SimpleWebServer_STM32/Async_SimpleWebServer_STM32.ino

+8
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
#error This code is designed to run on STM32F/L/H/G/WB/MP1 platform! Please check your Tools->Board setting.
3535
#endif
3636

37+
#define _ASYNCWEBSERVER_STM32_LOGLEVEL_ 4
38+
3739
#if defined(STM32F0)
3840
#warning STM32F0 board selected
3941
#define BOARD_TYPE "STM32F0"
@@ -138,6 +140,12 @@ void setup()
138140
Serial.print(" with "); Serial.println(SHIELD_TYPE);
139141
Serial.println(ASYNC_WEBSERVER_STM32_VERSION);
140142

143+
#if (_ASYNCWEBSERVER_STM32_LOGLEVEL_ > 2)
144+
Serial.print("STM32 Core version v"); Serial.print(STM32_CORE_VERSION_MAJOR);
145+
Serial.print("."); Serial.print(STM32_CORE_VERSION_MINOR);
146+
Serial.print("."); Serial.println(STM32_CORE_VERSION_PATCH);
147+
#endif
148+
141149
// start the ethernet connection and the server
142150
// Use random mac
143151
uint16_t index = millis() % NUMBER_OF_MAC;

Diff for: examples/MQTTClient_Auth/MQTTClient_Auth.ino

+6
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ void setup()
118118
Serial.print(" with "); Serial.println(SHIELD_TYPE);
119119
Serial.println(ASYNC_WEBSERVER_STM32_VERSION);
120120

121+
#if (_ASYNCWEBSERVER_STM32_LOGLEVEL_ > 2)
122+
Serial.print("STM32 Core version v"); Serial.print(STM32_CORE_VERSION_MAJOR);
123+
Serial.print("."); Serial.print(STM32_CORE_VERSION_MINOR);
124+
Serial.print("."); Serial.println(STM32_CORE_VERSION_PATCH);
125+
#endif
126+
121127
// start the ethernet connection and the server
122128
// Use random mac
123129
uint16_t index = millis() % NUMBER_OF_MAC;

Diff for: examples/MQTTClient_Auth/defines.h

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
#error This code is designed to run on STM32F/L/H/G/WB/MP1 platform! Please check your Tools->Board setting.
3333
#endif
3434

35+
#define _ASYNCWEBSERVER_STM32_LOGLEVEL_ 4
36+
3537
#if defined(STM32F0)
3638
#warning STM32F0 board selected
3739
#define BOARD_TYPE "STM32F0"

Diff for: examples/MQTTClient_Basic/MQTTClient_Basic.ino

+7-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@
4343
#include <PubSubClient.h>
4444

4545
// Update these with values suitable for your network.
46-
//const char* mqttServer = "broker.example"; // Broker address
47-
//const char* mqttServer = "broker.emqx.io"; // Broker address
48-
const char* mqttServer = "broker.shiftr.io"; // Broker address
46+
const char* mqttServer = "broker.emqx.io"; // Broker address
4947

5048
const char *ID = "MQTTClient_SSL-Client"; // Name of our device, must be unique
5149
const char *TOPIC = "MQTT_Pub"; // Topic to subcribe to
@@ -119,6 +117,12 @@ void setup()
119117
Serial.print(" with "); Serial.println(SHIELD_TYPE);
120118
Serial.println(ASYNC_WEBSERVER_STM32_VERSION);
121119

120+
#if (_ASYNCWEBSERVER_STM32_LOGLEVEL_ > 2)
121+
Serial.print("STM32 Core version v"); Serial.print(STM32_CORE_VERSION_MAJOR);
122+
Serial.print("."); Serial.print(STM32_CORE_VERSION_MINOR);
123+
Serial.print("."); Serial.println(STM32_CORE_VERSION_PATCH);
124+
#endif
125+
122126
// start the ethernet connection and the server
123127
// Use random mac
124128
uint16_t index = millis() % NUMBER_OF_MAC;

Diff for: examples/MQTTClient_Basic/defines.h

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
#error This code is designed to run on STM32F/L/H/G/WB/MP1 platform! Please check your Tools->Board setting.
3333
#endif
3434

35+
#define _ASYNCWEBSERVER_STM32_LOGLEVEL_ 4
36+
3537
#if defined(STM32F0)
3638
#warning STM32F0 board selected
3739
#define BOARD_TYPE "STM32F0"

Diff for: examples/MQTT_ThingStream/MQTT_ThingStream.ino

+6
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,12 @@ void setup()
170170
Serial.print(" with "); Serial.println(SHIELD_TYPE);
171171
Serial.println(ASYNC_WEBSERVER_STM32_VERSION);
172172

173+
#if (_ASYNCWEBSERVER_STM32_LOGLEVEL_ > 2)
174+
Serial.print("STM32 Core version v"); Serial.print(STM32_CORE_VERSION_MAJOR);
175+
Serial.print("."); Serial.print(STM32_CORE_VERSION_MINOR);
176+
Serial.print("."); Serial.println(STM32_CORE_VERSION_PATCH);
177+
#endif
178+
173179
// start the ethernet connection and the server
174180
// Use random mac
175181
uint16_t index = millis() % NUMBER_OF_MAC;

Diff for: examples/MQTT_ThingStream/defines.h

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
#error This code is designed to run on STM32F/L/H/G/WB/MP1 platform! Please check your Tools->Board setting.
3333
#endif
3434

35+
#define _ASYNCWEBSERVER_STM32_LOGLEVEL_ 4
36+
3537
#if defined(STM32F0)
3638
#warning STM32F0 board selected
3739
#define BOARD_TYPE "STM32F0"

Diff for: examples/STM32_LAN8720/AsyncFSBrowser_STM32_LAN8720/AsyncFSBrowser_STM32_LAN8720.ino

+6
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,12 @@ void setup()
242242
Serial.print(" with "); Serial.println(SHIELD_TYPE);
243243
Serial.println(ASYNC_WEBSERVER_STM32_VERSION);
244244

245+
#if (_ASYNCWEBSERVER_STM32_LOGLEVEL_ > 2)
246+
Serial.print("STM32 Core version v"); Serial.print(STM32_CORE_VERSION_MAJOR);
247+
Serial.print("."); Serial.print(STM32_CORE_VERSION_MINOR);
248+
Serial.print("."); Serial.println(STM32_CORE_VERSION_PATCH);
249+
#endif
250+
245251
// start the ethernet connection and the server
246252
// Use random mac
247253
uint16_t index = millis() % NUMBER_OF_MAC;

Diff for: examples/STM32_LAN8720/AsyncFSBrowser_STM32_LAN8720/hal_conf_extra.h

+9-2
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,22 @@
1111
*****************************************************************************************************************************/
1212

1313
// Note: Must replace
14-
// .arduino15/packages/STM32/hardware/stm32/1.9.0/system/STM32F4xx/stm32f4xx_hal_conf_default.h
14+
// .arduino15/packages/STM32/hardware/stm32/x.y.z/system/STM32F4xx/stm32f4xx_hal_conf_default.h
1515
// as described in README.md
1616

1717
#pragma once
1818

1919
#ifndef HAL_CONF_EXTRA_STM32_H
2020
#define HAL_CONF_EXTRA_STM32_H
2121

22-
#define HAL_ETH_MODULE_ENABLED
22+
#include <stm32_def.h>
23+
24+
// Don't need from core v2.3.0
25+
26+
#if (STM32_CORE_VERSION < 0x2030000)
27+
#warning Using STM32 core < v2.3.0
28+
#define HAL_ETH_MODULE_ENABLED
29+
#endif
2330

2431
#define LAN8742A_PHY_ADDRESS 0x01U
2532

Diff for: examples/STM32_LAN8720/AsyncMultiWebServer_STM32_LAN8720/AsyncMultiWebServer_STM32_LAN8720.ino

+6
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,12 @@ void setup()
213213
Serial.print(" with "); Serial.println(SHIELD_TYPE);
214214
Serial.println(ASYNC_WEBSERVER_STM32_VERSION);
215215

216+
#if (_ASYNCWEBSERVER_STM32_LOGLEVEL_ > 2)
217+
Serial.print("STM32 Core version v"); Serial.print(STM32_CORE_VERSION_MAJOR);
218+
Serial.print("."); Serial.print(STM32_CORE_VERSION_MINOR);
219+
Serial.print("."); Serial.println(STM32_CORE_VERSION_PATCH);
220+
#endif
221+
216222
// start the ethernet connection and the server
217223
// Use random mac
218224
uint16_t index = millis() % NUMBER_OF_MAC;

Diff for: examples/STM32_LAN8720/AsyncMultiWebServer_STM32_LAN8720/hal_conf_extra.h

+9-2
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,22 @@
1111
*****************************************************************************************************************************/
1212

1313
// Note: Must replace
14-
// .arduino15/packages/STM32/hardware/stm32/1.9.0/system/STM32F4xx/stm32f4xx_hal_conf_default.h
14+
// .arduino15/packages/STM32/hardware/stm32/x.y.z/system/STM32F4xx/stm32f4xx_hal_conf_default.h
1515
// as described in README.md
1616

1717
#pragma once
1818

1919
#ifndef HAL_CONF_EXTRA_STM32_H
2020
#define HAL_CONF_EXTRA_STM32_H
2121

22-
#define HAL_ETH_MODULE_ENABLED
22+
#include <stm32_def.h>
23+
24+
// Don't need from core v2.3.0
25+
26+
#if (STM32_CORE_VERSION < 0x2030000)
27+
#warning Using STM32 core < v2.3.0
28+
#define HAL_ETH_MODULE_ENABLED
29+
#endif
2330

2431
#define LAN8742A_PHY_ADDRESS 0x01U
2532

Diff for: examples/STM32_LAN8720/Async_AdvancedWebServer_LAN8720/Async_AdvancedWebServer_LAN8720.ino

+6
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,12 @@ void setup(void)
244244
Serial.print(" with "); Serial.println(SHIELD_TYPE);
245245
Serial.println(ASYNC_WEBSERVER_STM32_VERSION);
246246

247+
#if (_ASYNCWEBSERVER_STM32_LOGLEVEL_ > 2)
248+
Serial.print("STM32 Core version v"); Serial.print(STM32_CORE_VERSION_MAJOR);
249+
Serial.print("."); Serial.print(STM32_CORE_VERSION_MINOR);
250+
Serial.print("."); Serial.println(STM32_CORE_VERSION_PATCH);
251+
#endif
252+
247253
// start the ethernet connection and the server
248254
// Use random mac
249255
uint16_t index = millis() % NUMBER_OF_MAC;

Diff for: examples/STM32_LAN8720/Async_AdvancedWebServer_LAN8720/hal_conf_extra.h

+9-2
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,22 @@
1111
*****************************************************************************************************************************/
1212

1313
// Note: Must replace
14-
// .arduino15/packages/STM32/hardware/stm32/1.9.0/system/STM32F4xx/stm32f4xx_hal_conf_default.h
14+
// .arduino15/packages/STM32/hardware/stm32/x.y.z/system/STM32F4xx/stm32f4xx_hal_conf_default.h
1515
// as described in README.md
1616

1717
#pragma once
1818

1919
#ifndef HAL_CONF_EXTRA_STM32_H
2020
#define HAL_CONF_EXTRA_STM32_H
2121

22-
#define HAL_ETH_MODULE_ENABLED
22+
#include <stm32_def.h>
23+
24+
// Don't need from core v2.3.0
25+
26+
#if (STM32_CORE_VERSION < 0x2030000)
27+
#warning Using STM32 core < v2.3.0
28+
#define HAL_ETH_MODULE_ENABLED
29+
#endif
2330

2431
#define LAN8742A_PHY_ADDRESS 0x01U
2532

Diff for: examples/STM32_LAN8720/Async_HelloServer2_LAN8720/Async_HelloServer2_LAN8720.ino

+6
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,12 @@ void setup(void)
163163
Serial.print(" with "); Serial.println(SHIELD_TYPE);
164164
Serial.println(ASYNC_WEBSERVER_STM32_VERSION);
165165

166+
#if (_ASYNCWEBSERVER_STM32_LOGLEVEL_ > 2)
167+
Serial.print("STM32 Core version v"); Serial.print(STM32_CORE_VERSION_MAJOR);
168+
Serial.print("."); Serial.print(STM32_CORE_VERSION_MINOR);
169+
Serial.print("."); Serial.println(STM32_CORE_VERSION_PATCH);
170+
#endif
171+
166172
// start the ethernet connection and the server
167173
// Use random mac
168174
uint16_t index = millis() % NUMBER_OF_MAC;

Diff for: examples/STM32_LAN8720/Async_HelloServer2_LAN8720/hal_conf_extra.h

+9-2
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,22 @@
1111
*****************************************************************************************************************************/
1212

1313
// Note: Must replace
14-
// .arduino15/packages/STM32/hardware/stm32/1.9.0/system/STM32F4xx/stm32f4xx_hal_conf_default.h
14+
// .arduino15/packages/STM32/hardware/stm32/x.y.z/system/STM32F4xx/stm32f4xx_hal_conf_default.h
1515
// as described in README.md
1616

1717
#pragma once
1818

1919
#ifndef HAL_CONF_EXTRA_STM32_H
2020
#define HAL_CONF_EXTRA_STM32_H
2121

22-
#define HAL_ETH_MODULE_ENABLED
22+
#include <stm32_def.h>
23+
24+
// Don't need from core v2.3.0
25+
26+
#if (STM32_CORE_VERSION < 0x2030000)
27+
#warning Using STM32 core < v2.3.0
28+
#define HAL_ETH_MODULE_ENABLED
29+
#endif
2330

2431
#define LAN8742A_PHY_ADDRESS 0x01U
2532

Diff for: examples/STM32_LAN8720/Async_HelloServer_LAN8720/Async_HelloServer_LAN8720.ino

+6
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,12 @@ void setup(void)
163163
Serial.print(" with "); Serial.println(SHIELD_TYPE);
164164
Serial.println(ASYNC_WEBSERVER_STM32_VERSION);
165165

166+
#if (_ASYNCWEBSERVER_STM32_LOGLEVEL_ > 2)
167+
Serial.print("STM32 Core version v"); Serial.print(STM32_CORE_VERSION_MAJOR);
168+
Serial.print("."); Serial.print(STM32_CORE_VERSION_MINOR);
169+
Serial.print("."); Serial.println(STM32_CORE_VERSION_PATCH);
170+
#endif
171+
166172
// start the ethernet connection and the server
167173
// Use random mac
168174
uint16_t index = millis() % NUMBER_OF_MAC;

Diff for: examples/STM32_LAN8720/Async_HelloServer_LAN8720/hal_conf_extra.h

+9-2
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,22 @@
1111
*****************************************************************************************************************************/
1212

1313
// Note: Must replace
14-
// .arduino15/packages/STM32/hardware/stm32/1.9.0/system/STM32F4xx/stm32f4xx_hal_conf_default.h
14+
// .arduino15/packages/STM32/hardware/stm32/x.y.z/system/STM32F4xx/stm32f4xx_hal_conf_default.h
1515
// as described in README.md
1616

1717
#pragma once
1818

1919
#ifndef HAL_CONF_EXTRA_STM32_H
2020
#define HAL_CONF_EXTRA_STM32_H
2121

22-
#define HAL_ETH_MODULE_ENABLED
22+
#include <stm32_def.h>
23+
24+
// Don't need from core v2.3.0
25+
26+
#if (STM32_CORE_VERSION < 0x2030000)
27+
#warning Using STM32 core < v2.3.0
28+
#define HAL_ETH_MODULE_ENABLED
29+
#endif
2330

2431
#define LAN8742A_PHY_ADDRESS 0x01U
2532

0 commit comments

Comments
 (0)