Commit Graph

4566 Commits (37ab6ecce2994e11b31c636ee39b76a2545dad8d)

Author SHA1 Message Date
paul-szczepanek-arm fa930586a7 error when there is no handler 2019-01-25 14:29:59 +00:00
paul-szczepanek-arm 5077d6faaf add missing null checks 2019-01-25 14:29:59 +00:00
paul-szczepanek-arm 4aca75aecb fix truncation 2019-01-25 14:29:59 +00:00
offirko 7ae8e94fbf general_block_device test fixed to always erase prior to first program 2019-01-25 14:29:59 +00:00
Christopher Haster 7059d44c57 Extended mount to check all metadata-pairs
The most common issue with using littlefs in mbed-os is when users
change from littlefs->FAT->littlefs (or with MBR or similar). When this
corrupts the superblock, littlefs tries to fall back to the backup
superblock. However, at this point in the time the old superblock may be
very out-of-date and pointing to an incorrect filesystem.

There's no complete solution to a malicious modification of the
filesystem (short of checking all metadata+data, a very expensive
operation), but we can at least expand our validation to all of the
metadata for the filesystem. This at least catches the common issues
with changing between different filesystems.
2019-01-25 14:29:59 +00:00
offirko 57e1b46df4 DirectAccess DeviceKey added support for default storage type 2019-01-25 14:29:59 +00:00
Nic Costa 3b99566226 Remove own_oob and peer_oob flags from Nordic PAL
the own_oob and peer_oob flags were not being set to 1 even though
an OOB pairing request was in progress, which therefore prevented
OOB data from being passed down to the softdevice during a OOB
pairing operation, thus causing the OOB pairing process to fail.
2019-01-25 14:29:59 +00:00
Nic Costa 09bd512da8 Fix parameters provided to oob generator function
The function in the Nordic SDK for generating OOB data,
sd_ble_gap_lesc_oob_data_get, requires local LE Secure Connection
P256 Public Keys in {X,Y} format, but was being supplied with
the local secret key.  This caused the generated OOB data to
fail to correspond to the Public Keys, which caused a mismatch
during the OOB pairing phase of the OOB confirmation value by
a remote peer when attempting to verify the OOB data against
the Public Keys, ultimately causing the OOB pairing request to
fail with a Confirm Value Failed (0x04) error.
2019-01-25 14:29:59 +00:00
Nic Costa c5edbe05b0 Fix race condition when generating OOB data
The GenericSecurityManager tracks the most recent OOB data generated
by the PAL and the PAL function to generate OOB data is expected to
be asynchronous such that the OOB data is returned via a callback.

There was a race condition on the security manager's oob data variable
because it was cleared (set to all zeros) after calling PAL generate.
The expectation was that the clear operation would occur before the
callback executed, but this is proving to not be the case.  Instead,
the callback is being executed as if it were syncronous with PAL
generate, then PAL generate returns and the oob data is cleared,
thereby losing the generated oob data that was set in the callback.

To fix the issue, clear the oob data variables before calling into
the PAL.
2019-01-25 14:29:59 +00:00
Naveen Kaje 985e1d311d thread_mle_message_handler: fix build warning
Fix the following build warning found when building with

ARMC6 toolchain for NRF52_DK with mbed cli version 1.8.3

[Warning] thread_mle_message_handler.c@762,0:  #188-D: enumerated type mixed with another type
[Warning] thread_mle_message_handler.c@834,0:  #188-D: enumerated type mixed with another type
2019-01-25 14:29:59 +00:00
Guy Wild 9198f937b2 Update iBeacon.h
Technical author review
2019-01-25 14:29:59 +00:00
offirko b1106ff859 Review updates 2019-01-25 14:29:59 +00:00
offirko 64eff0a17b Minor Doxygen fixes for BufferedBlockDevice and iBeacon 2019-01-25 14:29:59 +00:00
Fahim Alavi 19a88e0ddc Set target C030-R412M in mbed 2019-01-25 14:29:59 +00:00
Terence Zhang 7cd0ccad5d Initial version for Quectel M26 GSM/GPRS Module. 2019-01-25 14:29:59 +00:00
Alexander Zilberkant 608c79a207 Remove TARGET prefix from the TARGET_BYPASS_NVSTORE_CHECK and leave it as BYPASS_NVSTORE_CHECK 2019-01-25 14:29:59 +00:00
Yossi Levy f0d828ce13 Moving DirectAccessDevicekey.h and DirectAccessDevicekey.cpp to direct_access_devicekey sub folder For TFM support 2019-01-25 14:29:59 +00:00
Yossi Levy 8eb1c01d51 Moving KVStore to include sub folder For TFM support 2019-01-25 14:29:59 +00:00
Yossi Levy f306233d1e Removing the dependency of TDBStore in SystemStorage.h and NVStore co-existence checkup if compile for target TFM 2019-01-25 14:29:59 +00:00
Leszek Rusinowicz 582c84a4af Moved nextTimeout variable out of critical section in BLE::callDispatcher. Initialization of Timeout object contains critical section inside constructor. Initialization inside critical section caused assertion failing under "debug" profile. 2019-01-25 14:29:59 +00:00
kegilbert da99f9e955 Add doxygen spellcheck jobs to Travis
Currently tests
    - drivers
    - platform
    - rtos
    - events
    - features/netsocket
2019-01-25 14:29:59 +00:00
David Saada 9fb04a957b Remove unnecessary error prints in FileSystemStore 2019-01-25 14:29:59 +00:00
Mahesh Mahadevan 6be2ef21c4 Add nanostack support for KW41Z
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-01-25 14:29:59 +00:00
Cruz Monrreal a2220f39a9 Merge pull request #9384 from davidsaada/david_mbr_erase_start
MBRBlockDevice: When partitioning, clear the rest of first erase unit
2019-01-15 22:49:56 -06:00
Yossi Levy 70c0745d2d removing output parameter from avoid_conflict_nvstore_tdbstore function. 2019-01-14 13:40:41 +00:00
Yossi Levy e5888feab4 Create runtime error if TDBStore and NVStore are created in internal flash 2019-01-14 13:40:10 +00:00
Jarno Lamsa 1cad77bbd7 Update and cleanup BLE.h doxygen 2019-01-14 13:06:14 +00:00
Simon Butcher 82953a5a42 Parameterise repo used in Mbed TLS importer script
This commit makes the repo used to import new Mbed TLS versions into Mbed OS
a parameter, to allow CI scripts (and any other script or users) to specify
specific repos to use for testing.
2019-01-14 13:06:14 +00:00
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