Skip to content

Commit 73f0963

Browse files
authored
Merge pull request #10610 from ARMmbed/release-candidate
Release candidate for mbed-os-5.12.4
2 parents 0f959db + 618297f commit 73f0963

File tree

69 files changed

+1250
-980
lines changed

Some content is hidden

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

69 files changed

+1250
-980
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ matrix:
164164
pylint>=1.9,<2
165165
hypothesis>=3,<4
166166
coverage>=4.5,<5
167-
coveralls>=1.5,<2
168167
"
169168
- python -m pip install --upgrade pip==18.1
170169
- python -m pip install --upgrade setuptools==40.4.3
@@ -176,7 +175,6 @@ matrix:
176175
- python tools/test/pylint.py
177176
- coverage run -a tools/project.py -S | sed -n '/^Total/p'
178177
- coverage html
179-
- coveralls
180178

181179
- <<: *pytools-vm
182180
name: "tools-py35"

TESTS/host_tests/rtc_reset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def setup(self):
4040
"""Register callbacks required for the test"""
4141
self._error = False
4242
generator = self.rtc_reset_test()
43-
generator.next()
43+
next(generator)
4444

4545
def run_gen(key, value, time):
4646
"""Run the generator, and fail testing if the iterator stops"""

TESTS/mbed_hal/qspi/flash_configs/flash_configs.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@
4040
#undef QSPI_CMD_WRITE_DPI
4141
#undef QSPI_CMD_WRITE_QPI
4242

43+
#elif defined(TARGET_RHOMBIO_L476DMW1K)
44+
#include "MT25Q_config.h" // MT25QL128ABA1EW7
45+
/* See STM32L476 Errata Sheet, it is not possible to use Dual-/Quad-mode for the command phase */
46+
#undef QSPI_CMD_READ_DPI
47+
#undef QSPI_CMD_READ_QPI
48+
#undef QSPI_CMD_WRITE_DPI
49+
#undef QSPI_CMD_WRITE_QPI
50+
4351
#elif defined(TARGET_DISCO_L496AG)
4452
#include "MX25RXX35F_config.h" // MX25R6435F
4553

TESTS/netsocket/udp/udpsocket_echotest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace {
2929
static const int SIGNAL_SIGIO_RX = 0x1;
3030
static const int SIGNAL_SIGIO_TX = 0x2;
3131
static const int SIGIO_TIMEOUT = 5000; //[ms]
32-
static const int WAIT2RECV_TIMEOUT = 2000; //[ms]
32+
static const int WAIT2RECV_TIMEOUT = 5000; //[ms]
3333
static const int RETRIES = 2;
3434

3535
static const double EXPECTED_LOSS_RATIO = 0.0;

components/TARGET_PSA/TARGET_TFM/tf-m-integration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ TF-M is built as bare-metal in a secure target, in order to build a secure targe
2626
## Build hooks
2727

2828
Mbed-OS testing tools are designed to work with a single image (`.bin` or `.hex`).
29-
When building mbed-os for ARMv8-M targets two images are created. One for normal world(NW) and one for TrustZone(TZ).
29+
When building mbed-os for TF-M targets two images are created. One for normal world(NW) and one for TrustZone(TZ).
3030
Mbed-OS build system provides `post_binary_hook` that allows executing arbitrary Python script for merging NW and TZ images. Typically `post_binary_hook` is added to NW target and assumes TZ target images as a prerequisite.
3131

32-
## Porting ARMv8-M targets
32+
## Porting TF-M targets
3333

34-
Typically firmware for ARMv8-M targets consist of 2 or more images: normal world and TrustZone image. More images can be present in case boot loaders are used.
34+
Typically firmware for TF-M targets consist of 2 or more images: normal world and TrustZone image. More images can be present in case boot loaders are used.
3535
Two images must be built and linked separately. TrustZone image must be built first.
3636

3737
There may be code and/or header files sharing between the two targets.

components/storage/blockdevice/COMPONENT_SPIF/mbed_lib.json

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,25 @@
3232
"SPI_CLK": "PE_12",
3333
"SPI_CS": "PE_11"
3434
},
35-
"MTB_ADV_WISE_1530": {
35+
"MTB_ADV_WISE_1530": {
3636
"SPI_MOSI": "PC_3",
3737
"SPI_MISO": "PC_2",
3838
"SPI_CLK": "PB_13",
39-
"SPI_CS": "PC_12"
39+
"SPI_CS": "PC_12"
4040
},
41-
"MTB_MXCHIP_EMW3166": {
41+
"MTB_MXCHIP_EMW3166": {
4242
"SPI_MOSI": "PB_15",
4343
"SPI_MISO": "PB_14",
4444
"SPI_CLK": "PB_13",
45-
"SPI_CS": "PA_10"
45+
"SPI_CS": "PA_10"
4646
},
47-
"MTB_USI_WM_BN_BM_22": {
47+
"MTB_USI_WM_BN_BM_22": {
4848
"SPI_MOSI": "PC_3",
4949
"SPI_MISO": "PC_2",
5050
"SPI_CLK": "PB_13",
51-
"SPI_CS": "PA_6"
51+
"SPI_CS": "PA_6"
5252
},
53-
"MTB_ADV_WISE_1570": {
53+
"MTB_ADV_WISE_1570": {
5454
"SPI_MOSI": "PA_7",
5555
"SPI_MISO": "PA_6",
5656
"SPI_CLK": "PA_5",
@@ -62,6 +62,12 @@
6262
"SPI_MISO": "PE_13",
6363
"SPI_CLK": "PE_12",
6464
"SPI_CS": "PE_11"
65+
},
66+
"MTS_DRAGONFLY_F411RE": {
67+
"SPI_MOSI": "SPI3_MOSI",
68+
"SPI_MISO": "SPI3_MISO",
69+
"SPI_CLK": "SPI3_SCK",
70+
"SPI_CS": "SPI_CS1"
6571
}
6672
}
6773
}

drivers/SPI.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ void SPI::_do_construct()
8383
_peripheral->name = name;
8484
}
8585
core_util_critical_section_exit();
86+
87+
#if DEVICE_SPI_ASYNCH && TRANSACTION_QUEUE_SIZE_SPI
88+
// prime the SingletonPtr, so we don't have a problem trying to
89+
// construct the buffer if asynch operation initiated from IRQ
90+
_peripheral->transaction_buffer.get();
91+
#endif
8692
// we don't need to _acquire at this stage.
8793
// this will be done anyway before any operation.
8894
}

features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ ble_error_t GattServer::insert_descriptor(
510510
#endif // BLE_FEATURE_SECURITY
511511
}
512512

513-
if (properties & READ_PROPERTY) {
513+
if (properties & READ_PROPERTY && !(attribute_it->settings & ATTS_SET_CCC)) {
514514
attribute_it->settings |= ATTS_SET_READ_CBACK;
515515
}
516516
}
@@ -543,7 +543,7 @@ ble_error_t GattServer::insert_descriptor(
543543
#endif // BLE_FEATURE_SECURITY
544544
}
545545

546-
if (properties & WRITABLE_PROPERTIES) {
546+
if (properties & WRITABLE_PROPERTIES && !(attribute_it->settings & ATTS_SET_CCC)) {
547547
attribute_it->settings |= ATTS_SET_WRITE_CBACK;
548548
}
549549
}

features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularStack.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ nsapi_error_t QUECTEL_BG96_CellularStack::socket_connect(nsapi_socket_t handle,
7070
if ((_at.get_last_error() == NSAPI_ERROR_OK) && err) {
7171
if (err == BG96_SOCKET_BIND_FAIL) {
7272
socket->created = false;
73+
_at.unlock();
7374
return NSAPI_ERROR_PARAMETER;
7475
}
7576
_at.cmd_start("AT+QICLOSE=");
@@ -177,6 +178,7 @@ void QUECTEL_BG96_CellularStack::handle_open_socket_response(int &modem_connect_
177178
modem_connect_id = _at.read_int();
178179
err = _at.read_int();
179180
}
181+
180182
nsapi_error_t QUECTEL_BG96_CellularStack::create_socket_impl(CellularSocket *socket)
181183
{
182184
int modem_connect_id = -1;

features/lwipstack/lwip-sys/arch/cc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ MBED_NORETURN void lwip_mbed_assert_fail(const char *msg, const char *func, cons
110110
#else // MBED_CONF_LWIP_USE_MBED_TRACE
111111
#include <stdio.h>
112112

113-
MBED_NORETURN void assert_printf(char *msg, int line, char *file);
113+
MBED_NORETURN void assert_printf(const char *msg, int line, const char *file);
114114

115115
/* Plaform specific diagnostic output */
116116
#define LWIP_PLATFORM_DIAG(vars) printf vars

0 commit comments

Comments
 (0)