Commit Graph

4588 Commits (07cd9a10c7ea47f99ce22bfae518d0031c248022)

Author SHA1 Message Date
Cruz Monrreal 125ab24fc7 Fixed single space that astyle caught 2019-01-14 13:06:14 +00:00
Mel W 885212e834 Writer review
Grammatical changes, passive -> active in some places, and future -> present.
2019-01-14 13:06:14 +00:00
Hasnain Virk aeeccd9e24 Doxygen update for LoRaRadio class
Added more documentation to the data structures and corrected the
inclusion of this class to the correct class hierarchy.
2019-01-14 13:06:14 +00:00
Alexander Zilberkant e7b5918d6b Set "TDB_INTERNAL" default storage for Pelion
NUCLEO_F411RE
NUCLEO_F429ZI
UBLOX_EVK_ODIN_W2
2019-01-14 13:06:14 +00:00
David Saada e57c9f35a8 Fix the general block device to support better low memory boards
In addition, fix prints and warnings.
2019-01-14 13:06:14 +00:00
Guy Wild 8b9172432b Update BlockDevice.h 2019-01-14 13:06:14 +00:00
Mel Weed f32df9df98 minor editorial tweaks
partition's->partition
2019-01-14 13:06:14 +00:00
Yossi Levy 47b3ee298e Doxygen changes to ProfilingBlockDevice and SlicingBlockDevice. 2019-01-14 13:06:14 +00:00
Yossi Levy e5e795e574 Some Doxygen fixes in MBRBlockDevice and BlockDevice 2019-01-14 13:06:14 +00:00
c_jin a915c843e3 add SPDX indentifier, modify 450zi.icf file and static definition in us_ticker.c 2019-01-14 13:06:14 +00:00
c_jin 224493fbfe Add GD32_F450ZI as new target 2019-01-14 13:06:14 +00:00
David Saada 5b281d7301 Remove kvstore's mbed_lib.json file (not relevant any more)
In addition, use the NOT_SUPPORTED directive to skip the tests.
2019-01-14 13:06:14 +00:00
Amir Cohen 7bb8345b65 Kvstore tests api change to run on K64F only
Change KVStore API tests to run only on K64F, these tests check the KVStore functionality without actually testing the board's storage,
Thus they should produce the same results for each device they run on.
K64F was selected for no special technical reason but only because of it being available and convenient to use.
2019-01-14 13:06:14 +00:00
heejungPark eaad4d036a Added TARGET_SDT64B, a bootloader file on SDT64B 2019-01-14 13:06:14 +00:00
Yossi Levy 16a4e34d2c The direct_access_devicekey test should not run if there is no component flashiap block device in the target 2019-01-14 13:06:14 +00:00
offirko a1788e929d Added utility function to help locate expected internal flash tdbstore position. (Supporting FILESYSTEM and TDB_EXTERNAL configuration only) 2019-01-14 13:06:14 +00:00
offirko 879d234b72 Updated test to consider tdb_internal non default configuration as well 2019-01-14 13:06:14 +00:00
offirko 7136c78bff Adding low code size tool for direct access to Devicekey. This enables application with code size restrictions to access devicekey directly based on address in internal flash without kvconfig overhead 2019-01-14 13:06:14 +00:00
Stephan Brunner c063eaae28 Fix security bug in DeviceKey 2019-01-14 13:06:14 +00:00
David Saada d85fda724e TDBStore: Perform garbage collection on failed writes
Partial writes may turn storage unusable. GC clears this scenario.
2019-01-14 13:06:14 +00:00
David Saada 69d57c8e8d TDBStore: fix bug in sector blank check for variant sized sectors 2019-01-14 13:06:14 +00:00
Kari Haapalehto 427a395f64 Correcting the error-case trace from mesh-api interfaces 2019-01-14 13:06:14 +00:00
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