Skip to content

Commit cd8e315

Browse files
authored
Merge pull request ARMmbed#10763 from ARMmbed/release-candidate
Release candidate for mbed-os-5.13.0-rc2
2 parents b597221 + 452c60b commit cd8e315

File tree

17 files changed

+38
-86
lines changed

17 files changed

+38
-86
lines changed

features/FEATURE_BLE/targets/TARGET_CORDIO/mbed_lib.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
},
2525
"max-l2cap-channels": {
2626
"help": "Maximum number of connection oriented channels",
27-
"value": 8,
27+
"value": 1,
2828
"macro_name": "L2C_COC_CHAN_MAX"
2929
},
3030
"max-l2cap-clients": {
3131
"help": "Maximum number of connection oriented channel registered clients",
32-
"value": 4,
32+
"value": 1,
3333
"macro_name": "L2C_COC_REG_MAX"
3434
},
3535
"max-att-writes": {
@@ -53,7 +53,7 @@
5353
},
5454
"rx-acl-buffer-size": {
5555
"help": "Size of the buffer holding the reassembled complete ACL packet. This will limit the effective ATT_MTU (to its value minus 4 bytes for the header). The size of the buffer must be small enough to be allocated from the existing cordio pool. If this value is increased you may need to adjust the memory pool.",
56-
"value": 100
56+
"value": 70
5757
},
5858
"max-prepared-writes": {
5959
"help": "Number of queued prepare writes supported by server.",

features/FEATURE_BLE/targets/TARGET_CORDIO_LL/mbed_lib.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"config": {
44
"max-advertising-sets": {
55
"help": "Maximum number of advertising sets.",
6-
"value": 4
6+
"value": 3
77
},
88
"max-advertising-reports": {
99
"help": "Maximum number of pending legacy or extended advertising reports.",
10-
"value": 8
10+
"value": 4
1111
},
1212
"default-extended-advertising-fragmentation-size": {
1313
"help": "Default extended advertising data fragmentation size.",
@@ -23,23 +23,23 @@
2323
},
2424
"rx-buffers": {
2525
"help": "Default number of receive buffers.",
26-
"value": 8
26+
"value": 4
2727
},
2828
"phy-coded-support": {
2929
"help": "Coded PHY supported.",
3030
"value": 0
3131
},
3232
"extended-advertising-size": {
33-
"help": "Maximum extended advertising data (and scan data response) size",
34-
"value": 128
33+
"help": "Maximum extended advertising data (and scan data response) size, Minimum value is 251",
34+
"value": 251
3535
},
3636
"max-acl-size": {
3737
"help": "Maximum ACL buffer size",
3838
"value": 256
3939
},
4040
"tx-buffers": {
4141
"help": "Default number of send buffers",
42-
"value": 8
42+
"value": 4
4343
},
4444
"handle-vendor-specific-hci-commands": {
4545
"help": "Handle VS HCI commands. Valid values are 0 (ignore) and 1 (handle).",

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_CORDIO/TARGET_MCU_NRF52840/mbed_lib.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
},
88
"extended-advertising-size": {
99
"help": "Maximum extended advertising data (and scan data response) size",
10-
"value": 1650
10+
"value": 512
1111
},
1212
"max-acl-size": {
1313
"help": "Maximum ACL buffer size",
14-
"value": 512
14+
"value": 256
1515
},
1616
"tx-buffers": {
1717
"help": "Default number of send buffers",
18-
"value": 16
18+
"value": 4
1919
},
2020
"cryptocell310-acceleration": {
2121
"help": "Should the link layer use the Crypto Cell 310 to offload encryption.",

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_CORDIO/TARGET_NRF5x/NRFCordioHCIDriver.cpp

+5-6
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ using namespace ble::vendor::cordio;
6767
#define MBED_CONF_CORDIO_LL_TX_BUFFERS MBED_CONF_CORDIO_LL_NRF52840_TX_BUFFERS
6868
#define MBED_CONF_CORDIO_LL_PHY_CODED_SUPPORT MBED_CONF_CORDIO_LL_NRF52840_PHY_CODED_SUPPORT
6969

70-
#define CORDIO_LL_MEMORY_FOOTPRINT 41906UL
70+
#define CORDIO_LL_MEMORY_FOOTPRINT 15400UL
7171

7272
#else
7373

74-
#define CORDIO_LL_MEMORY_FOOTPRINT 12768UL
74+
#define CORDIO_LL_MEMORY_FOOTPRINT 12500UL
7575

7676
#endif
7777

@@ -235,9 +235,9 @@ ble::vendor::cordio::buf_pool_desc_t NRFCordioHCIDriver::get_buffer_pool_descrip
235235
{
236236
static union {
237237
#if defined(NRF52840_XXAA)
238-
uint8_t buffer[ 17304 ];
238+
uint8_t buffer[ 4900 ];
239239
#else
240-
uint8_t buffer[ 8920 ];
240+
uint8_t buffer[ 4900 ];
241241
#endif
242242
uint64_t align;
243243
};
@@ -246,8 +246,7 @@ ble::vendor::cordio::buf_pool_desc_t NRFCordioHCIDriver::get_buffer_pool_descrip
246246
{ 32, 16 + 4 },
247247
{ 64, 8 },
248248
{ 128, 4 + MBED_CONF_CORDIO_LL_MAX_ADVERTISING_REPORTS },
249-
{ aclBufSize, MBED_CONF_CORDIO_LL_TX_BUFFERS + MBED_CONF_CORDIO_LL_RX_BUFFERS },
250-
{ 272, 1 }
249+
{ aclBufSize, MBED_CONF_CORDIO_LL_TX_BUFFERS + MBED_CONF_CORDIO_LL_RX_BUFFERS }
251250
};
252251

253252
return buf_pool_desc_t(buffer, pool_desc);

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_CORDIO/TARGET_NRF5x/mbed_lib.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"INIT_PERIPHERAL",
1515
"INIT_ENCRYPTED",
1616
"LHCI_ENABLE_VS=0",
17-
"BB_CLK_RATE_HZ=1000000"
17+
"BB_CLK_RATE_HZ=1000000",
18+
"LL_MAX_PER_SCAN=3"
1819
]
1920
}

features/mbedtls/platform/inc/platform_mbed.h

+8
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@
3333
#define MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO mbed_default_seed_write
3434
#endif
3535

36+
/* Automatically enable the Mbed Crypto entropy injection API if
37+
* MBEDTLS_ENTROPY_NV_SEED is enabled. WARNING: the current implementation of
38+
* the Mbed Crypto entropy injection API is incompatible with other entropy
39+
* sources. When MBEDTLS_ENTROPY_NV_SEED is used on PSA target, the NV Seed is
40+
* the sole source of entropy and all other entropy sources are ignored. */
41+
#define MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES
42+
#define MBEDTLS_PSA_INJECT_ENTROPY
43+
3644
#endif // (defined(TARGET_PSA) && defined(MBEDTLS_ENTROPY_NV_SEED))
3745

3846
#if DEVICE_TRNG

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mbed-host-tests>=1.4.4,<1.6
1717
mbed-greentea>=0.2.24,<1.8
1818
beautifulsoup4>=4,<=4.6.3
1919
pyelftools>=0.24,<=0.25
20-
manifest-tool==1.4.8
20+
manifest-tool==1.5.2
2121
icetea>=1.2.1,<1.3
2222
pycryptodome>=3.7.2,<=3.7.3
2323
pyusb>=1.0.0,<2.0.0

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_062_4343W/device/TOOLCHAIN_ARM/startup_psoc6_02_cm4.S

+1-9
Original file line numberDiff line numberDiff line change
@@ -735,15 +735,7 @@ sdhc_1_interrupt_general_IRQHandler
735735

736736
ELSE
737737

738-
EXPORT __user_initial_stackheap
739-
740-
__user_initial_stackheap PROC
741-
LDR R0, =Heap_Mem
742-
LDR R1, =(Stack_Mem + Stack_Size)
743-
LDR R2, =(Heap_Mem + Heap_Size)
744-
LDR R3, =Stack_Mem
745-
BX LR
746-
ENDP
738+
IMPORT __use_two_region_memory
747739

748740
ALIGN
749741

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_062_BLE/device/TOOLCHAIN_ARM/startup_psoc6_01_cm4.S

+1-9
Original file line numberDiff line numberDiff line change
@@ -672,15 +672,7 @@ pass_interrupt_dacs_IRQHandler
672672

673673
ELSE
674674

675-
EXPORT __user_initial_stackheap
676-
677-
__user_initial_stackheap PROC
678-
LDR R0, =Heap_Mem
679-
LDR R1, =(Stack_Mem + Stack_Size)
680-
LDR R2, =(Heap_Mem + Heap_Size)
681-
LDR R3, =Stack_Mem
682-
BX LR
683-
ENDP
675+
IMPORT __use_two_region_memory
684676

685677
ALIGN
686678

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_062_WIFI_BT/device/TARGET_MCU_PSOC6_M0/TOOLCHAIN_ARM/startup_psoc6_01_cm0plus.S

+1-9
Original file line numberDiff line numberDiff line change
@@ -295,15 +295,7 @@ NvicMux31_IRQHandler
295295

296296
ELSE
297297

298-
EXPORT __user_initial_stackheap
299-
300-
__user_initial_stackheap PROC
301-
LDR R0, =Heap_Mem
302-
LDR R1, =(Stack_Mem + Stack_Size)
303-
LDR R2, =(Heap_Mem + Heap_Size)
304-
LDR R3, =Stack_Mem
305-
BX LR
306-
ENDP
298+
IMPORT __use_two_region_memory
307299

308300
ALIGN
309301

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_062_WIFI_BT/device/TARGET_MCU_PSOC6_M4/TOOLCHAIN_ARM/startup_psoc6_01_cm4.S

+1-9
Original file line numberDiff line numberDiff line change
@@ -672,15 +672,7 @@ pass_interrupt_dacs_IRQHandler
672672

673673
ELSE
674674

675-
EXPORT __user_initial_stackheap
676-
677-
__user_initial_stackheap PROC
678-
LDR R0, =Heap_Mem
679-
LDR R1, =(Stack_Mem + Stack_Size)
680-
LDR R2, =(Heap_Mem + Heap_Size)
681-
LDR R3, =Stack_Mem
682-
BX LR
683-
ENDP
675+
IMPORT __use_two_region_memory
684676

685677
ALIGN
686678

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CMOD_062_4343W/device/TOOLCHAIN_ARM/startup_psoc6_02_cm4.S

+1-9
Original file line numberDiff line numberDiff line change
@@ -735,15 +735,7 @@ sdhc_1_interrupt_general_IRQHandler
735735

736736
ELSE
737737

738-
EXPORT __user_initial_stackheap
739-
740-
__user_initial_stackheap PROC
741-
LDR R0, =Heap_Mem
742-
LDR R1, =(Stack_Mem + Stack_Size)
743-
LDR R2, =(Heap_Mem + Heap_Size)
744-
LDR R3, =Stack_Mem
745-
BX LR
746-
ENDP
738+
IMPORT __use_two_region_memory
747739

748740
ALIGN
749741

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CYW943012P6EVB_01/device/TARGET_MCU_PSOC6_M0/TOOLCHAIN_ARM/startup_psoc6_01_cm0plus.S

+1-9
Original file line numberDiff line numberDiff line change
@@ -295,15 +295,7 @@ NvicMux31_IRQHandler
295295

296296
ELSE
297297

298-
EXPORT __user_initial_stackheap
299-
300-
__user_initial_stackheap PROC
301-
LDR R0, =Heap_Mem
302-
LDR R1, =(Stack_Mem + Stack_Size)
303-
LDR R2, =(Heap_Mem + Heap_Size)
304-
LDR R3, =Stack_Mem
305-
BX LR
306-
ENDP
298+
IMPORT __use_two_region_memory
307299

308300
ALIGN
309301

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CYW943012P6EVB_01/device/TARGET_MCU_PSOC6_M4/TOOLCHAIN_ARM/startup_psoc6_01_cm4.S

+1-9
Original file line numberDiff line numberDiff line change
@@ -672,15 +672,7 @@ pass_interrupt_dacs_IRQHandler
672672

673673
ELSE
674674

675-
EXPORT __user_initial_stackheap
676-
677-
__user_initial_stackheap PROC
678-
LDR R0, =Heap_Mem
679-
LDR R1, =(Stack_Mem + Stack_Size)
680-
LDR R2, =(Heap_Mem + Heap_Size)
681-
LDR R3, =Stack_Mem
682-
BX LR
683-
ENDP
675+
IMPORT __use_two_region_memory
684676

685677
ALIGN
686678

tools/profiles/debug.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"ARMC6": {
1919
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-g", "-O1",
2020
"-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions",
21-
"-Wno-reserved-user-defined-literal",
21+
"-Wno-reserved-user-defined-literal", "-Wno-deprecated-register",
2222
"-DMULADDC_CANNOT_USE_R7", "-fdata-sections",
2323
"-fno-exceptions", "-MMD", "-D_LIBCPP_EXTERN_TEMPLATE(...)=",
2424
"-fshort-enums", "-fshort-wchar", "-DMBED_DEBUG",

tools/profiles/develop.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"ARMC6": {
1818
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Os",
1919
"-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions",
20-
"-Wno-reserved-user-defined-literal",
20+
"-Wno-reserved-user-defined-literal", "-Wno-deprecated-register",
2121
"-DMULADDC_CANNOT_USE_R7", "-fdata-sections",
2222
"-fno-exceptions", "-MMD", "-D_LIBCPP_EXTERN_TEMPLATE(...)=",
2323
"-fshort-enums", "-fshort-wchar", "-DMBED_TRAP_ERRORS_ENABLED=1"],

tools/profiles/release.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"ARMC6": {
1818
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Oz",
1919
"-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions",
20-
"-Wno-reserved-user-defined-literal",
20+
"-Wno-reserved-user-defined-literal", "-Wno-deprecated-register",
2121
"-DMULADDC_CANNOT_USE_R7", "-fdata-sections",
2222
"-fno-exceptions", "-MMD", "-D_LIBCPP_EXTERN_TEMPLATE(...)=",
2323
"-fshort-enums", "-fshort-wchar", "-DNDEBUG"],

0 commit comments

Comments
 (0)