Commit Graph

7041 Commits (e7cd244d11492e0ea6f128d7c5383ec46f45634c)

Author SHA1 Message Date
Martin Kojtal 663492a24f
Merge pull request #13205 from kjbracey-arm/lwipnonblock
LWIPStack: set sockets non-blocking
2020-07-01 12:29:22 +02:00
Martin Kojtal 26b6ca67ff
Merge pull request #13199 from jamesbeyond/test_fix
TEST: Update kvstore tests with shorter timeout
2020-07-01 12:18:12 +02:00
Martin Kojtal ab84dcde03
Merge pull request #13198 from kyle-cypress/pr/whd-1.91.2
Cypress: Update WHD to version 1.91.2
2020-07-01 12:01:51 +02:00
Martin Kojtal 60c94ebd3c
Merge pull request #13191 from dgreen-arm/fix-ordering-in-adjust_config.sh
Fix ordering in adjust config.sh
2020-07-01 12:00:41 +02:00
Martin Kojtal 23a84dd396
Merge pull request #13180 from esajaa/master
Update mbed-coap to version 5.1.6
2020-07-01 11:43:04 +02:00
Martin Kojtal 9ad4aa5334
Merge pull request #13152 from debdeep-arm/add-wisun-interface-api
Add Wi-SUN Interface APIs
2020-07-01 10:25:56 +02:00
Kevin Bracey c2c2b19ecf Turn off LWIP_SO_RCVTIMEO
We no longer use the receive timeout option in lwIP, so disable it to
save a small amount of ROM+RAM.
2020-06-30 11:48:13 +03:00
Kevin Bracey 134abf8e1f LWIPStack: set sockets non-blocking
When sockets were opened, they were not set non-blocking, but only had
their timeout set to 1ms.

TCP sockets were set to non-blocking on connect or accept, but UDP
sockets were left blocking with 1ms timeout.

This led to unnecessary delays when checking for data from an empty UDP
socket.

Change sockets to be non-blocking on open instead of setting the
timeout. As TCP sockets were already non-blocking, the necessary event
handling is already in place, and no other changes are required.
2020-06-30 11:34:39 +03:00
Qinghao Shi e88015e53e TEST: Update kvstore tests with shorter timeout 2020-06-27 20:12:58 +01:00
Kyle Kearney c7a6a8f649 WHD: Fix incorrect security type mapping 2020-06-26 12:22:10 -07:00
Darryl Green a3af4305bc Ensure that MBEDTLS_USE_PSA_CRYPTO is only defined when it should be
MBEDTLS_USE_PSA_CRYPTO should only be defined in Mbed OS when the
appropriate Mbed OS flags are set.
2020-06-25 14:24:25 +01:00
Darryl Green 077f4c3d46 Move code additions to end of adjust_config.sh
The config.py script that adjusts config.h in Mbed TLS doesn't
handle having configurations being defined in it multiple times
very well. As Mbed OS needs to have certain configurations settings
based on what features are set, these code additions to config.h
are moved to being added after the rest of the configuration is
adjusted.
2020-06-25 14:16:26 +01:00
Esa Jaaskela c9748a8c8a Update mbed-coap to version 5.1.6 2020-06-24 09:19:45 +03:00
Jaeden Amero e3cfee4b3d psa: Remove not needed TF-M ITS KVStore adapter
Targets that use Mbed for their PSA implementation
(TARGET_MBED_PSA_SRV), rather than TF-M, do not need any adapters to
connect TF-M and KVStore. Remove the unnecessary file its_tfm_impl.cpp.
2020-06-23 13:22:29 +01:00
Martin Kojtal 15b7fe404e
Merge pull request #13142 from rajkan01/fix_emac_chrono_warning
EMAC: Fix Chrono compliation warnings
2020-06-19 10:06:58 +02:00
Martin Kojtal 32a032bbf0
Merge pull request #13149 from kivaisan/cellular_alt1250_save_rat
Cellular: ALT1250: Store RAT to permament memory
2020-06-18 22:24:24 +02:00
Martin Kojtal 3e42991289
Merge pull request #13046 from hugueskamba/hk_use_chrono
Use std::chrono based functions
2020-06-18 22:16:00 +02:00
Debdeep Saha ef385619d4 [master] Added Wi-SUN Interface APIs
Implemented
-info_get API for Wi-SUN router to get RPL information.
-info_get API for Wi-SUN BR to get RPL information.
-routing_table_get API for Wi-SUN BR.
2020-06-18 18:01:49 +05:30
Rajkumar Kanagaraj 31bc95a742 Fix astyle format issue 2020-06-18 12:40:44 +01:00
Rajkumar Kanagaraj 28e44ac6f8 Fix compilation warnings by using the Chrono based time argument in EventQueue call_every() API call. 2020-06-18 12:30:11 +01:00
Jaeden Amero 4961d4a52d psa: Configure Mbed TLS to use PSA as needed
Configure Mbed TLS to automatically enable PSA as needed. When Mbed OS
is configured to use PSA, configure Mbed TLS to use PSA. This prevents
leaking of the "how to make Mbed TLS use PSA" knowledge up into
targets.json, and thus makes porting simpler. There is now one place
where "how to make TLS use PSA" exists rather than repeated throughout
targets.json for each target that can't inherit from PSA_Target.
2020-06-18 12:18:12 +01:00
Jaeden Amero 0961f312c6 Make PSA util compatible with Mbed Crypto 3.0.1
Mbed Crypto 3.0.1 ships with TF-M. To make Mbed TLS 2.22.0 compatible
with Mbed Crypto 3.0.1, changes are needed in psa_util.h (which
abstracts some portions of the PSA Crypto API for use with TLS) to deal
with new ECC curve define changes.

Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2020-06-18 12:16:25 +01:00
Jaeden Amero 908c33bac7 psa: Add stubbed PSA client implementation
Add a stubbed PSA Client API implementation for application
compatibility. The interface is non-functional, but provides sane error
codes.
2020-06-18 12:16:23 +01:00
Devaraj Ranganna 76e911c5ef psa: Replace Mbed PSA with TF-M
Add TF-M to Mbed OS, replacing the previous PSA implementation for
TF-M-capable targets. This commit adds files imported from TF-M, without
modification. The version of TF-M imported can be found in
`features/FEATURE_PSA/TARGET_TFM/VERSION.txt`.

These changes switch to TF-M as the sole PSA implementation for v8-M and
dual core targets, with TF-M running on the secure side and Mbed OS
running on the non-secure side. Single core v7-M targets will continue
to have PSA implemented via PSA emulation, implemented by Mbed OS.

Move or remove many PSA-implementing files, as PSA will be provided by
TF-M on non-single-v7-M targets. Delete any files that are not relevant
for PSA emulation mode.
 - Remove imported TF-M SPM
 - Remove Mbed SPM and tests
 - Remove Mbed-implemented PSA services and tests
 - Remove PSA_SRV_IMPL, PSA_SRV_IPC, PSA_SRV_EMUL and NSPE.
 - Replace PSA_SRV_EMUL and PSA_SRV_IMPL with MBED_PSA_SRV
 - Remove any files autogenerated by
   "tools/psa/generate_partition_code.py", which no longer exists.

Add new feature `PSA` to support PSA in Mbed OS.

Move the Mbed OS implementation of PSA services for v7-M targets (which
employ PSA emulation, and don't yet use TF-M) to
features/FEATURE_PSA/TARGET_MBED_PSA_SRV. Update the `requires`
attribute in TESTS/configs/baremetal.json to avoid breaking baremetal
testing builds.

Update .astyleignore to match new directory structure

Update Mbed TLS importer to place files into FEATURE_PSA

Create the following generic PSA targets:

* `PSA_Target` (Root level PSA generic target)
* `PSA_V7_M` (Single v7-M PSA generic target)
* `PSA_DUAL_CORE` (Dual-core PSA generic target)
* `PSA_V8_M` (v8-M PSA generic target)

Flatten MUSCA_NS and private MUSCA targets into public MUSCA targets.

Move mcuboot.bin to flat location (removing prebuilt folder)

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
2020-06-18 12:16:20 +01:00
Jaeden Amero f4b676b4ee psa: Fix style in psa_hrng.c 2020-06-18 12:16:12 +01:00
Martin Kojtal 29aa6d8ea5
Merge pull request #13115 from NXPmicro/MXRT1050_USB
MIMXRT1050_EVK: Add USB support
2020-06-18 09:56:47 +02:00
Martin Kojtal 0bdc712167
Merge pull request #12998 from sbutcher-arm/fix-adjust-config
Fix Mbed TLS `adjust-config.sh` script
2020-06-18 09:43:59 +02:00
Martin Kojtal 0c77249067
Merge pull request #13119 from LDong-Arm/nanostack-target-dir
Move target implementations of NanostackRfPhy into nanostack-interface
2020-06-18 09:37:22 +02:00
Kimmo Vaisanen a8fd02adfb Cellular: ALT1250: Store RAT to permament memory
When RAT is changed it is now saved to modem's permanent memory. This avoid unnecessary
changing of it on every reboot.
2020-06-18 09:44:29 +03:00
Mahesh Mahadevan 9e8998a91c KW41Z: Avoid using TARGET_NXP macro
Having Freescale and NXP macro causes compile from both
TARGET_Freescale and TARGET_NXP HAL folders.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2020-06-17 11:04:35 -05:00
Hugues Kamba a3f4cf212d Use std::chrono based functions
The chrono based functions improve readability. Using them also removes
warnings related to usage of deprecated warnings.
2020-06-17 14:52:50 +01:00
Martin Kojtal b1629b7e59
Merge pull request #13098 from AriParkkila/cell-free-stack
Cellular: Fix CellularContext destructor memory leak
2020-06-17 13:24:17 +02:00
Martin Kojtal 95a3a304af
Merge pull request #13009 from trowbridgec/add-telit-me310-driver
Add support for the Telit ME310 module
2020-06-17 11:35:58 +02:00
Lingkai Dong 8a31b6a7ca Apply astyle suggestions from the CI 2020-06-16 15:29:48 +01:00
Mika Leppänen ee5f077b0c Added Wi-SUN statistics interface
Added network and MAC statistics to Wi-SUN interface.
2020-06-16 16:08:07 +03:00
Martin Kojtal 8f87735152
Merge pull request #13040 from paul-szczepanek-arm/cordio-tx-power
BLE: Add tx power control to cordio HCI driver
2020-06-16 13:59:50 +02:00
Martin Kojtal 3333f4185e
Merge pull request #12747 from jeromecoutant/PR_MBEDTLS
STM32 MBEDTLS support with HW crypto
2020-06-16 13:55:50 +02:00
Martin Kojtal eb33549fbe
Merge pull request #12900 from mikaleppanen/ns_kv_store_
Added kv store adaptation to nanostack file interface
2020-06-16 13:55:26 +02:00
Martin Kojtal ff024d2fa7
Merge pull request #12898 from mikaleppanen/new_wisun_conf_param_
Add new configuration parameters to Wi-SUN network interface and Border Router class
2020-06-16 13:46:54 +02:00
Martin Kojtal 0614e92c5b
Merge pull request #13083 from jeromecoutant/PR_H7_CUBE170
STM32H7 update drivers version to CUBE V1.7.0
2020-06-16 13:45:42 +02:00
Lingkai Dong 7149877c5d Move target implementations of NanostackRfPhy into the nanostack-interface library
Fixes: #13109

Prior to this commit, target implementations of NanostackRfPhy
are not guarded by any mbed_lib.json - they are always visible
to the build even if the interface itself is not enabled
(e.g. when using the "requires" attribute of mbed_app.json).
It causes build errors.

To resolve this, this commit move target code into
nanostack-interface, similar to what we do with BLE targets.
2020-06-15 16:45:13 +01:00
Rajkumar Kanagaraj face8ec9ab Remove unused variable to fix compliation warning 2020-06-15 14:00:42 +01:00
Anna Bridge a870fcface
Merge pull request #13001 from jeromecoutant/PR_BAREMETAL_SUPPORT_STEP2
STM32 baremetal support step2 (L1/L4/WB)
2020-06-12 14:44:14 +01:00
Chris Trowbridge 125f169342 Add support for the Telit ME310 module (LwIP/PPP and AT command-based IP stacks) 2020-06-12 09:21:42 -04:00
jeromecoutant e3862d3430 STM32 MBEDTLS_ALT use singleton 2020-06-12 10:23:50 +02:00
Ari Parkkila dd73a93887 Cellular: Fix CellularContext destructor memory leak 2020-06-10 22:21:48 -07:00
Paul Szczeanek 559d6afc43 Allow for security db type selection
The selection is now based on the lib json (which allows you to disable filesystem db or kvstore db) and the call to SecurityManager::init. It will always fall back on memory db if no other db is available.
2020-06-10 16:04:57 +01:00
Paul Szczeanek beb56320eb Add a new implementation of security db for KVStore
This works similar to filesystem db but uses the KVStore which it assumes is initialised. This is checked by open_db. On initialisation it either reads the present db or writes a new db into all entries thus guaranteeing that after the initialisation we will not run out of space for the keys and no extra error handling is needed.
2020-06-10 16:03:16 +01:00
Paul Szczeanek f661ce0c81 Relax the integrity requirement to allow private functions to call themselves 2020-06-10 16:03:16 +01:00
Paul Szczeanek 07bcbeb8f1 Make kvstore and fs store configured in the lib json 2020-06-10 16:03:16 +01:00
Paul Szczeanek fe98309063 mention tx power in the readme 2020-06-10 15:49:55 +01:00
Paul Szczeanek 056f46d629 add tx power to cordio hci driver 2020-06-10 15:49:55 +01:00
Martin Kojtal f858000252
Merge pull request #13039 from pan-/fix-legacy-payload-update
BLE: remove limitation in the Cordio to update adv payload
2020-06-10 12:09:54 +02:00
Martin Kojtal 2466411b83
Merge pull request #13037 from paul-szczepanek-arm/ble-sm-fix
BLE: Fix privacy and signing handling in Security Manager
2020-06-10 12:09:32 +02:00
Martin Kojtal 6a431ffc58
Merge pull request #13055 from paul-szczepanek-arm/cordio-rf-tester
BLE: RF tester commands (and Cordio unhandled command complete)
2020-06-10 12:07:30 +02:00
Martin Kojtal d971d4e021
Merge pull request #13060 from paul-szczepanek-arm/direct-advertising
BLE: fix direct advertising on Cordio
2020-06-10 12:06:17 +02:00
Martin Kojtal 12910eabbe
Merge pull request #13069 from AriParkkila/fix-unittest-for-CellularNetwork
Cellular: Fix unittest for CellularNetwork
2020-06-10 12:02:26 +02:00
Arto Kinnunen fc465e7581 Merge commit '93c77e83625be3989aecb9b3c2b7e930b34eb529'
* commit '93c77e83625be3989aecb9b3c2b7e930b34eb529':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from cc03296c27..b3fe5744d1
2020-06-08 15:41:20 +03:00
jeromecoutant 561f8d48bf STM32H7 STM32Cube FW V1.5.0 => V1.7.0 2020-06-08 14:33:10 +02:00
jeromecoutant d0e572225c STM32 MBEDTLS: create mbedtls_device.h for all L562 targets 2020-06-08 13:54:14 +02:00
jeromecoutant 073bbf7b73 STM32 MBEDTLS: create mbedtls_device.h for all WB55 targets 2020-06-08 13:54:13 +02:00
jeromecoutant 904ced2150 STM32 MBEDTLS: create mbedtls_device.h for all L443 and L486 targets 2020-06-08 13:54:06 +02:00
jeromecoutant f71b09173a STM32 MBEDTLS: create mbedtls_device.h for all F756 targets 2020-06-08 13:51:35 +02:00
jeromecoutant 46566f492e STM32 MBEDTLS: create mbedtls_device.h for all F437 and F439 targets 2020-06-08 13:51:34 +02:00
jeromecoutant 3f42dfd47f STM32 MBEDTLS: AES/CCM/GCM/MD5/SHA1/SHA256 ALT implementation 2020-06-08 13:51:34 +02:00
jeromecoutant f62e3842ba STM32 MBEDTLS: common STM32 API for ST CRYP IP 2020-06-08 13:51:33 +02:00
jeromecoutant e6f4629ba6 STM32 MBEDTLS: common STM32 API for ST HASH IP 2020-06-08 13:51:33 +02:00
jeromecoutant aa09e7d409 STM32 MBEDTLS: Keep specific STM32L4 implementation 2020-06-08 13:51:32 +02:00
jeromecoutant 47aba83c2c STM32 MBEDTLS: Remove specific STM32F4 & STM32F7 implementation
All families (except STM32L4) will be aligned
2020-06-08 13:51:32 +02:00
jeromecoutant 28f8307afa STM32WB baremetal support
move BLE files to FEATURE_BLE
2020-06-08 12:06:01 +02:00
Martin Kojtal b21d5e8125
Merge pull request #13042 from hugueskamba/hk_override_warning_fix
Ensure all overridden virtual functions are marked with `override`
2020-06-05 15:49:06 +02:00
Martin Kojtal 49c1d947fa
Merge pull request #13044 from hugueskamba/hk_nrf_implicit_declaration
NRF: fix implicit declarations
2020-06-05 14:44:31 +02:00
Martin Kojtal b076ea5364
Merge pull request #13019 from rajkan01/mbrblockdevice_dox_update
Documentation update - MBRBlockDevice::partition type parameter
2020-06-05 13:10:11 +02:00
Martin Kojtal c7cf9a9aed
Merge pull request #13035 from pan-/fix-ble-service-data-addition
Fix capacity check when service data are added to BLE advertising payload
2020-06-05 10:49:43 +02:00
Martin Kojtal 35a0e5d4f9
Merge pull request #13041 from hugueskamba/hk_remove_cordio_warnings
Cordio: put parentheses to correct order of precedence in ternary expressions
2020-06-05 10:47:36 +02:00
Martin Kojtal ecf988731c
Merge pull request #13048 from mikter/ws_certificate_set_change
Allowed to set Wi-SUN certificates in DISCONNECTED state
2020-06-05 09:58:19 +02:00
Ari Parkkila 985e72f65d Cellular: Fix unittest for CellularNetwork 2020-06-05 00:45:49 -07:00
Martin Kojtal b3e8e8ad8a
Merge pull request #13013 from AriParkkila/cell-creg
Cellular: Fix packet data registration after CREG
2020-06-04 15:22:57 +02:00
Martin Kojtal 096b3e80ec
Merge pull request #12991 from OpenNuvoton/nuvoton_emac_bus_err
Nuvoton: Support EMAC bus reset as while bus err
2020-06-04 15:21:40 +02:00
Martin Kojtal 3a8dc2b50a
Merge pull request #13052 from paul-szczepanek-arm/connection-params-fix
BLE: fix conn params update
2020-06-04 15:16:21 +02:00
Martin Kojtal 2f5c98d545
Merge pull request #12973 from kivaisan/ALT1250_enable_tac_info_for_reg_status_mbed_master
Cellular: Enable tac info for ALT1250
2020-06-04 14:34:24 +02:00
Paul Szczeanek a882d2d35f mention the rf tester commands in the readme 2020-06-03 18:46:20 +01:00
Paul Szczeanek 9d54c56562 reinitialise identity and signing when bond table reset 2020-06-03 17:36:06 +01:00
Paul Szczeanek 110b190b38 fix privacy initialisation and give access to local identity
Initialises identity addres when privacy is enabled. Stores the identity. Retrieves local identity if previously stored.
2020-06-03 17:35:23 +01:00
Paul Szczeanek 73b4bebee0 add connection addresses to whitelist 2020-06-03 17:30:21 +01:00
Paul Szczeanek bfdbcc7b4a add accessor for local irk 2020-06-03 17:29:51 +01:00
Paul Szczeanek fff0247ae5 fix infinite recursive call 2020-06-03 17:29:20 +01:00
Paul Szczeanek 05f7685a79 store local csrk and identity in the security db 2020-06-03 17:27:26 +01:00
Paul Szczeanek 94a6cac838 expose identity address used by controller 2020-06-03 17:24:11 +01:00
Paul Szczeanek d6a5bd2825 make number of db entries configurable 2020-06-03 17:07:47 +01:00
Paul Szczeanek dd615f7943 Add direct advertising support.
To start direct connectable advertising on the cordio stack, the programmer should call the function DmConnAccept instead of the function DmAdvStart .
This functions expect the target address and address type as parameter, which are passed to the controller when the programmer sets the advertising parameters and not known when advertising_enable is called.
Therefore, this information should be kept in memory when advertising parameters are set and retrieved when advertising is enable to choose the right call to start (or stop) advertising.
Timeout of direct advertising is also handled in an uncommon way, a connection timeout is received. Similarly, DmConnClose should be called to stop connectable direct advertising.

The state is kept in an array of direct_adv_cb_t. Each items contains a peer address, the peer address type, the connection handle and the advertising handle as well as a state which indicate if the advertising is running, pending or not used.
When advertising parameters are set, the state is updated to match the target address or disable direct advertising management for the advertising set being configured.
When advertising is enabled, the pal dispatch the operation to the right calls (DmAdvStart/DmConnAccept or DmAdvStop/DmConnClose).
When an advertising timeout happen or a connection is made, the pal cleans any direct advertising state of this advertising set
2020-06-03 16:25:23 +01:00
Paul Szczeanek fbe93123a5 Add rf tester commands to cordio hci driver. This adds commands that allow you to send the HCI commands HCI_LE_Receiver_Test, HCI_LE_Transmitter_Test and HCI_LE_Test_End. The results of the test are obtained by the command complete command for HCI_LE_Test_End and passed to the user by the callback register in the test start calls. 2020-06-03 15:21:32 +01:00
Paul Szczeanek 51d1a30b8e Route unhandled cmd cmpl events to mbed. Cordio ignores command complete events for all commands that it doesn't have a specific handler for. This adds a catch-all handler that allows the user application to handle any command complete that isn't already handled by the stack. This involves adding a new type of event and routing the event through the stack to the device where it's forwarded to the existing event handling in mbed-os. 2020-06-03 15:21:05 +01:00
Paul Szczeanek 0affb73747 Fix bounds check using a define instead of table size. The bounds check was incorrectly picking a define that wasn't even the last in the table. It now uses the size of the table. 2020-06-03 15:19:39 +01:00
Paul Szczeanek 8285ecdefb connection update handled elsewhere 2020-06-02 10:01:10 +01:00
Paul Szczeanek 157c54bfc7 fix inverted meaning of _user_manage_connection_parameter_requests 2020-06-02 09:39:07 +01:00
Hugues Kamba 1beb8d3810 Ensure all overridden virtual functions are marked with `override`
This also removes warnings.
2020-06-01 10:39:42 +01:00
Hugues Kamba 992133be50 NRF: fix implicit declarations
As a result removes warnings
2020-06-01 10:26:51 +01:00
Mika Tervonen ad6ed89e10 Allowed to set Wi-SUN certificates in DISCONNECTED state
Before certificates were able to set only once.
Now after disconnect those can be set Again

Also those can be set when stack is active
2020-06-01 11:47:12 +03:00
Hugues Kamba 4d939ccdbe Cordio: put parentheses to correct order of precedence in ternary expressions
Also remove extraneous parentheses in comparison.
2020-05-29 19:11:25 +01:00
Vincent Coubard 2bbc8a0bae BLE: remove limitation in the Cordio to update adv payload
Nothing in the Bluetooth standard prevents update of advertising payload while advertising is active.
This limitation wasn't present in previous version of the stack and is not present for extended advertising.
2020-05-29 17:52:05 +01:00
Vincent Coubard 23e39a1dbd Fix capacity check when service data are added to BLE advertising payload. 2020-05-29 15:06:38 +01:00
Darryl Green a62b3591d9 Fix astyle issues
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-05-29 13:19:12 +01:00
Darryl Green fcf60ec683 Move frameworks/TARGET_PSA to TARGET_EXPERIMENTAL_API 2020-05-29 13:19:12 +01:00
Darryl Green 0e07dff0a4 Move TARGET_MBED_PSA_SRV to FEATURE_EXPERIMENTAL_API
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-05-29 13:19:12 +01:00
Darryl Green 5fa5176727 Move mbedtls/platform/TARGET_PSA to FEATURE_EXPERIMENTAL_API/TARGET_PSA
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-05-29 13:19:12 +01:00
Darryl Green ccdb76d34f Move components/TARGET_PSA under FEATURE_EXPERIMENTAL_API
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-05-29 13:19:11 +01:00
Darryl Green 10e9946b16 Move FEATURE_PSA under FEATURE_EXPERIMENTAL_API
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-05-29 13:19:11 +01:00
Darryl Green 7aadee9ab7 Add experimental feature folder
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-05-29 13:19:11 +01:00
Jaeden Amero 8b5a2ff2d9 psa: Fix style in psa_hrng.c 2020-05-29 13:19:11 +01:00
Jaeden Amero 5d6ec71171 crypto: Move PSA Crypto headers to MBED_PSA_SRV
TF-M provides its own PSA headers for TF-M targets. Single v7-M targets
need to get PSA crypto from Mbed Crypto.

Note that we don't yet move crypto_struct.h to its new location. This is
to avoid breaking v8-M targets for the time being. When TF-M provides
the PSA implementation on v8-M, we will add crypto_struct.h to the
correct place.

Likewise, none of the PSA-implementing source is moved out of
COMPONENT_PSA_SRV_IMPL yet, as still must not be built for PSA NS
targets. When PSA NS targets switch to using TF-M provided
implementations rather than MBED_PSA_SRV, we can take the source out of
COMPONENT_PSA_SRV_IMPL.

Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
2020-05-29 13:19:11 +01:00
Rajkumar Kanagaraj 7229e64381 Documentation update about MBRBlockDevice::partition type parameter 2020-05-28 14:04:12 +01:00
Ari Parkkila de765a41f0 Cellular: Fix packet data registration after CREG 2020-05-25 11:17:59 +03:00
Mika Leppänen d414f742f5 Added Wi-SUN Border Router class 2020-05-20 09:32:13 +03:00
Mika Leppänen cfda4a4018 Added new configuration parameters to Wi-SUN interface 2020-05-20 09:32:13 +03:00
Mika Leppänen 06daaf48ec Added kv store adaptation to nanostack file interface 2020-05-20 09:24:44 +03:00
Simon Butcher 5b0316832d Fix Mbed TLS adjust-config.sh script
The Mbed TLS import script is quite fragile, and depends on certain lines to be
present in the files it adjusts to be able to do the modifications it needs to
to allow Mbed TLS to build within Mbed OS.

Thsi commit changes the `adjust-config.sh` script to look for a the end of the
config.h file, defined as "#endif /* MBEDTLS_CONFIG_H */" rather than the
include line for "check_config.h".

That's because the inclusion of "check_config.h" is being removed upstream in
Mbed TLS to fix another issue.
2020-05-19 23:19:38 +01:00
cyliangtw cda40b2788 M487, NUC472 EMAC code fulfill astyle 2020-05-19 14:32:12 +08:00
cyliangtw 68e9f4a8ed NUC472 support EMAC bus reset as while bus error 2020-05-18 21:00:11 +08:00
cyliangtw 16dacb73c0 Refine M487 EMAC bus reset 2020-05-18 16:11:44 +08:00
cyliangtw c937fdaacb Resolve M487 EMAC bus error by bus reset 2020-05-18 15:45:50 +08:00
Martin Kojtal 6cbe22dc59
Merge pull request #12623 from toyowata/baremetal_lpc1114
LPC1114: baremetal profile support
2020-05-15 13:17:52 +02:00
Martin Kojtal e48a659f81
Merge pull request #12903 from kjbracey-arm/chrono_ns
Nanostack HAL: Convert to Chrono
2020-05-15 08:21:41 +02:00
Martin Kojtal 37ee008b90
Merge pull request #12961 from MarceloSalazar/remove_nrf51
Remove nRF51 targets
2020-05-15 08:08:26 +02:00
Kimmo Vaisanen f22325d08d Cellular: Enable tac info for ALT1250
ALT1250 supports tac info in registration status, so this commit enables the feature.
2020-05-14 15:19:03 +03:00
Martin Kojtal b083389b26
Merge pull request #12432 from kjbracey-arm/chrono_nfc
NFC: Convert to Chrono
2020-05-13 19:42:59 +02:00
Martin Kojtal 170931e936
Merge pull request #12430 from kjbracey-arm/chrono_cellular
Cellular: Convert to Chrono
2020-05-13 19:42:19 +02:00
Martin Kojtal f4015c7eaa
Merge pull request #12429 from kjbracey-arm/chrono_dtls
DTLSSocketWrapper: Convert to Chrono
2020-05-13 19:29:10 +02:00
Martin Kojtal 5c71ad8f6a
Merge pull request #12428 from kjbracey-arm/chrono_dns
nsapi_dns: Convert to Chrono
2020-05-13 19:28:35 +02:00
Martin Kojtal 23b443bc34
Merge pull request #12956 from LDong-Arm/cordio_nrf_idle_hook_removal
NRFCordioHCIDriver: remove idle_hook (and RTOS dependency)
2020-05-13 16:21:24 +02:00
Marcelo Salazar ccd95f1e14 Remove nRF51 targets
The following public nRF51 targets are being removed:

- NRF51822
- NRF51_DK
- NRF51_MICROBIT
2020-05-13 10:36:50 +01:00
Kevin Bracey c037d50e1b Nanostack HAL: Convert to Chrono 2020-05-13 12:30:32 +03:00
Martin Kojtal 296961de02
Merge pull request #12836 from felipeLeast/wisun_bz
Wi-SUN added regulatory domain Brazil
2020-05-12 17:14:36 +02:00
Martin Kojtal 469d6566dd
Merge pull request #12914 from juhhei01/master
Add possibility to configure Mesh MAC neighbourtable size.
2020-05-12 14:29:11 +02:00
Martin Kojtal 15ade20b4d
Merge pull request #12909 from kyle-cypress/pr/cypress-misc-fixes
Cypress: Misc target updates
2020-05-12 14:27:34 +02:00
Martin Kojtal 96c0e9cd5c
Merge pull request #12875 from OpenNuvoton/nuvoton_kvstore_devicekey_buffer_overrun
KVStore: Fix buffer overrun when device key size doesn't match
2020-05-12 14:13:40 +02:00
Martin Kojtal d5c9220bdc
Merge pull request #12808 from OpenNuvoton/nuvoton_kvstore_flashiap
KVStore: Remove incorrect check with non-default configuration of FLASHIAP
2020-05-12 14:11:37 +02:00
toyowata 5a57670121 [TESTS] Add memory check for RAM constraint device 2020-05-12 10:07:34 +09:00
toyowata d6779bb930 Support bare-metal build for NXP LPC1114 2020-05-12 10:07:33 +09:00
Lingkai Dong 3b48d3f198 NRFCordioHCIDriver: remove idle_hook
In PR #8876 when we added Cordio support for nRF52* targets,
we attempted to use an RTOS idle hook to workaround sleep
latency issues. However, the condition to bypass sleeps
never gets satisfied, and BLE nRF52* targets have generally
worked fine over the past year.

This commit removes the hook to avoid dependency on RTOS,
enabling BLE on bare metal.
2020-05-11 17:34:07 +01:00
Kevin Bracey 355b45ade1 Cellular: Convert to Chrono
Note that documentation for random_max_start_delay config setting has
been changed to indicate that the setting is in seconds, and always has
been. No functional change.
2020-05-11 14:18:04 +03:00
Kevin Bracey e77c61bd3a DTLSSocketWrapper: Convert to Chrono 2020-05-11 12:01:38 +03:00
Marcelo Salazar 4083469d09 Remove Ublox targets 2020-05-06 16:39:29 +01:00
Veijo Pesonen 62343a2746 littlefsv2: won't build block devices used for testing 2020-05-05 14:24:44 +03:00
Veijo Pesonen 62e04f71c3 littlefsv2: solve astyle issues
Adds littlefs-directory under littlefsv2 to .astyleignore as it's an
external component brought to Mbed OS. Issues with the adaption layer
fixed.
2020-05-05 14:24:44 +03:00
Veijo Pesonen 3dfbe139f2 LittleFSv2: Bring in v2.2 2020-05-05 14:24:44 +03:00
Veijo Pesonen 0278e38896 ExhaustibleBlockDevice: revert commit 10481f2
Reverts commit 10481f2f7e partially.
Changes made to ExhaustibleBlockDevice hides simulated flash degradation
which is the assumed behavior. Converted back to original behavior.
2020-05-04 22:21:25 +03:00
Juha Heiskanen 3471c3b8c1 Add possibility to configure Mesh MAC neighbourtable size.
Accepted values are 5-255. MAC neighbour table size is limited to 8-bit number so thats why 255 is max value.
2020-05-04 13:51:01 +03:00
Chun-Chieh Li 405ee472a6 DeviceKey: Fix test code with key size change in generate_root_of_trust() 2020-05-04 09:11:42 +08:00
Chun-Chieh Li bde1f56399 KVStore: Fix buffer overrun when device key size doesn't match
This change fixes buffer overrun when injected device key is 32-byte but read as 16-byte.
2020-05-04 09:11:38 +08:00
Kyle Kearney d058586c48 Remove CYW943012P6EVB_01 target 2020-04-30 11:12:00 -07:00
Martin Kojtal af4c8a94f3
Merge pull request #12757 from dgreen-arm/test-remerge
Update Mbed OS with Mbed Crypto merged into Mbed TLS
2020-04-30 16:06:32 +02:00
Martin Kojtal 930ef84662
Merge pull request #12823 from SeppoTakalo/generate_devicekey
Allow Devicekey::generate_root_of_trust() to define key size.
2020-04-30 15:59:07 +02:00
Martin Kojtal 08a09200a6
Merge pull request #12864 from MarceloSalazar/platform_cleanup3
Remove unsupported targets
2020-04-30 14:56:36 +02:00
Martin Kojtal 6d8d024eba
Merge pull request #12839 from sword-huang/master
Nuvoton: netsocket correction of judgment errors
2020-04-30 14:54:07 +02:00
Kevin Bracey 89f67b2985 NFC: Convert to Chrono 2020-04-30 13:28:29 +03:00
Darryl Green 1a6a8495ef Define mbedtls_ecc_group_to_psa inline for NS world
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-04-30 11:28:26 +01:00
Darryl Green 53260ebd77 Use updated ECC curve macros
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-04-30 11:28:10 +01:00
Darryl Green fc07e5ba93 Update Mbed TLS to latest version
As Mbed Crypto has been remerged into Mbed TLS, remove Mbed Crypto
at the same time.

Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-04-30 11:28:05 +01:00
Darryl Green b91fe62c96 Adjust Mbed TLS importer and config script
Mbed Crypto has been remerged back into Mbed TLS. Update the
Mbed TLS importer script with the relevant parts of the
Mbed Crypto importer.

Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-04-30 11:27:54 +01:00
Kevin Bracey 08fa26bdda nsapi_dns: Convert to Chrono 2020-04-30 13:04:31 +03:00
Marcelo Salazar 0864aa86be Remove NCS36510 target 2020-04-30 09:56:36 +01:00
Marcelo Salazar a7b026bd14 Rename ADV_WISE_1510 target 2020-04-30 09:56:35 +01:00
Marcelo Salazar 92cbd9a734 Rename ADV_WISE_1570 target 2020-04-30 09:56:35 +01:00
MarceloSalazar e24a9f5d95 Remove KW24D target 2020-04-30 09:56:34 +01:00
MarceloSalazar 51c2484c06 Remove LPC1769 target 2020-04-30 09:56:32 +01:00
MarceloSalazar 5dcfe57c41 Remove LPC4088 based targets 2020-04-30 09:56:32 +01:00
Martin Kojtal a9cb876b39
Merge pull request #12737 from Patater/psa-breaking-changes
Remove PSA implementation for v8-M and dual CPU targets
2020-04-30 10:42:24 +02:00
Martin Kojtal 1ddfa59ea7
Merge pull request #12463 from kjbracey-arm/sockstats
Clean up and optimise socket statistics
2020-04-29 22:16:54 +02:00
Martin Kojtal 4f9d21b16a
Merge pull request #12694 from kivaisan/remove_netsocket_icetea_and_tcpserver
Remove netsocket icetea tests and TCPServer
2020-04-29 13:46:44 +02:00
Martin Kojtal 58c0259dd6
Merge pull request #12522 from artokin/network_interface_property_api
Add property API to InternetSocket
2020-04-28 18:10:18 +02:00
Martin Kojtal c904e2240d
Merge pull request #12866 from teetak01/mbed-coap-v5.1.5
Update mbed-coap to version v5.1.5
2020-04-28 13:09:33 +02:00
Martin Kojtal 28ef7535e3
Merge pull request #12730 from LDong-Arm/gap_deprecation_cleanup
BLE Gap deprecation cleanup/rework
2020-04-27 11:46:12 +02:00
Jaeden Amero fcf427ac11 psa: Remove S-mode only code
Remove all PSA S-mode only code, as it is unused. Only PSA S targets
would use the code, and we've removed those targets in a previous
commit.

Ensure all tests for S-mode code we are deleting is also removed, even
if that code would run in NS-mode. Keep any tests that also test our PSA
emulation support (for single v7-M targets).

Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
2020-04-27 09:51:13 +01:00
Jaeden Amero 6b3a9cb4fa psa: Remove v8-M S targets
Remove PSA v8-M S target binaries will be built outside of Mbed OS and
added in as binaries which NS targets consume. Mbed OS no longer
implements PSA for v8-M targets, so there is no reason for it to build
PSA S targets.

Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
2020-04-27 09:51:09 +01:00
Teemu Takaluoma e254ce9975 Update mbed-coap to version 5.1.5
BLOCK2 code-branch was missing handling for duplicate packets. As part of the fix, added also
a call to update the duplicate package data via a new function
sn_coap_protocol_update_duplicate_package_data_all.

The new implementation handles all CoAP messages, not just those with COAP_MSG_TYPE_ACKNOWLEDGEMENT.
2020-04-27 11:11:43 +03:00
Arto Kinnunen f39da5ebaf Remove unnecessary casts from stagger/RTT API 2020-04-27 10:22:25 +03:00
Martin Kojtal ca0161af22
m480_eth: fix alignment
Previous commit was wrong (github does not show tabs properly)
2020-04-24 14:18:55 +01:00
Martin Kojtal 60c58a62a4
nuc472_eth: fix alignment
Previous commit was incorrect (github does not show tabs..)
2020-04-24 14:17:23 +01:00
Martin Kojtal 36dada2e5f
nuc472_eth: fix alignment 2020-04-24 14:16:21 +01:00
Martin Kojtal bc497a1742
m480_eth: Fix styling
remove tabs
2020-04-24 14:14:28 +01:00
Martin Kojtal 906999a61c
Merge pull request #12850 from kyle-cypress/pr/general-filesystem-init
Fix intermittent sync fail in tests-filesystem-general_filesystem
2020-04-24 10:11:59 +02:00
Martin Kojtal 4b5f34a1ea
Merge pull request #12844 from amq/patch-3
Add invalid data case to tdbstore ram init
2020-04-24 10:11:28 +02:00
Antti Yli-Tokola 267d3bc797 Update mbed-coap to version 5.1.4
Add also 4.13 (Request Entity Too Large) responses to duplicate info list.

Add client library configurations for DEFAULT_RESPONSE_TIMEOUT and SN_COAP_DUPLICATION_MAX_TIME_MSGS_STORED.

Increased the default timeouts of DEFAULT_RESPONSE_TIMEOUT and SN_COAP_DUPLICATION_MAX_TIME_MSGS_STORED to 300 seconds.
These two are critical parameters for low-bandwidth high-latency networks. The defaults should be more geared towards such networks that are likely to have issues with transmissions.
The increased defaults can increase the runtime HEAP usage when there is a lot of duplicates or retransmissions.
2020-04-23 13:14:50 +03:00
Arto Kinnunen b081411fb7 Corrections from review meeting
-Rename get_latency_estimate_to_address, use rtt instead of latency
-Update descriptions of added methods
2020-04-22 21:38:12 +03:00
Martin Kojtal 422b194114
Merge pull request #12843 from ithinuel/bare_metal_storage
enable storage tests on baremetal
2020-04-22 16:03:14 +02:00
amq 56d35b188a Add invalid data case to tdbstore ram init 2020-04-22 15:30:48 +02:00
Felipe b0ab86034c ws: added support for brazilian regulatory domain 2020-04-22 09:09:41 -03:00
Martin Kojtal b622a25688
Merge pull request #12810 from MarceloSalazar/platform_cleanup
Remove unsupported targets

Note, commit 21e364e is just a styling fix, no target removal.
2020-04-22 10:58:50 +02:00
Jason Huang 7ef3275b47 Nuvoton: netsocket correction of judgment errors 2020-04-22 07:56:37 +08:00
Kyle Kearney 18af867704 Filesystem test: Move lfs init in test startup
tests-filesystem-general_filesystem declares BlockDevice and FileSystem
pointers as globals. If these are initialized to their respective
default_instance values in the declaration, the LFS init happens during
OS startup when __libc_init_array() is invoked by mbed_toolchain_init().
If the filesystem blockdevice does not currently contain a valid filesystem
(e.g. the chip has just been erased), then LFS will flag this as corruption
and abort the mounting process.
This cleanup process can take long enough (and is running pre-main) that
greentea times out waiting for the device to respond to its sync packet,
and resets the device.
To resolve this, move the initialization into the first test case
(bd_init_fs_reformat) right before it initializes and formats the
blockdevice and filesystem.
2020-04-21 15:13:01 -07:00
Wilfried Chauveau 1005ea28df
enable storage tests on baremetal 2020-04-21 17:53:43 +01:00
Martin Kojtal 6111b8dfcc
Merge pull request #12828 from dustin-crossman/pr/update-cysbsyskit_01
Update CYSBSYSKIT_01
2020-04-21 10:13:38 +02:00
Martin Kojtal f468c9b1fe
Merge pull request #12830 from kivaisan/fix_bg96_offload_dns_query
Cellular: Fix BG96 offloaded DNS query for new API
2020-04-21 09:38:56 +02:00
Jason Huang f3f69b8db7 Correction of judgment errors. 2020-04-21 13:22:33 +08:00
MarceloSalazar d9cb51dbc6 Remove OLIMEX_STM32E407_F407ZG target 2020-04-20 16:55:34 +01:00
MarceloSalazar e78ba7065b Remove MTB_MTS_XDOT target 2020-04-20 16:55:33 +01:00
MarceloSalazar 4b1ad8ad4c Remove MTB_STM_L475 target 2020-04-20 16:55:33 +01:00
Martin Kojtal 27405bff31
Merge pull request #12671 from hugueskamba/hk-netsocket-remove-armc5-support
Netsocket/lwIP Stack: Remove support for ARM Compiler 5
2020-04-20 14:16:20 +02:00
Seppo Takalo fc9e75bddc Allow Devicekey::generate_root_of_trust() to define key size.
By default, generate 16 byte keys, to be compatible with bootloader.
But allow user to generate 32 byte keys as well.
2020-04-20 14:40:26 +03:00