Commit Graph

21129 Commits (dc47e708b6db74fb99ecdedfde8224c810b904f5)

Author SHA1 Message Date
jeromecoutant dc47e708b6 STM32 RTC update for easy maintenance 2018-12-27 22:25:58 -06:00
Kevin Bracey d3610d5d4e memap.py: Cope with IAR 8 linker map
IAR 8 linker map puts C++14-style apostrophe digit separators in its
addresses, such as:

     .data   inited  0x2000'1ff0    0x4  mbed_rtx_idle.o [159]

Extend the regex pattern to allow this.
2018-12-27 22:25:58 -06:00
bcostm 6ff271b322 STM32L4 TRNG:Remove trng clock setting for L4 devices
This will be done in the system_clock.c file instead.
2018-12-27 22:25:58 -06:00
Oren Cohen 68c3d6c657 Correct behavior of PSA code generator
* Don't generate files if a test does not contain additional partitions
2018-12-27 22:25:58 -06:00
Russ Butler 59a59eb450 Fix rare NRF52 serial TX lockup
When using UARTSerial sending data over the uart follows the sequence
below:
<-TX done ISR runs and sets a software interrupt to pending
<-Software interrupt fires:
    -disables TX done interrupt
    -calls UARTSerial TX handler which sends bytes until the uart
     buffer filled (writeable returns false). Sending a byte
     re-enables the TX done interrupt continuing the cycle

Due to this sequence, if the UARTSerial TX handler does not send a byte
then the transmit state machine mentioned above will get stuck with
the TX done interrupt disabled. The events causing this failure:
<-TX done ISR runs and sets a software interrupt to pending
<-Software interrupt fires:
    -disables TX done interrupt
    -calls UARTSerial TX handler:
        -checks writeable which is true and sends a byte
            <- interrupted by a higher priority interrrupt
            <- TX done ISR runs, setting software interrupt to
               pending again
        -checks writeable which is true and sends a second byte
    -Software interrupt finishes
<-Software interrupt fires:
    -disables TX done interrupt
    -calls UARTSerial TX handler:
        -checks writeable which is false and DOES NOT SEND A BYTE
    -Software interrupt finishes, the TX interrupt is still disabled
*-Byte gets sent but TX done ISR does not fire

This patch prevents the TX lockup by removing the code in the
software interrupt which disables the TX done interrupt. Disabling the
TX done interrupt at this point is not necessary so this code is safe
to remove.
2018-12-27 22:25:57 -06:00
Amanda Butler 81296b34d0 Edit TDBStore.h
Edit file for punctuation and consistent tense.
2018-12-27 22:25:57 -06:00
Amanda Butler 053212b540 Edit SecureStore.h
Edit file for consistent tense.
2018-12-27 22:25:57 -06:00
Amanda Butler cafce1018a Add word to KVMap.h
Add missing article for clarity and capitalization.
2018-12-27 22:25:57 -06:00
Amanda Butler bbea6ed27a Edit FileSystemStore.h
Make minor edits, mostly for consistent tense across documents.
2018-12-27 22:25:57 -06:00
Yossi Levy 31eff13967 Fixing Doxygen descriptions 2018-12-27 22:25:57 -06:00
Russ Butler 749fd4d540 Update Ticker wrapper to handle early interrupts
Update the LowPowerTickerWrapper class to handle rather than ignore
early low power ticker interrupts. This ensures that devices don't get
stuck in sleep due to a ignored early low power ticker interrupt.
2018-12-27 22:25:57 -06:00
Kari Haapalehto 5d96c9b070 Coverity fixes. These issues has been found by coverity. 2018-12-27 22:25:57 -06:00
Naveen Kaje 2fdec729a0 tools: fix up build_api padding logic and clean up unused code
Patch from the end of the first segment. Remove unused code.
2018-12-27 22:25:57 -06:00
Naveen Kaje f7a114eba8 tools: Update build_api
Rename loop varibles for better readability and
formatting changes.
2018-12-27 22:25:57 -06:00
Naveen Kaje c8de1aed5e tools: Update build_api padding method
Update the padding sequence so that the gaps
are padded after all the regions are merged.
This avoids overwriting active regions and
serializes the process.
2018-12-27 22:25:57 -06:00
Naveen Kaje 3f9327bd3d tools: update build_api and __init__ as per review comments 2018-12-27 22:25:57 -06:00
Naveen Kaje b2e4c44734 tools: process bootloader chunks
NRF Softdevice hex file can be in chunks.
Make sure we account for the space where the bootloader resides
by including all the chunks within the end of rom marker. This will
clearly mark out the initial bootloader region.
2018-12-27 22:25:57 -06:00
Simo Sillankorva e33706c12d Remove max_app_addr checking from .hex
* Remove max_app_addr logic from tools/config/__init__.py as it was not working properly with some of the .hex files.
2018-12-27 22:25:57 -06:00
Jammu Kekkonen 73ddffd1aa Review fixes 2 for bootloader region generation 2018-12-27 22:25:57 -06:00
Jammu Kekkonen 319b3d6a3d Review fixes for bootloader region generation 2018-12-27 22:25:57 -06:00
Jammu Kekkonen ed782f52d2 Fix bootloader build region generation and add support for bootloaders with multiple segments, as required by NRF52 bootloader. 2018-12-27 22:25:56 -06:00
Yossi Levy 9325ed9a6c Setting K64F to use KVStore FileSystem configuration 2018-12-27 22:25:56 -06:00
Seppo Takalo 3ef71f2dc9 ONME-4007: Fix mbed_lib link from ESP8266 Readme.md
ONME-4007: Fix mbed_lib link from ESP8266 Readme.md
2018-12-27 22:25:56 -06:00
Ron Eldor dcff4c92cd Add comment for reasoning for changing default
Add a comment in the `adjust-config.sh` script, for effects
and benefits of the new value.
2018-12-27 22:25:56 -06:00
Ron Eldor a88df39cea Reduce default MBEDTLS_MPI_MAX_SIZE
Reduce the default size of `MBEDTLS_MPI_MAX_SIZE` to 512 bytes,
as the default 1024 consumes much stack, and supporting RSA 4096 bit
may suffice at the moment.
2018-12-27 22:25:56 -06:00
Wilfried Chauveau 97c629ca66 fix according to @ashok-rao's review 2018-12-27 22:25:56 -06:00
Wilfried Chauveau 7817bf1902 fix copyrights 2018-12-27 22:25:56 -06:00
Wilfried Chauveau e9f4be3525 Add the port for the ACONNO ACN52832 module on MTB's form factor 2018-12-27 22:25:56 -06:00
Vincent Coubard bbf0adf337 BLE: Improve scan response process explanation. 2018-12-27 22:25:56 -06:00
Vincent Coubard af8e1f5f6c BLE: Fix common/Duration.h doc. 2018-12-27 22:25:56 -06:00
ccli8 45052e74eb Fix time to init/deinit stdio_uart
With support for checking H/W UART initialized or not, we can simplify stdio management:
1. When serial_init(&stdio_uart) calls in, just set the 'stdio_uart_inited' flag.
2. When serial_free(&stdio_uart) calls in, just clear the 'stdio_uart_inited' flag.
Except above, we needn't make special handling with 'stdio_uart'.
2018-12-27 22:25:56 -06:00
ccli8 2952a794ee Check configuration option for default UART baudrate setting 2018-12-27 22:25:56 -06:00
ccli8 4e94694b5f Avoid re-configuring UART in serial_init() for the same H/W UART
The same H/W UART may be shared by multiple serial_t objects. This fix tries to avoid
re-configuring the same H/W UART in serial_init() when there are multiple serial_t
objects constructed. To re-configure UART, call serial_baud() and serial_format()
explicitly. This can avoid confusion when e.g. a newly constructed serial_t object
changes baudrate unexpectedly in serial_init().
2018-12-27 22:25:56 -06:00
ccli8 3e43755d32 Remove unused pin_tx/pin_rx fields from serial_s struct 2018-12-27 22:25:56 -06:00
TomoYamanaka 91de358aa4 Renesas : Add the setting of SD as components 2018-12-27 22:25:56 -06:00
Kari Haapalehto 232b6b71b4 TARGET_WICED updated. Connection status issue corrected. If the link layer status changes, the connection status callback is now called correctly.
mbedtls headers from library are removed and the mbed-os one's are used.
2018-12-27 22:25:55 -06:00
jeromecoutant b950a8f7ac Remove NVSTORE enabled from NUCLEO_F410RB 2018-12-27 22:25:55 -06:00
Antti Yli-Tokola 998893dd36 Update mbed-coap to version 4.7.3
EMPTY response should not be stored to blockwise list.
An Empty message only contains the 4-byte header so it does not require any blockwise operations.
This will fix unneseccary message sending timeouts which leads mbed cloud client to do unnecessary
reconnections which increases the network traffic.
2018-12-27 22:25:55 -06:00
Mahesh Mahadevan cffee2634d MCUXpresso: Ensure the RTC OSC is running at bootup on Kinetis platforms
This is a fix for Issue 5348.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-12-27 22:25:55 -06:00
Russ Butler c8c68381d6 Fix ESP8266 recv_udp timeout with flow control
UDP packets are always received as OOB data. Without checking for
new OOB data with a call to "_process_oob" then recv_udp never blocks.
If a UDP packet is not available then NSAPI_ERROR_WOULD_BLOCK is
returned. This causes mbed-os's DNS handling to always fail when
flow control is enabled.

This patch fixes recv_udp by always calling "_process_oob" regardless
of if flow control is enabled. This ensures that recv_udp follows the
timeout parameter and waits for new data to arrive.
2018-12-27 22:25:55 -06:00
kegilbert 5be53a00d6 Align comment block in sys stats struct 2018-12-27 22:25:55 -06:00
Paul Szczepanek c74f2561e0 fix DM_CONN_ID_NONE loop condition 2018-12-27 22:25:55 -06:00
Vincent Coubard 6c5defac00 BLE: Fix iteration on connections in CordioGattServer. 2018-12-27 22:25:55 -06:00
Mahesh Mahadevan a57b8b1b27 LPC546XX: Fix build failure due to incorrect merge
Commit ab84d2bf33 missed including
qspi_device.h file

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-12-27 22:25:55 -06:00
Veijo Pesonen e35c0a79c9 Tests-network-wifi organize test cases for clarity 2018-12-27 22:25:55 -06:00
Veijo Pesonen 2235150491 Bugfix - drops the assumption that there is more than SSID in vicinity 2018-12-27 22:25:55 -06:00
Michal Paszta 1931c2cd27 Fix compilation warnings (apart from nanostack) 2018-12-27 22:25:55 -06:00
zhanglu@realtek-sg.com da0a385f7d This PR modifies the name of the bin file generated for SMCC FOTA feature
This PR modifies the name of the bin file generated for SMCC FOTA feature

Description
Modify name of the bin file from '-payload.bin' to '_update.bin' in REALTEK_RTL8195AM.py file to adapt the manifest tool requirment for the SMCC FOTA feature.

Pull request type
[ ] Fix
[ ] Refactor
[x] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change
2018-12-27 22:25:55 -06:00
Mikhail Maltsev d0bef03aed Fix C++11 build with Arm Compiler 6
Currently there are two issues which prevent building Mbed OS with
-std=gnu++11 when using Arm Compiler 6:
* NanostackRfPhys2lp.cpp contains a narrowing conversion in a braced
  initializer list
* ns_types.h includes <stdalign.h> which Arm Compiler 6 currently
  does not provide

This patch fixes both issues. The first one is fixed by changing the
underlying type of the corresponding enumeration when the code is
compiled as C++11. The second issue is worked around by avoiding the
use of <stdalign.h> header for Arm Compiler versions prior to 6.12.
2018-12-27 22:25:55 -06:00
ccli8 8f32203603 Fix license description for analog-out HAL files
1. Fix copyright year
2. Add SPDX
2018-12-27 22:25:55 -06:00