Skip to content

Commit daeed51

Browse files
committed
Update patchset
1 parent 4c1dae1 commit daeed51

File tree

115 files changed

+751
-460
lines changed

Some content is hidden

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

115 files changed

+751
-460
lines changed

patches/0001-PACKAGING-remove-gdb-exta-information-to-slim-librar.patch

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
From 742276eeb973b00776909e274e311591028af2cc Mon Sep 17 00:00:00 2001
1+
From 3d7f8d18abca4e6132611fe544bf94b5d3483af3 Mon Sep 17 00:00:00 2001
22
From: Martino Facchin <m.facchin@arduino.cc>
33
Date: Thu, 11 Mar 2021 15:05:20 +0100
4-
Subject: [PATCH 01/87] PACKAGING: remove gdb exta information to slim library
4+
Subject: [PATCH 001/110] PACKAGING: remove gdb exta information to slim
5+
library
56

67
---
78
tools/profiles/develop.json | 2 +-
@@ -21,5 +22,5 @@ index 21ba5c88d5..5995d276e4 100644
2122
"c": ["-c", "-std=gnu11"],
2223
"cxx": ["-c", "-std=gnu++14", "-fno-rtti", "-Wvla"],
2324
--
24-
2.33.1
25+
2.34.1
2526

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
From a88aea6af1559dca1ce7dfbe08f6491b8c4e18c5 Mon Sep 17 00:00:00 2001
1+
From cb1899e821138682f821ef80b4d1480c013ad3bd Mon Sep 17 00:00:00 2001
22
From: Martino Facchin <m.facchin@arduino.cc>
33
Date: Wed, 28 Oct 2020 15:26:21 +0100
4-
Subject: [PATCH 02/87] Portenta: enable certificates in filesystem
4+
Subject: [PATCH 002/110] Portenta: enable certificates in filesystem
55

66
---
77
targets/targets.json | 2 ++
88
1 file changed, 2 insertions(+)
99

1010
diff --git a/targets/targets.json b/targets/targets.json
11-
index e66c4c73d7..9cca9b223d 100644
11+
index f4d4055553..8732ee0ba8 100644
1212
--- a/targets/targets.json
1313
+++ b/targets/targets.json
14-
@@ -3186,6 +3186,8 @@
14+
@@ -3428,6 +3428,8 @@
1515
}
1616
},
1717
"macros_add": [
@@ -21,5 +21,5 @@ index e66c4c73d7..9cca9b223d 100644
2121
"QSPI_NO_SAMPLE_SHIFT",
2222
"CYW43XXX_UNBUFFERED_UART"
2323
--
24-
2.33.1
24+
2.34.1
2525

patches/0003-I2CSlave.read-buf-count-returns-the-number-of-bytes-.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 164ca0b7c78e62a398cf012ffa4d9f4c6249890d Mon Sep 17 00:00:00 2001
1+
From 3659582e80ee60cd6f393318f54c51b90ef6703e Mon Sep 17 00:00:00 2001
22
From: Martino Facchin <m.facchin@arduino.cc>
33
Date: Wed, 1 Apr 2020 12:21:59 +0200
4-
Subject: [PATCH 03/87] I2CSlave.read(buf, count) returns the number of bytes
4+
Subject: [PATCH 003/110] I2CSlave.read(buf, count) returns the number of bytes
55
actually read
66

77
---
@@ -36,5 +36,5 @@ index 4317df9656..e4515820ad 100644
3636

3737
int I2CSlave::read(void)
3838
--
39-
2.33.1
39+
2.34.1
4040

patches/0004-Add-AnalogIn-configure-function.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From b02f201a574be644cc801f8e2827e440044161f4 Mon Sep 17 00:00:00 2001
1+
From 7abd4be4ee59e6e96f250f9a79c5d70d365a2417 Mon Sep 17 00:00:00 2001
22
From: Paolo Calao <paolo.calao@gmail.com>
33
Date: Wed, 13 May 2020 11:59:46 +0200
4-
Subject: [PATCH 04/87] Add AnalogIn configure function
4+
Subject: [PATCH 004/110] Add AnalogIn configure function
55

66
This adds a weak method to configure AnalogIn objects.
77
Also, a strong implementation of such method for NRF5284 is provided.
@@ -169,5 +169,5 @@ index 41b87722ac..4466f680c7 100644
169169
uint32_t ch;
170170
};
171171
--
172-
2.33.1
172+
2.34.1
173173

patches/0005-HACK-avoid-10862-by-not-firing-the-assert.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From b2c29cdd7a3d35dc3607909ec7bb6fc57111ae9c Mon Sep 17 00:00:00 2001
1+
From 5722a9ef477e5a3f4470898c7028633f1f004ff6 Mon Sep 17 00:00:00 2001
22
From: Martino Facchin <m.facchin@arduino.cc>
33
Date: Wed, 31 Jul 2019 12:48:04 +0200
4-
Subject: [PATCH 05/87] HACK: avoid #10862 by not firing the assert
4+
Subject: [PATCH 005/110] HACK: avoid #10862 by not firing the assert
55

66
---
77
drivers/usb/source/USBDevice.cpp | 18 ++++++++++--------
@@ -44,5 +44,5 @@ index 6d3cfc87d4..ddeabcfa15 100644
4444
}
4545

4646
--
47-
2.33.1
47+
2.34.1
4848

patches/0006-portentaH7-Change-BLE-public-address.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 666ab47bc00cf7b01110c5c712594df3ef4ca929 Mon Sep 17 00:00:00 2001
1+
From 7670c4f59b63a06fea0fc6dcd96af6976a548317 Mon Sep 17 00:00:00 2001
22
From: Paolo Calao <paolo.calao@gmail.com>
33
Date: Thu, 29 Oct 2020 15:40:32 +0100
4-
Subject: [PATCH 06/87] portentaH7: Change BLE public address
4+
Subject: [PATCH 006/110] portentaH7: Change BLE public address
55

66
---
77
.../ble/FEATURE_BLE/COMPONENT_CYW43XXX/HCIDriver.cpp | 11 +++++++++++
@@ -37,5 +37,5 @@ index 957e37594b..ff389c9f81 100644
3737
} else {
3838
}
3939
--
40-
2.33.1
40+
2.34.1
4141

patches/0007-TLSSocketWrapper-add-method-to-retrieve-certificates.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 2e73780a9b2e22b4e625d0c617b5e8f6b6b28abf Mon Sep 17 00:00:00 2001
1+
From d1ded30e5559b403dd49378bfaf9e7fab87d4ffa Mon Sep 17 00:00:00 2001
22
From: Martino Facchin <m.facchin@arduino.cc>
33
Date: Mon, 9 Nov 2020 10:00:01 +0100
4-
Subject: [PATCH 07/87] TLSSocketWrapper: add method to retrieve certificates
4+
Subject: [PATCH 007/110] TLSSocketWrapper: add method to retrieve certificates
55
from filesystem
66

77
---
@@ -90,5 +90,5 @@ index cebaf04703..8202151eb7 100644
9090
{
9191
return set_client_cert_key(client_cert_pem, strlen(client_cert_pem) + 1, client_private_key_pem, strlen(client_private_key_pem) + 1);
9292
--
93-
2.33.1
93+
2.34.1
9494

patches/0008-TLSSocketWrapper-Add-unit-test-for-set_root_ca_cert_.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From e03035b26d7372b0713ea2c5d2359b0116325d56 Mon Sep 17 00:00:00 2001
1+
From ec10b2d3b5671f72ff3be6510f561dcc15712d5e Mon Sep 17 00:00:00 2001
22
From: Martino Facchin <m.facchin@arduino.cc>
33
Date: Mon, 9 Nov 2020 13:34:18 +0100
4-
Subject: [PATCH 08/87] TLSSocketWrapper: Add unit test for
4+
Subject: [PATCH 008/110] TLSSocketWrapper: Add unit test for
55
set_root_ca_cert_path
66

77
---
@@ -11,10 +11,10 @@ Subject: [PATCH 08/87] TLSSocketWrapper: Add unit test for
1111
3 files changed, 13 insertions(+), 1 deletion(-)
1212

1313
diff --git a/connectivity/nanostack/coap-service/test/coap-service/unittest/stub/mbedtls_stub.c b/connectivity/nanostack/coap-service/test/coap-service/unittest/stub/mbedtls_stub.c
14-
index be8d31955b..91c17e2c23 100644
14+
index b63eb0269d..32026c4fe6 100644
1515
--- a/connectivity/nanostack/coap-service/test/coap-service/unittest/stub/mbedtls_stub.c
1616
+++ b/connectivity/nanostack/coap-service/test/coap-service/unittest/stub/mbedtls_stub.c
17-
@@ -300,6 +300,12 @@ int mbedtls_x509_crt_parse(mbedtls_x509_crt *a, const unsigned char *b, size_t c
17+
@@ -303,6 +303,12 @@ int mbedtls_x509_crt_parse(mbedtls_x509_crt *a, const unsigned char *b, size_t c
1818
return mbedtls_stub.expected_int;
1919
}
2020

@@ -57,5 +57,5 @@ index 4f9ce6b96c..ad2d3d8d44 100644
5757

5858
#endif /* UNITTESTS_FEATURES_NETSOCKET_TLSSOCKET_TLS_TEST_CONFIG_H_ */
5959
--
60-
2.33.1
60+
2.34.1
6161

patches/0009-TLSSocketWrapper-add-test-for-certificates-stored-in.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From e9ca06b93d1db1a11ace1ad50a2132b7e8bbdb32 Mon Sep 17 00:00:00 2001
1+
From b61ee5dcb0010d99b8260457ac8286bb1078412b Mon Sep 17 00:00:00 2001
22
From: Martino Facchin <m.facchin@arduino.cc>
33
Date: Mon, 9 Nov 2020 13:52:28 +0100
4-
Subject: [PATCH 09/87] TLSSocketWrapper: add test for certificates stored in
4+
Subject: [PATCH 009/110] TLSSocketWrapper: add test for certificates stored in
55
filesystem
66

77
---
@@ -12,10 +12,10 @@ Subject: [PATCH 09/87] TLSSocketWrapper: add test for certificates stored in
1212
create mode 100644 connectivity/netsocket/tests/TESTS/netsocket/tls/tlssocket_cert_in_filesystem.cpp
1313

1414
diff --git a/connectivity/netsocket/tests/TESTS/netsocket/tls/main.cpp b/connectivity/netsocket/tests/TESTS/netsocket/tls/main.cpp
15-
index f6489a3d73..495178d54a 100644
15+
index aa256a7128..d9f9cd640c 100644
1616
--- a/connectivity/netsocket/tests/TESTS/netsocket/tls/main.cpp
1717
+++ b/connectivity/netsocket/tests/TESTS/netsocket/tls/main.cpp
18-
@@ -233,6 +233,9 @@ Case cases[] = {
18+
@@ -234,6 +234,9 @@ Case cases[] = {
1919
Case("TLSSOCKET_SEND_REPEAT", TLSSOCKET_SEND_REPEAT),
2020
Case("TLSSOCKET_SEND_TIMEOUT", TLSSOCKET_SEND_TIMEOUT),
2121
Case("TLSSOCKET_NO_CERT", TLSSOCKET_NO_CERT),
@@ -95,5 +95,5 @@ index 0000000000..cf3dff2e93
9595
+}
9696
\ No newline at end of file
9797
--
98-
2.33.1
98+
2.34.1
9999

Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
From 4bc02f0c9008c2f3880dafa9807d5db8037267c7 Mon Sep 17 00:00:00 2001
1+
From 43be92f77f5c5e4ea6c6b9b3b9f9b1adc08bc2e3 Mon Sep 17 00:00:00 2001
22
From: Martino Facchin <m.facchin@arduino.cc>
33
Date: Thu, 10 Dec 2020 19:39:01 +0100
4-
Subject: [PATCH 11/87] Initial: support Portenta Beta
4+
Subject: [PATCH 010/110] Initial: support Portenta Beta
55

66
TODO: add 27mhz clock configuration
77
---
88
targets/targets.json | 2 +-
99
1 file changed, 1 insertion(+), 1 deletion(-)
1010

1111
diff --git a/targets/targets.json b/targets/targets.json
12-
index 9cca9b223d..c94b2b65f8 100644
12+
index 8732ee0ba8..f79bc4f63f 100644
1313
--- a/targets/targets.json
1414
+++ b/targets/targets.json
15-
@@ -3213,7 +3213,7 @@
15+
@@ -3455,7 +3455,7 @@
1616
"overrides": {
1717
"system_power_supply": "PWR_SMPS_1V8_SUPPLIES_LDO",
1818
"clock_source": "USE_PLL_HSE_EXTC",
@@ -22,5 +22,5 @@ index 9cca9b223d..c94b2b65f8 100644
2222
"network-default-interface-type": "ETHERNET",
2323
"i2c_timing_value_algo": true
2424
--
25-
2.33.1
25+
2.34.1
2626

patches/0010-SleepTracing-don-t-spam-logs-if-no-lock-is-held.patch

Lines changed: 0 additions & 37 deletions
This file was deleted.

patches/0012-STM32-USB-allow-dynamic-USB-speed-configuration-base.patch renamed to patches/0011-STM32-USB-allow-dynamic-USB-speed-configuration-base.patch

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
From 9b500518a857d55f395cdb58dc670812f40640bd Mon Sep 17 00:00:00 2001
1+
From 2bdb291a44fd149d38662f70a574b1a06380fca7 Mon Sep 17 00:00:00 2001
22
From: Martino Facchin <m.facchin@arduino.cc>
33
Date: Thu, 11 Mar 2021 11:50:18 +0100
4-
Subject: [PATCH 12/87] STM32: USB: allow dynamic USB speed configuration based
5-
on bootloader parameters
4+
Subject: [PATCH 011/110] STM32: USB: allow dynamic USB speed configuration
5+
based on bootloader parameters
66

77
---
88
targets/TARGET_STM/USBPhy_STM32.cpp | 68 +++++++++++++++++++++++++++--
99
1 file changed, 64 insertions(+), 4 deletions(-)
1010

1111
diff --git a/targets/TARGET_STM/USBPhy_STM32.cpp b/targets/TARGET_STM/USBPhy_STM32.cpp
12-
index 7f0c8d3142..222f2a971d 100644
12+
index c45150de4b..40f1044216 100644
1313
--- a/targets/TARGET_STM/USBPhy_STM32.cpp
1414
+++ b/targets/TARGET_STM/USBPhy_STM32.cpp
15-
@@ -211,10 +211,29 @@ void USB_reenumerate()
15+
@@ -217,10 +217,29 @@ void USB_reenumerate()
1616
}
1717
#endif
1818

@@ -42,7 +42,7 @@ index 7f0c8d3142..222f2a971d 100644
4242
NVIC_DisableIRQ(USBHAL_IRQn);
4343

4444
if (this->events == NULL) {
45-
@@ -234,7 +253,12 @@ void USBPhyHw::init(USBPhyEvents *events)
45+
@@ -240,7 +259,12 @@ void USBPhyHw::init(USBPhyEvents *events)
4646
hpcd.Init.battery_charging_enable = DISABLE;
4747
#endif
4848

@@ -56,7 +56,7 @@ index 7f0c8d3142..222f2a971d 100644
5656
hpcd.Instance = USB_OTG_HS;
5757
hpcd.Init.phy_itface = PCD_PHY_ULPI;
5858
hpcd.Init.Sof_enable = 1;
59-
@@ -249,7 +273,12 @@ void USBPhyHw::init(USBPhyEvents *events)
59+
@@ -255,7 +279,12 @@ void USBPhyHw::init(USBPhyEvents *events)
6060
__HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_ENABLE();
6161
map = PinMap_USB_HS;
6262

@@ -70,7 +70,7 @@ index 7f0c8d3142..222f2a971d 100644
7070
hpcd.Instance = USB_OTG_HS;
7171
hpcd.Init.phy_itface = USB_OTG_EMBEDDED_PHY;
7272
hpcd.Init.Sof_enable = ENABLE;
73-
@@ -269,7 +298,12 @@ void USBPhyHw::init(USBPhyEvents *events)
73+
@@ -275,7 +304,12 @@ void USBPhyHw::init(USBPhyEvents *events)
7474

7575
map = PinMap_USB_HS;
7676

@@ -84,7 +84,7 @@ index 7f0c8d3142..222f2a971d 100644
8484
hpcd.Instance = USB_OTG_FS;
8585
hpcd.Init.phy_itface = PCD_PHY_EMBEDDED;
8686
hpcd.Init.Sof_enable = 1;
87-
@@ -286,7 +320,12 @@ void USBPhyHw::init(USBPhyEvents *events)
87+
@@ -292,7 +326,12 @@ void USBPhyHw::init(USBPhyEvents *events)
8888

8989
map = PinMap_USB_FS;
9090

@@ -98,7 +98,7 @@ index 7f0c8d3142..222f2a971d 100644
9898
hpcd.Instance = USB;
9999
hpcd.Init.phy_itface = PCD_PHY_EMBEDDED;
100100
hpcd.Init.speed = PCD_SPEED_FULL;
101-
@@ -399,6 +438,13 @@ void USBPhyHw::deinit()
101+
@@ -405,6 +444,13 @@ void USBPhyHw::deinit()
102102
HAL_StatusTypeDef ret = HAL_PCD_DeInit(&hpcd);
103103
MBED_ASSERT(ret == HAL_OK);
104104

@@ -112,7 +112,7 @@ index 7f0c8d3142..222f2a971d 100644
112112
NVIC_DisableIRQ(USBHAL_IRQn);
113113

114114
if (events != NULL) {
115-
@@ -633,6 +679,13 @@ void USBPhyHw::endpoint_abort(usb_ep_t endpoint)
115+
@@ -639,6 +685,13 @@ void USBPhyHw::endpoint_abort(usb_ep_t endpoint)
116116

117117
void USBPhyHw::process()
118118
{
@@ -126,7 +126,7 @@ index 7f0c8d3142..222f2a971d 100644
126126
HAL_PCD_IRQHandler(&instance->hpcd);
127127
// Re-enable interrupt
128128
NVIC_ClearPendingIRQ(USBHAL_IRQn);
129-
@@ -641,6 +694,13 @@ void USBPhyHw::process()
129+
@@ -647,6 +700,13 @@ void USBPhyHw::process()
130130

131131
void USBPhyHw::_usbisr(void)
132132
{
@@ -141,5 +141,5 @@ index 7f0c8d3142..222f2a971d 100644
141141
instance->events->start_process();
142142
}
143143
--
144-
2.33.1
144+
2.34.1
145145

patches/0013-Increase-Cordio-memory-pool-for-nRF52832.patch renamed to patches/0012-Increase-Cordio-memory-pool-for-nRF52832.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From e100e74e875dd1f751e646a3a8c416bc2f629648 Mon Sep 17 00:00:00 2001
1+
From 66c314a029c7db96c88c9155ec2db93f4f48ab72 Mon Sep 17 00:00:00 2001
22
From: Martino Facchin <m.facchin@arduino.cc>
33
Date: Thu, 10 Dec 2020 09:43:14 +0100
4-
Subject: [PATCH 13/87] Increase Cordio memory pool for nRF52832
4+
Subject: [PATCH 012/110] Increase Cordio memory pool for nRF52832
55

66
completes 9354bc2a958966739adb0b9584c966bc13e675d5
77
---
@@ -22,5 +22,5 @@ index 05e5a45eee..3a3d85128d 100644
2222
"wsf-pool-buffer-size": {
2323
"help": "Defines the memory allocated for the wsf memory pool.",
2424
--
25-
2.33.1
25+
2.34.1
2626

patches/0014-Cordio-Add-sendCmplt-Callback-for-updating-NumCmplPc.patch renamed to patches/0013-Cordio-Add-sendCmplt-Callback-for-updating-NumCmplPc.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
From 32dbf8f936030455a90c0b9f3b6ad89de0b4faa6 Mon Sep 17 00:00:00 2001
1+
From 7001a3f148125888a91e33c949340b13af855242 Mon Sep 17 00:00:00 2001
22
From: Paolo Calao <paolo.calao@gmail.com>
33
Date: Wed, 26 Aug 2020 17:57:42 +0200
4-
Subject: [PATCH 14/87] Cordio Add sendCmplt Callback for updating NumCmplPckts
5-
on disconnection
4+
Subject: [PATCH 013/110] Cordio Add sendCmplt Callback for updating
5+
NumCmplPckts on disconnection
66

77
---
88
.../stack/controller/sources/ble/lctr/lctr_main_conn.c | 6 ++++--
@@ -32,5 +32,5 @@ index 766c5170ec..5bc2190144 100644
3232
if (pLctrVsHdlrs && pLctrVsHdlrs->connCleanup)
3333
{
3434
--
35-
2.33.1
35+
2.34.1
3636

0 commit comments

Comments
 (0)