Commit Graph

21155 Commits (4083c5e1536a74eea2f4633cbf09aeb8d2fd5a14)

Author SHA1 Message Date
Vincent Coubard 4bb0964712 BLE: Set advertising random address when appropriate. 2018-12-11 16:14:47 -06:00
Vincent Coubard 5ffa065d98 BLE: Fix conversion of advertising type
Previously, we were passing the event_properties as defined by the Bluetooth spec which is not what DmAdvConfig expect as the advertising type passed to DmAdvConfig is Cordio tailored (and incomplete).
2018-12-11 16:14:47 -06:00
Vincent Coubard ef0846552c BLE: Revert change in stack setup initialisation.
While good this change breaks some old application that were adding GATT services before the initialisation of BLE.

This patch revert temporarily this change for now
2018-12-11 16:14:47 -06:00
David Saada 56ab748391 Fix a few bugs in TDBStore and KV config 2018-12-11 16:14:47 -06:00
Juho Eskeli 53ed9ba8bb Revert "Merge pull request #8922 from juhoeskeli/wise_1570_mpu_disable"
This reverts commit f82014e1af, reversing
changes made to 6749a8a321.
2018-12-11 16:14:47 -06:00
Qinghao Shi 7e8187b1df fix uninitialized handler pointer in ethernet driver 2018-12-11 16:14:47 -06:00
Janos Follath f0219cb53a Mbed TLS: Fix ECC hardware double initialization
We initialized the ECC hardware before calling
mbedtls_ecp_mul_shortcuts(). This in turn calls
mbedtls_ecp_mul_restartable(), which initializes and frees the hardware
too. This issue has been introduced by recent changes and caused some
accelerators to hang.

We move the initialization after the mbedtle_ecp_mul_shortcuts() calls
to avoid double initialization.
2018-12-11 16:14:47 -06:00
Russ Butler bca9f63c0e Turn off MPU on targets failing OOB
Turn off MPU for the UBLOX_C030 and MCU_M480 and all targets derived
from these. When the MPU is enabled on these platforms they do not
pass the pelion-enablement tests. Once the root cause is determined
and fixed the MPU can be re-enabled for these targets.
2018-12-11 16:14:47 -06:00
Amanda Butler 5d7d8235c7 Edit PortingGuide.md
Edit file for active voice.
2018-12-11 16:14:47 -06:00
Amanda Butler ddf3a13313 Edit CordioHCIDriver.h
Edit file for active voice.
2018-12-11 16:14:47 -06:00
Vincent Coubard 754076d13f Update features/FEATURE_BLE/targets/TARGET_CORDIO/driver/CordioHCIDriver.h
Fix doxygen as suggested by @pan-

Co-Authored-By: donatieng <donatien.garnier@arm.com>
2018-12-11 16:14:47 -06:00
Donatien Garnier 62dd1c1ecb Update Porting Guide with memory pool changes 2018-12-11 16:14:47 -06:00
Donatien Garnier a008e79ccf Cordio: Update CY8C63XX Driver to use default memory pool 2018-12-11 16:14:47 -06:00
Donatien Garnier 00496d3dba Cordio: Update CYW4343X Driver to use default memory pool 2018-12-11 16:14:46 -06:00
Donatien Garnier b0962bbc93 Cordio: Update ODIN-W2 Driver to use default memory pool 2018-12-11 16:14:46 -06:00
Donatien Garnier ed479e5a4e Cordio: Make allocating too much memory for pool a warning, not a fatal assert 2018-12-11 16:14:46 -06:00
Donatien Garnier f994bc323e Cordio Nordic LL: Readjust memory pool requirements for NRF52840 2018-12-11 16:14:46 -06:00
Donatien Garnier 346622bb3f Cordio Nordic LL: Optimize memory for smaller targets 2018-12-11 16:14:46 -06:00
Donatien Garnier 4ece9023a2 Cordio: Split get_buffer_pool_description() in pure virtual + default implementation to avoid allocating two memory pools in a static fashion 2018-12-11 16:14:46 -06:00
Donatien Garnier a7c5523081 Cordio: Assert if memory pool is not exactly the right size 2018-12-11 16:14:46 -06:00
Brian Daniels 7f418f450c Config parameters override macros 2018-12-11 16:14:46 -06:00
Brian Daniels b4f4ac6d2a Adding unit test for macro config 2018-12-11 16:14:46 -06:00
Brian Daniels 5812ae7004 Ensure macros and parameters with the same name are not repeated.
This covers the case when a macro is set with the same name as a
parameter. Previously, the macro would be repeated on the command line,
which causes certain toolchains to break (ex. IAR assembler). Now the
config system will override the parameter's value with the macro's
value.
2018-12-11 16:14:46 -06:00
Oren Cohen ef7df31fd6 Ignore PSA secure targets 2018-12-11 16:14:46 -06:00
Oren Cohen 8ee3b1d74b Prebuilt images 2018-12-11 16:14:46 -06:00
Oren Cohen 5bff3ad9af Prepare postbuild for prebuilt images 2018-12-11 16:14:46 -06:00
Oren Cohen f9b9810c5e Fix PSA-HAL, TRNG, TLS tests 2018-12-11 16:14:46 -06:00
Oren Cohen 412bfcf036 fix for flash iap test 2018-12-11 16:14:46 -06:00
Oren Cohen 2469539721 disable nvstore for sequana_psa 2018-12-11 16:14:46 -06:00
Oren Cohen 709d924750 fix mbedmicro-rtos-mbed tests 2018-12-11 16:14:45 -06:00
Oren Cohen 1efee65a58 Fix initial_sp on psa sequana 2018-12-11 16:14:45 -06:00
Oren Cohen dc71ec4a81 License 2018-12-11 16:14:45 -06:00
Oren Cohen b4a77f6ead Add FUTURE_SEQUANA_PSA target
* Modify linker scripts to be compatible with bootloader and PSA
* Add memory protection
* Modify original post-build step to allow link with PSA binaries
* Config kvstore for ITS on FUTURE_SEQUANA_PSA
* Enable PSA-Crypto on PSoC6 with NVSeed
2018-12-11 16:14:45 -06:00
Oren Cohen 6b87427549 Use entropy injection on any NVseed platform or PSA dual-core/v8 2018-12-11 16:14:45 -06:00
Oren Cohen 6c1d08a503 Basic test can run on single v7's 2018-12-11 16:14:45 -06:00
Oren Cohen 74f5322a1d Fix includes 2018-12-11 16:14:45 -06:00
Alex Volinski f07943d2b1 The inject test can run also on single core CPU's such as K64F 2018-12-11 16:14:45 -06:00
Oren Cohen fee5e42f95 Fix PSA crypto partiotion and tests
* Styling
* Correct error codes on failing connection
* Add panics where needed
* correct skip defines
* Fix psa_spm_init_refence_counter bug
2018-12-11 16:14:45 -06:00
Veijo Pesonen 891d756a1a Reports NSAPI_STATUS_CONNECTING when trying to reconnect 2018-12-11 16:14:45 -06:00
Michal Paszta a10e299bd9 ESP8266 disconnect returns ERROR_NO_CONNECTION 2018-12-11 16:14:45 -06:00
Veijo Pesonen 1108d8d96c Truncates TCP stream and NACKs UDP datagram when sending too much data
ESP8266 maximum packet size when sending is 2048 bytes.
2018-12-11 16:14:45 -06:00
Veijo Pesonen 54136e72dc Fixes return value check when calling ATCmdParser::read() 2018-12-11 16:14:45 -06:00
Veijo Pesonen ca7fef2da0 Dropping duplicate "using namespace mbed;" 2018-12-11 16:14:45 -06:00
Veijo Pesonen 7d878f4d88 Truncates data to be send to modem to 2048 bytes 2018-12-11 16:14:45 -06:00
Veijo Pesonen 63c219a1c3 Drops std:: because string.h is included 2018-12-11 16:14:45 -06:00
itayzafrir df1d36a0aa Skip Mbed Crypto tests when when Mbed Crypto is OFF 2018-12-11 16:14:44 -06:00
Oren Cohen 132f00ee12 Test modifications
* Add support for entropy injection
* Move psa_crypto_init & mbedtls_psa_crypto_free to setup & teardown handlers
* Skip test_crypto_asymmetric_encrypt_decrypt if RSA generation is not supported
2018-12-11 16:14:44 -06:00
itayzafrir 447cd74aa2 Add license 2018-12-11 16:14:44 -06:00
itayzafrir 5ceeb6f69a Add mbed-crypto key derivation test 2018-12-11 16:14:44 -06:00
itayzafrir 4d55d53581 Add mbed-crypto asymmetric sign verify test 2018-12-11 16:14:44 -06:00