Commit Graph

4566 Commits (37ab6ecce2994e11b31c636ee39b76a2545dad8d)

Author SHA1 Message Date
Yossi Levy 98f6364e87 Adding return MBED_ERROR_UNSUPPORTED in _storage_config_default if no component is defined. 2019-01-14 13:06:14 +00:00
Yossi Levy 40263b3c5c fixing FAT mount failure in kvstore FILESYSTEM 2019-01-14 13:06:14 +00:00
Yossi Levy b7004eb2a3 Remove ROM overlaps checkup for kvstore FLASHIAP blockdevice if non default values are use remove of rbp_number_of_entries from the kvstore configuration. Adding default option for storage_type allowing the system to choose TDB_INTERNAl, TDB_EXTERNAL or FILESYSTEM base on the blockdevice component set in the target board. Adding remarks to kv_config.cpp and break simplify the _get_blockdevice_FLASHIAP function 2019-01-14 13:06:14 +00:00
Teppo Järvelin fcc9bb7d4d Cellular: fix state machine to check network attach
Added check to state machine that if modem is attached to a network
it is considered to be registered to a network and state machine
can continue to next states. This fixed issues seen in IoT network
that network does not allow registering if already attached.
2019-01-14 13:06:14 +00:00
Yossi Levy db1dadee74 Documnent changes and adding const to get_type method 2019-01-14 13:06:14 +00:00
Yossi Levy 65f9e7c9a8 astyle fix 2019-01-14 13:06:14 +00:00
Yossi Levy 5a83c77b88 astyle fix 2019-01-14 13:06:14 +00:00
Yossi Levy 8f2b5efe0d Add get_type method to block devices. 2019-01-14 13:06:14 +00:00
Hasnain Virk dd81345d41 Randomizing backoff for Join process
Randomizing backoff by 200ms to 1000ms for Join Requests in a dense
network will add robustness and better chances of reception by the base
station especially in cases of catastrophic network outage and
reconnection.
2019-01-14 13:06:14 +00:00
Donatien Garnier c60b882565 Fixes for features/FEATURE_BLE/ble/services/EddystoneConfigService.h 2019-01-14 13:06:14 +00:00
Donatien Garnier 235921fb11 Fixes for features/FEATURE_BLE/ble/services/EddystoneService.h 2019-01-14 13:06:14 +00:00
Antti Kauppila db4d121374 36510 test build fixed 2019-01-14 13:06:14 +00:00
Antti Kauppila aebb55baa1 mbed.h includes removed 2019-01-14 13:06:14 +00:00
Seppo Takalo 12a6333674 Allow LwIP TCP retransmissions to be configured and tune those smaller.
Currently, LwIP segment retransmission time is 12, which is very long
time as each timeout doubles the retransmission timeout.
Make that to 6 as that is same what we use in Nanostack.
2019-01-14 13:06:14 +00:00
Seppo Takalo f5ac84bd40 Don't consume 36 kB just for Ethernet buffers.
Kintis EMAC is consuming 16 rinbuffers for input, and 8 buffers for output.
This is over-use because input packets are immediately allocated from
heap when passed to LwIP. Therefore the number can be creatly reduced.
2019-01-14 13:06:14 +00:00
paul-szczepanek-arm 89e35bf16e call advertising end even if stopped by us 2019-01-14 13:06:14 +00:00
paul-szczepanek-arm 9b6c139678 suppress scan timeout if we disabled scanning 2019-01-14 13:06:14 +00:00
Desmond Chen a82b30ef0b BLE: NRF52 returns tx/rx phy on phy update callback 2019-01-14 13:06:14 +00:00
Ron Eldor 2de0911b0c Change to mbedtls_platform_zeroize()
Change the use of the local static function `mbedtls_zeroize()` to
the Mbed TLS platform function `mbedtls_platform_zeroize()`.
2019-01-14 13:06:14 +00:00
Yossi Levy db22ce9b6c Remove ROM overlaps checkup for kvstore FLASHIAP blockdevice if non default values are use 2019-01-14 13:06:14 +00:00
Cruz Monrreal II bd6622bb89 Manually resolved unresolved patches 2018-12-28 11:15:19 -06:00
c_jin 07698022fd Add SPDX identifier for GD EMAC driver 2018-12-27 23:07:22 -06:00
chao_king 2d92ea66aa Update licence 2018-12-27 22:51:29 -06:00
chao_king 5b8da28729 Update licence 2018-12-27 22:51:29 -06:00
chao_king ee5023c797 Update licence 2018-12-27 22:36:18 -06:00
chao_king ec04269ad9 Update licence 2018-12-27 22:36:18 -06:00
chao_king 14ea9c3673 Update licence 2018-12-27 22:36:18 -06:00
chao_king 89344aa379 Add EMAC driver for GD32_F307VG 2018-12-27 22:36:18 -06:00
jeromecoutant e06b7863cc STM32F429/STM32F439 alignment 2018-12-27 22:26:04 -06:00
David Saada c0226febbc Fix LTO build failures due to duplicate local types 2018-12-27 22:26:04 -06:00
Alastair D'Silva 5b29b7e6b5 Don't use define checks on DEVICE_FOO macros (mbed code)
The DEVICE_FOO macros are always defined (either 0 or 1).

This patch replaces any instances of a define check on a DEVICE_FOO
macro with value test instead.

Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
2018-12-27 22:26:04 -06:00
Desmond Chen 1cb1a49752 Fix BLE long write execution failure 2018-12-27 22:26:03 -06:00
David Saada 67ba976b30 Fix FLASHIAP_ROM_END macro for GCC_ARM & IAR toolchains
- Consider data section in GCC_ARM toolchain
- Consider init_array section in IAR toolchain
- Rename macro to FLASHIAP_APP_ROM_END_ADDR for clarity sake
2018-12-27 22:26:03 -06:00
Ron Eldor 6ba60e33de Update the CC310 readme file
Update the Cryptocell 310 readme file with the binary library version
information.
2018-12-27 22:26:03 -06:00
Ron Eldor 83ac6bdcaa Update the CC310 GCC_ARM libraries
Update the cryptocell 310 GCC_ARM libraries with known version.
The libraries were built from the Cryptocell 310 release
version 1.1.0.1285, using arm-none-eabi-gcc 6.3.1 20170620 (release) (release).
2018-12-27 22:26:03 -06:00
Ron Eldor 9db8753e59 Update the CC310 ARM libraries
Update the cryptocell 310 ARM libraries with known version.
The libraries were built from the Cryptocell 310 release version
1.1.0.1285, using `ARM Compiler 5.06 update 4 (build 422)`.
2018-12-27 22:26:03 -06:00
Ron Eldor 187af9e26f Update the CC310 IAR libraries
Update the cryptocell 310 IAR libraries, since the previous ones were not
built correct. The libraries were built from the Cryptocell 310
release version 1.1.0.1285, using IAR version 7.80.1.11864.
2018-12-27 22:26:03 -06:00
ccli8 cfd8823d30 Fix crypto AC management
1. For SHA AC, use atomic flag to manage its ownership.
   (1) Nuvoton SHA AC doesn't support SHA context save & restore, so S/W
       SHA fallback has been supported before. To make non-blocking 'acquire'
       semantics clearer, introduce 'try_acquire' to substitute for 'acquire'.
   (2) No biting CPU due to mechanism above.
   (3) No deadlock due to mechanism above.
2. For AES/DES/ECC AC, change to mutex to manage their ownership.
   (1) Change crypto-misc.c to crypto-misc.cpp to utilize C++ SingletonPtr
       which guarantees thread-safe mutex construct-on-first-use.
   (2) With change to crypto-misc.cpp, add 'extern "C"' modifier to CRYPTO_IRQHandler()
       to avoid name mangling in C++.
   (3) No priority inversion because mutex has osMutexPrioInherit attribute
       bit set.
   (4) No deadlock because these AC are all locked for a short sequence
       of operations rather than the whole lifetime of mbedtls context.
   (5) For double mbedtls_internal_ecp_init() issue, it has been fixed in upper
       mbedtls layer. So no need to change ecc init/free flow.
2018-12-27 22:26:03 -06:00
ccli8 5fc51b8aa2 Fix return error code when ECC H/W acceleratioin is failed 2018-12-27 22:26:03 -06:00
Kari Haapalehto c7ced9b42f Initialize the interface at the construction and make sure that it's done only once. 2018-12-27 22:26:02 -06:00
zhanglu@realtek-sg.com 1853db62d6 Realtek-rtl8195am-Network Socket Updates
This PR addresses the issue of #8124.
It updates and enriches the wifi connection error type to adapt the Network Socket test plan requirement.
In the meantime, it increases the heap size that allows the transmission of larger packet size.

Description
1. Increase heap size in lwipstack\mbed_lib.json to fulfill bursty TCP and UDP transmission requirement.
2. Modify and enrich wifi connection error types in TARGET_AMEBA\RTWInterface.cpp to adapt the decision logic of the wifi test cases.
3. Add new static constants in TARGET_AMEBA\RTWInterface.h, including 'SSID_MAX_LENGTH', 'PASSPHRASE_MAX_LENGTH' and 'PASSPHRASE_MIN_LENGTH' to help verifying the validity of ssid and passphrase.

Pull request type
[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change
2018-12-27 22:26:02 -06:00
kegilbert 637499c63f Add socket stat logging state change update
TCPServer was deprecated and the accept call was added to TCPSocket. Add state change update to that call
2018-12-27 22:26:02 -06:00
David Saada d6f22193ff Adjust FAT FS tests to low memory boards
This is achieved by checking whether the board can allocate a certain memory
chunk (threshold) and skipping the test if it can't.
This should prevent these boards from failing in CI.
2018-12-27 22:26:02 -06:00
Alastair D'Silva d77f2c4b3a Align prototype & implementation of enet_tasklet_disconnect & friends
Rework of #8698

Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
2018-12-27 22:26:02 -06:00
Teppo Järvelin a3d26187d4 Cellular: Fix to use PPP stack in PPP mode
In QUECTEL_BG96 and QUECTEL_BC95 there was missing #ifdefs for
PPP mode and our stack was used. Also BG96 needed to be added
AT_CellularBase::AT_CGDATA as not supported.
2018-12-27 22:26:00 -06:00
Conrad Braam 2d9a5f41c6 removed include statement 2018-12-27 22:26:00 -06:00
Conrad Braam 43f09b862c writes and reads queue, not overflow stack IOTPAN-295 2018-12-27 22:26:00 -06:00
Ari Parkkila 1bbf8af7d3 Cellular: Refactored GEMALTO_CINTERION_Module to GEMALTO_CINTERION 2018-12-27 22:26:00 -06:00
Mirela Chirica 2f47b5b481 Cellular: Rewrite AT handler consume to tag
If sequence from buffer contains tag but symbol before tag is same as
first symbol of the tag, then the tag wasn't detected.

For example, "\r\n" tag was not found from "\r\r\nOK" sequence.
2018-12-27 22:26:00 -06:00
Amir Cohen 1033ddf35b Fix max_keys reset limitation
Persist the max_keys value through a soft-reset, also prohibit max_keys set under predefined default value (16)
2018-12-27 22:26:00 -06:00
Amir Cohen b261162c9b Remove dead code 2018-12-27 22:26:00 -06:00
Amir Cohen 79103d25fd Improve tests by reducing kvstore reset occurrences 2018-12-27 22:26:00 -06:00
Mel W 42f6d630a7 Capitalization and punctuation 2018-12-27 22:25:59 -06:00
Kari Haapalehto 35ce1e5ff3 Modify enet_tasklet.h Change enet_tasklet_network_init() and enet_tasklet_disconnect() declarations to match code. Also add document enet_tasklet.h functions 2018-12-27 22:25:59 -06:00
Naveen Kaje c1ef30e851 BLE: Update toolchain.h with mbed_toolchain.h
Fixes the following warning

[Warning] toolchain.h@24,0: #1215-D: #warning directive:
toolchain.h has been replaced by mbed_toolchain.h,
please update to mbed_toolchain.h [since mbed-os-5.3]
2018-12-27 22:25:59 -06:00
Ron Eldor 18d544b977 Return not supported for internal process function
Return the `MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED` for the
internal process function, as it is not public.
2018-12-27 22:25:59 -06:00
Ron Eldor bf681b0409 Style fixes
1. Change camelcase variables to Mbed OS style.
2. Remove functions declarations from the `_alt` header, since they
are now added from the module header regardless whether an alternative
implementation exists.
3. Remove the `extern "c"` declaration from the `_alt` headers.
4. Remove redundant extra lines.
2018-12-27 22:25:59 -06:00
Hasnain Virk 040a4a3243 Final cleanup and ASCII art for algorithm v2
Final code cleanup and adding ascii art for the version 2 of the
algorithm.
2018-12-27 22:25:59 -06:00
Hasnain Virk eb69d2737e RX window calculation algorithm version 2
In this version we try to mitigate a situation when we start listening
right in the middle of a preamble sequence (e.g., in high SF case).
2018-12-27 22:25:59 -06:00
Hasnain Virk 1f3a1b5af8 Style alignment
Minor style alignment.
2018-12-27 22:25:59 -06:00
Hasnain Virk cade713a41 Mitigating reception problems with lower data rates
A new algorithm has been taken in use to calculate the receive window
length and the timing offset involved in opening of the said receive
window. This algorithm performs better than the stock algorthm and
consumes less power.
2018-12-27 22:25:59 -06:00
Hasnain Virk 1aec8297c3 UL FCnt increment in case of retry exhaustion
Previously we had been incrementing UL frame counter for a CONFIRMED
message only when the transmission was deemed successful i.e., we would
have received an ack before all the retries would have exhausted.
Now we have opted to increment the frame counter if all the retries are
exhausted considering the fact that we essentially treat the next
message after retry exhaustion as a new packet so we should also
increment the frame counter.
2018-12-27 22:25:58 -06:00
Amanda Butler 7a2d04ebc6 Edit CellularContext.h
Edit file for complete sentences and correct commas.
2018-12-27 22:25:58 -06:00
Amanda Butler 3892105dee Edit CellularDevice.h
Edit file for complete sentences, consistent tense and correct commas.
2018-12-27 22:25:58 -06:00
Teppo Järvelin faab478c23 Cellular: add Callback functionality to CellularDevice. 2018-12-27 22:25:58 -06:00
Teppo Järvelin f9742e978c Cellular: updated doxygen for CellularContext and CellularDevice. 2018-12-27 22:25:58 -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
Kari Haapalehto 5d96c9b070 Coverity fixes. These issues has been found by coverity. 2018-12-27 22:25:57 -06:00
Yossi Levy 9325ed9a6c Setting K64F to use KVStore FileSystem configuration 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
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
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
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
Michal Paszta 1931c2cd27 Fix compilation warnings (apart from nanostack) 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
Kari Haapalehto ee57fd679e Correct network status callbacks with Nanostack. Ethernet-tasklet needs to be registered for emac link state changes. Ethernet-tasklet will then handle ethernet cable connection/disconnection events. 2018-12-27 22:25:54 -06:00
Ron Eldor 789542168d Fix issues in CC310 cc_internal discovered by OTT
Return `MBEDTLS_ERR_ECP_INVALID_KEY` when Cryptocell returns
`CRYS_ECPKI_BUILD_KEY_INVALID_PRIV_KEY_SIZE_ERROR`
or `CRYS_ECPKI_BUILD_KEY_INVALID_PUBL_KEY_SIZE_ERROR`,
When the key size is invalid. Found by the "ECDSA zero private parameter"
tests.
2018-12-27 22:25:54 -06:00
Teemu Kultala e4832fc8c3 cellular: registration status change fix 2018-12-27 22:25:54 -06:00
Terence Zhang 7dd7471be6 Formatted via astyle. 2018-12-11 16:14:50 -06:00
Terence Zhang 7529535a26 Fix for the fault exception issue: https://github.com/ARMmbed/mbed-os-example-cellular/issues/112 2018-12-11 16:14:50 -06:00
Terence Zhang de70dae221 Fix the fault exception issue in socket_recvfrom with the null pointer parameter as SocketAddress *addr. 2018-12-11 16:14:50 -06:00
David Saada 04377fa88e Fix a few SecureStore issues (following preliminary security review)
- Remove require integrity flag (authentication) - always authenticate
- Use RBP KV to store CMAC also in write once case
- Allow removing a key if reading it failed on RBP authentication error
- Disable SecureStore if user disables MBED TLS AES CTR or CMAC
2018-12-11 16:14:50 -06:00
paul-szczepanek-arm 52b0f21720 remove noreturn error function to avoid compilation issues 2018-12-11 16:14:49 -06:00
paul-szczepanek-arm d9ec798f67 fixed ARM compilation problem caused by noreturn 2018-12-11 16:14:49 -06:00
paul-szczepanek-arm 70d588474e working ARM lib 2018-12-11 16:14:49 -06:00
paul-szczepanek-arm c972982205 working libs for GCC and IAR 2018-12-11 16:14:49 -06:00
Donatien Garnier 4a81acca8b Replace ARMCC libs 2018-12-11 16:14:49 -06:00
Donatien Garnier 1dda09422d ARMCC only likes armar 2018-12-11 16:14:48 -06:00
Donatien Garnier 0c785ac445 Remove use of GPIOs (LEDs and diag pins) from Cordio LL for Nordic 2018-12-11 16:14:48 -06:00
Donatien Garnier 345a3ed931 Remove duplicate symbols in libcordio_stack.a 2018-12-11 16:14:48 -06:00
paul-szczepanek-arm 368a90b944 iar libs for cordio 2018-12-11 16:14:48 -06:00
paul-szczepanek-arm c9fb69c8e8 added arm version of libs 2018-12-11 16:14:48 -06:00