Commit Graph

730 Commits (refactor_mbed_host_tests)

Author SHA1 Message Date
Martin Kojtal bedd5727af
Merge pull request #14486 from jeromecoutant/PR_CLI2_BLE
CMake COMPONENT_BlueNRG_MS: fix mbed-ble
2021-04-14 16:27:25 +02:00
Robert Walton c7c2580f9e CMake: Fix mbed-802.15.4-rf driver
mbed-nanostack should depend on mbed-802.15.4-rf to avoid a linker error
with an undefined reference to `NanostackRfPhy::get_default_instance()`.
The error occurs when `device_has: 802_15_4_PHY` is defined and the
consumer depends on mbed-nanostack in their CMakeLists.txt. Previously
we linked mbed-nanostack to mbed-802.15.4-rf, so mbed-802.15.4-rf's
usage requirements weren't forwarded to consumers who depended on
mbed-nanostack.

With the previous configuration, the consumer would have to depend on
mbed-802.15.4-rf directly to avoid an issue. This seems like a layering
violation: it appears that mbed-nanostack is "the API" and
mbed-802.15.4-rf is one of several possible implementations which are
selected based on configuration macros.

This commit changes the flow of dependencies so that mbed-nanostack ends
up with the correct symbol definitions.
2021-04-14 12:30:35 +01:00
Martin Kojtal c5f28e6037
Merge pull request #14481 from jeromecoutant/PR_LORA_ERROR
STM32WL: update "lora.max-sys-rx-error"
2021-04-14 09:54:53 +02:00
Martin Kojtal 06a33d37f8
Merge pull request #14436 from paul-szczepanek-arm/remove-services
BLE: replace obsolete services with the new services repo
2021-04-13 16:00:58 +02:00
Martin Kojtal b1e26c6f35
Merge pull request #14435 from LDong-Arm/CRYPTOCELL310_linking
Fix missing linkage of mbed-mbedtls-cryptocell310 to mbed-mbedtls
2021-04-13 16:00:43 +02:00
jeromecoutant 57ce710119 [CMAKE] COMPONENT_BlueNRG_MS: fix mbed-ble 2021-04-12 11:33:57 +02:00
Paul Szczepanek d594aa2d4b add MBED_DEPRECATED comment for maintainers to find it 2021-04-08 09:53:23 +01:00
Martin Kojtal 9bbc8c914c
Merge pull request #14506 from noonfom/value-handle
Add GattUpdatesEnabledCallbackParams struct
2021-04-08 09:53:04 +02:00
Abbas Bracken Ziad 52483f3e30 Wrap call to value handle getter in MBED_ASSERT 2021-04-07 18:05:01 +01:00
Paul Szczepanek cc478b3896 add deprecation warning 2021-04-07 17:15:09 +01:00
Paul Szczepanek f34d31f350 remember if BLE scan paremeters are set 2021-04-07 16:40:46 +01:00
Abbas Bracken Ziad aaf9435f87 Use general name for POD 2021-04-07 12:34:25 +01:00
Mika Leppänen 989c8e85eb Added new start methods to Wi-SUN BR with WisunInterface parameter and deprecated the old ones
Previously WisunBorderRouter start() used NetworkInterface type for mesh interface, although only
WisunInterface type is possible for the call. Added a new overloads of the start with the
WisunInterface as mesh interface type and deprecated the old ones. This makes the calls stricter
about the interface type and safer. It also allows to remove the reinterpret_cast that causes
compiler warning on ARM compiler.
2021-04-07 11:34:33 +03:00
Abbas Bracken Ziad d42c0a7269 Add value handle field to callback params 2021-04-06 17:39:10 +01:00
Abbas Bracken Ziad 8b07e97e50 Add value handle getter to Gatt Server 2021-04-06 17:24:08 +01:00
jarlamsa bc747dce09 Check for duplicate status callbacks before adding to the list
Duplicate status callbacks don't bring any value and can cause
memory leaks if caller calls for this function multiple times with
same status_cb. Also remove all the instances of the status_cb when
removing event listener.
2021-04-01 13:22:07 +03:00
Anna Bridge d2941186eb
Merge pull request #14460 from harmut01/baremetal_ambiq
Ambiq: Fix baremetal build profile when using CLI 1
2021-03-31 11:29:25 +01:00
Anna Bridge cbc6209a11
Merge pull request #14442 from artokin/update_set_network_size_doc_master
Improve WisunInterface set_network_size docs
2021-03-29 11:22:36 +01:00
jeromecoutant b63ca7c800 STM32WL: update "lora.max-sys-rx-error" 2021-03-29 09:25:25 +02:00
harmut01 8d502d4af3 Ambiq: Fix baremetal build profile using CLI 1
Add mbed_lib.json in the Ambiq target folder of FEATURE_BLE to make sure
the library is excluded in the baremetal build profile unless explicitly
added in `mbed_app.json`.
2021-03-24 09:22:21 +00:00
Arto Kinnunen e91f9cb6a1 Review corrections
Updated based on review comments.
2021-03-23 13:50:58 +02:00
Martin Kojtal 1fdb1c18e8
Merge pull request #14198 from ARMmbed/feature-bluetooth-traces
Feature bluetooth traces
2021-03-22 10:59:44 +01:00
jeromecoutant eca714c93f [STD-PIN] update tests and components 2021-03-18 17:01:50 +00:00
Lingkai Dong 4c6f8867d4 Make CryptoCell 310 part of mbed-mbedtls on supported targets
The CMake target mbed-mbedtls-cryptocell310 was not linked by
default, resulting in a compilation error on targets that use
Mbed TLS:

    fatal error: mbedtls_device.h: No such file or directory

Other Mbed TLS drivers simply add themselve to mbed-mbedtls, so this
commits does the alignment to fix the build error.

Note: the driver and the core Mbed TLS have mutual dependency, so
they need to be one CMake target.
2021-03-18 12:10:11 +00:00
Paul Szczepanek d43d4a0e7e fix cordio include path 2021-03-18 11:30:43 +00:00
Paul Szczepanek 1afbbebc96 fix include path for dm_api.h 2021-03-18 11:27:42 +00:00
Arto Kinnunen 06e5db993f Improve WisunInterface set_network_size docs
Clarify set_network_size usage and possible parameter values.
Clarify wisun-network-size help text in mbed-mesh-api/mbed_lib.json
2021-03-18 11:50:54 +02:00
Paul Szczepanek c6d2ca17d5 remove obsolete services and add information about the services repo 2021-03-17 13:05:25 +00:00
Paul Szczepanek dc6e9db067 add tracing to scan state (#14225) 2021-03-15 15:35:52 +00:00
Paul Szczepanek a62c1e1228 add missing include 2021-03-15 15:35:52 +00:00
Vincent Coubard cf33ed0668 BLE: Add MemorySecurityDb.cpp and SecurityDb.cpp to CMake. 2021-03-15 15:35:52 +00:00
Vincent Coubard d1672aaa64 BLE: Update level of traces in GattServer 2021-03-15 15:35:52 +00:00
Vincent Coubard 957486e0eb BLE: Move traces out of header file to avoid collisions.
This change required the creation of the implementation files of SecurityDb classes.
2021-03-15 15:35:52 +00:00
Vincent Coubard 6adaefd9f3 BLE: Fix traces parameter warnings 2021-03-15 15:35:52 +00:00
Vincent Coubard 65c61a1ca9 BLE: Remove uses of tr_as_array in favour of to_string. 2021-03-15 15:35:52 +00:00
Vincent Coubard c674990820 BLE: Fix sprintf overflow in trace helpers. 2021-03-15 15:35:52 +00:00
Vincent Coubard 52a3de6657 BLE: Move tracing helpers into implementation file. 2021-03-15 15:35:52 +00:00
Vincent Coubard c13e590723 BLE: Refactor UUID string helper to match mbed-os coding style. 2021-03-15 15:35:52 +00:00
Vincent Coubard e001098699 BLE: Fix out of range memory access in trace helper. 2021-03-15 15:35:52 +00:00
Abbas Bracken Ziad db9428f18f Add tracing to BLE Gatt Server (#14107)
* Add traces to GattServerImpl.cpp

* Update BLGS traces

* Add context to BLGS traces

* Set value of TRACE_WRITE_VALUES to 0

* Add param logs to BLGS traces

* Apply changes from code review

* Add trace helper for UUIDs

* C++ string library is not needed

* Update to_string function for UUIDs

The previous implementation had a memory leak and did not format 128-bit UUIDs

* Possibly faster ternary

* Add more context to adding/inserting of services/characteristic

* Add trace to events and event path

* Refactor to_string helper for UUIDs
2021-03-15 15:35:52 +00:00
Abbas Bracken Ziad f4febdcb9d Add tracing to BLE GAP (#14117)
* Add traces to GapImpl.cpp

* Add helpers and param logs

* Update GapImpl.cpp

* Move helpers to ble_trace_helpers.h

* Add traces to whitelist setter & getter functions

* Prepend parent dir. to ble_trace_helpers.h include line

* Resolve portability issue by using PRI* macro in place of %lu

* Add traces to PalGapImpl.cpp

* Complete PAL GAP traces

* Remove stray include

* Make 'echo' traces in PAL configurable

Some of the tr_info traces at the beginning of PAL functions  are duplicates ('echoes') of those in GAP functions. This commit enables including/excluding of these traces in mbed_app.json by writing 1/0, respectively to the MBED_CONF_CORDIO_TRACE_PAL_ECHOES config macro. The default is to exclude 'echo' traces.

* Add missing spaces in tr_info traces

* Clean-up param log for set_extended_advertising_parameters

* Remove "Failed: " from every tr_error trace

* Apply changes from PalGapImpl.cpp review

* Apply changes from GapImpl.cpp review

* Use binary for channel map trace

B0: ADVERTISING_CHANNEL_37
B1: ADVERTISING_CHANNEL_38
B2: ADVERTISING_CHANNEL_39

We're assuming that the user understands the above. This could be documented somewhere.

* Replace more %lu w/PRIu32

* Add tr_info to terminateSync for user call

* Make trace group for PAL traces BLDM

* Remove [PAL] prefix from every PAL trace

* Add trace to setPeripheralPrivacyConfiguration

* Make set scan params tr_info dependent on selected PHY

* Add trace to GAP events

* Other GAP events required traces
2021-03-15 15:35:52 +00:00
Paul Szczepanek 91d4b48989 BLE: add traces to gatt client (#14165)
* add traces to gatt client

* add files to cmakelists

Co-Authored-By: Vincent Coubard <vincent.coubard@arm.com>

* fixed tracing variable name

Co-Authored-By: Vincent Coubard <vincent.coubard@arm.com>

* add pal tracing

* add more traces for successfull actions

* put write and read as tr_debug in pal

Co-authored-by: Vincent Coubard <vincent.coubard@arm.com>
2021-03-15 15:35:52 +00:00
Paul Szczepanek 7b08388be6 Add traces to HCI, BLE instance, Security DB and WSF cordio traces (#14138)
* ble HCI tracing

* fix typo in SM trace

* add BLE instance tracing

* route wsf traces to mbed tr_debug

* Update connectivity/FEATURE_BLE/source/cordio/source/BLEInstanceBaseImpl.cpp

Co-authored-by: Vincent Coubard <vincent.coubard@arm.com>

* print hci on cordio side

* trace controller supported features

* log reset sequence

* include config for printing enums

* remove duplicate trace

* add tracing to security db

* workaround for macro error on use outside trace

Co-authored-by: Vincent Coubard <vincent.coubard@arm.com>
2021-03-15 15:35:52 +00:00
Vincent Coubard 5aa76e566a BLE: Add privacy trace (#14127)
Add traces to the Bluetooth Security Manager and Privacy controller.
The traces are made to be comprehensive to improve the ux when users submit bugs.
A centralized set of helpers has been created to convert BLE types to string.

* BLE: Add SM traces

* BLE: Add traces to Security Manager PAL

* BLE: Make SM traces consistent.
- Prefix with Connection <id> - when appropriate.
- Display parameters after `:`.
- If multiple parameters should be displayed name then and print the value after =. They are separated by a `,`.

* BLE: Fix SM random number generation.

Only the first 8 bytes were generated from the stack.

* BLE: Regenerate CSRK if it is all zeroes.

* BLE: Add trace into privacy modules

Address resolution is set at the debug level as it is a very common operation and may clutter the output.

* Address trace review for SM:

- Put privacy traces in BLPR
- Add missing traces in PALSecurityManagerImpl.cpp
- Add missing EventHandler null pointer check
- Typo and parameters order fix.
2021-03-15 15:34:34 +00:00
Martin Kojtal b4abfe6709
Merge pull request #14422 from pan-/lora-cancellation
Fix Lora timer cancellation
2021-03-12 13:17:21 +00:00
Martin Kojtal 1cb25da7ae
Merge pull request #14419 from jeromecoutant/PR_MBEDH
STM32: remove mbed.h include in connectivity
2021-03-12 10:55:32 +00:00
Martin Kojtal 6aef1af9e0
Merge pull request #14342 from JojoS62/fix-lwIP-add_dns_server
use calloc for new_interface_server
2021-03-12 08:44:50 +00:00
Martin Kojtal 9e0495a770
LoRaWANTimer: add new line at the end of the file 2021-03-12 08:24:16 +00:00
Vincent Coubard 9781418e31 Lora: Clear callback ID when timer callback is executed. 2021-03-11 21:00:43 +00:00
Vincent Coubard 4885739c4e Lora: Add clear method to LoRaWANTimer.
This function must be called by the callback registered in init.
It clears the timer_id to prevent abusive use of the stop methods on expired timer.
2021-03-11 20:59:45 +00:00
jeromecoutant a7508f70fe STM32WB BLE: remove mbed.h 2021-03-11 17:39:06 +01:00
jeromecoutant d28b875727 STM32 EMAC: remove mbed.h 2021-03-11 17:38:56 +01:00
Hugues Kamba 4367305830 CMake: Fix Renesas build error on Linux
The CMake input source file needs to be named
exactly CMakeLists.txt to be detected and used
for the build configuration.
2021-03-11 11:43:37 +00:00
Martin Kojtal 866855df5c
Merge pull request #14367 from JojoS62/fix-nd6-queueing-typo
fix typo: replace underscore by hyphen in lwipstack/mbed_lib.json
2021-03-09 14:32:32 +00:00
Martin Kojtal 76b2902f48
Merge pull request #14354 from ARMmbed/feature-tf-m-1.2-integration
Update TF-M support to v1.2
2021-03-03 11:08:24 +00:00
Johannes Stratmann e28df3aa30 replace underscore by hyphen 2021-03-02 16:54:34 +01:00
Johannes Stratmann 6934a46505 move private struct dns_server_interface to c file
use ip_addr function to initialize dns_add_interface_server
2021-03-02 14:51:11 +01:00
Martin Kojtal 63eeb93a5f
Merge pull request #14341 from artokin/update_traces_in_stm_emac_driver
Update stm32xx_emac driver traces
2021-02-25 15:09:10 +00:00
Lingkai Dong 0dd43976b8 Import mbedtls_ecp_write_key for Cypress Mbed TLS driver
Mbed TLS 2.24.0 has added a new function mbedtls_ecp_write_key()
which is the reverse of the existing mbedtls_ecp_read_key(). This
function should be platform agnostic, but needs to be copied into
Cypress's hardware-accelerated ECP driver as part of the updated
API.
2021-02-25 14:02:57 +00:00
Lingkai Dong 1f4f6dd0b6 Mbed TLS importer: don't import unnecessary files
The Mbed TLS importer accidentally imports Makefile and .gitignore
from Mbed TLS's `library/` directory. This commit restricts the
pattern to .h and .c files only, and removes the unnecessary files.
2021-02-25 14:02:57 +00:00
Lingkai Dong 241b062cdf Update .gitignore for Mbed TLS importer
The directory `mbed-tls-lib` previously in `.gitignore` no longer
exists. Instead, we can simply ignore the entire TARGET_IGNORE.
2021-02-25 14:02:57 +00:00
Lingkai Dong 410a1bad6b Import mbedtls-2.24 and Mbed PSA Service (non-TFM)
Files have been automatically imported by setting MBED_TLS_RELEASE to
mbedtls-2.24.0 in connectivity/mbedtls/tools/importer/Makefile and
running `make` in that directory.
2021-02-25 14:02:55 +00:00
Lingkai Dong e0d2c3d03a Fix paths in Mbed TLS importer
Note: Now we need to export common.h to the include path, because
this header is now also needed by PSA Crypto service.
2021-02-25 14:02:54 +00:00
Lingkai Dong e3641576d0 Move hash_wrappers.c to platform subdirectory
hash_wrappers.c is specific to Mbed OS, moving it into platform
as its original directory is for imported Mbed TLS source only.
2021-02-25 14:02:54 +00:00
Lingkai Dong 9e48b782b9 Add copyright header to hash_wrappers.c 2021-02-25 14:02:54 +00:00
Johannes Stratmann 73ce15ccbb turn off rdnss for compatibility 2021-02-24 21:13:26 +01:00
Johannes Stratmann ddbc2d7b88 add options to use RDNSS and IPv6 queuing 2021-02-24 21:09:40 +01:00
Johannes Stratmann 54b3b03426 use calloc for new_interface_server
malloc left garbage in the structure, dns IPs were filled with random content
2021-02-24 20:50:29 +01:00
Arto Kinnunen e4e2f79cc8 Update stm32xx_emac traces
- Make packet trace optional, can be enabled by enabling macro
  STM32xx_DEEP_TRACE
- Shorten traces during driver initialisation to avoid problems with
  driver startup when soft reset is used.
2021-02-24 13:46:58 +02:00
Martin Kojtal 8340ea2d2b
Merge pull request #14305 from paul-szczepanek-arm/cordio-host-fix-index
BLE: fix indexing of array in Cordio host stack
2021-02-23 14:23:21 +00:00
Paul Szczepanek 53cf06278a use the ccb instead of looking up the conn id 2021-02-22 11:31:25 +00:00
Paul Szczepanek 9a25b7b7cd use dmConnId_t for conn id 2021-02-19 12:52:47 +00:00
Paul Szczepanek b271ee853a fix Cordio attsCsfActClientState index parameter
instead of using a handle this should be conn id
there were two calls using it differently
2021-02-19 12:45:09 +00:00
Martin Kojtal 85c2d7a25c CMake: remove IAR references as they are not supported 2021-02-17 09:19:03 +00:00
Martin Kojtal 3894d73680
Merge pull request #14289 from hugueskamba/hk_cmake_refactor_cypress
CMake: Refactor Cypress targets
2021-02-16 13:43:35 +00:00
Hugues Kamba ea6955bd1c CMake: Refactor Cypress targets
Refactor all Cypress targets to be CMake buildsystem targets. This removes
the need for checking MBED_TARGET_LABELS repeatedly and allows us to be
more flexible in the way we include MBED_TARGET source in the build.

A side effect of this is it will allow us to support custom targets
without breaking the build for 'standard' targets, as we use CMake's
standard mechanism for adding build rules to the build system, rather
than implementing our own layer of logic to exclude files not needed for
the target being built. Using this approach, if an MBED_TARGET is not
linked to using target_link_libraries its source files will not be
added to the build. This means custom target source can be added to the
user's application CMakeLists.txt without polluting the build system
when trying to compile for a standard MBED_TARGET.
2021-02-15 17:20:23 +00:00
Martin Kojtal fa62e80958
Merge pull request #14249 from jeromecoutant/PR_STM32WL_LORA
STM32WL : add LoRa support
2021-02-15 11:04:00 +00:00
Martin Kojtal bc6679ebd6
Wiced: remove empty spaces 2021-02-15 08:49:44 +00:00
jeromecoutant 81a44fc9ae STM32WL: use correct include path 2021-02-15 08:54:06 +01:00
Martin Kojtal 51a6754e22
WicedInterface: fix styling 2021-02-14 20:00:25 +00:00
Martin Kojtal 2f09d7c057
Update WicedInterface.h
Fix the styling error
2021-02-14 19:35:37 +00:00
Hugues Kamba 01875ebb09 WICED: Move directory to WiFi driver
WICED is something is build to Cypress WiFi on multiple devices, it's a binary form. It is owned
by Seeed studio
2021-02-12 16:40:22 +00:00
Martin Kojtal 3174a4c6a5
Merge pull request #14264 from paul-szczepanek-arm/fix-terminate-sync
BLE: fix termination of periodic advertising sync
2021-02-12 09:16:55 +00:00
Martin Kojtal 8284807a00
Merge pull request #14239 from paul-szczepanek-arm/passkey-fix
BLE: fix passkey for display being returned reversed
2021-02-11 08:04:57 +00:00
Martin Kojtal 871522c929
Merge pull request #14256 from pan-/ble-chainable-event-handler-test
BLE: Add API to test the presence of an event handler in a chain.
2021-02-11 08:04:34 +00:00
Martin Kojtal 533e63355d
Merge pull request #14257 from pan-/add-getter-for-characteristic-cb
BLE: Add APIs to get characteristic authorization callbacks.
2021-02-11 08:04:29 +00:00
Paul Szczepanek 938aedac91 use the correct id to identify sync 2021-02-10 11:57:30 +00:00
Vincent Coubard edd7678cfc BLE: Add API to test the presence of an event handler in a chain. 2021-02-10 11:18:59 +00:00
Mika Leppänen 08bec7583d Added missing const qualifier to mesh ethernet mac addr get 2021-02-10 13:17:03 +02:00
Vincent Coubard c099b859d7 BLE: Add APIs to get characteristic authorization callbacks. 2021-02-09 19:56:58 +00:00
jeromecoutant 7baae39ece STM32WL LORA : enable connectivity test 2021-02-09 11:56:50 +01:00
Ludovic Champsaur 08050839d5 STM32WL LORA : lorawan update 2021-02-09 11:56:41 +01:00
Ludovic Champsaur 83d18eb4c0 STM32WL LORA : STM32WL_LoRaRadio support 2021-02-09 11:56:30 +01:00
Paul Szczepanek 94529508a5 include deprecation option for reversing passkey display 2021-02-08 13:36:28 +00:00
Martin Kojtal 733975220d
Merge pull request #14228 from ARMmbed/rename_greentea_test_macro
CMake: rename greentea test macro
2021-02-03 14:17:20 +00:00
Martin Kojtal 40cd33001d
Merge pull request #14195 from jeromecoutant/PR_LORA_BARE
LoraRadio test update for baremetal support
2021-02-03 09:31:41 +00:00
Martin Kojtal 5e1d13886c
Merge pull request #14202 from paul-szczepanek-arm/fix-stop-advert
BLE: return OK when stopping advertising set that is not active
2021-02-03 09:31:24 +00:00
Rajkumar Kanagaraj 6824b14e48 CMake: rename greentea test macro 2021-02-02 07:43:40 -08:00
Martin Kojtal 276e835e4b
Merge pull request #14181 from hugueskamba/hk_cmake_greentea_mbedtls
CMake: Add support for Mbed TLS Greentea tests
2021-02-02 14:17:18 +00:00
Martin Kojtal 956b19775c
Merge pull request #14197 from paul-szczepanek-arm/gtest
Upgrade gtest to 1.10
2021-02-01 10:44:11 +00:00
Martin Kojtal 04100a14c2
Merge pull request #14092 from hugueskamba/hk_nfc_m24sr_support
NFC: Add support for M24SR driver
2021-02-01 09:39:26 +00:00
Paul Szczepanek bd5f437896 return OK when stopping advertising that is not active 2021-01-27 16:32:57 +00:00
Paul Szczepanek 2fe6c7aa52 upgrade gtest to 1.10 2021-01-26 17:25:44 +00:00
jeromecoutant dd602689d2 LoraRadio test update for baremetal support 2021-01-26 14:47:56 +01:00
Hugues Kamba d0076a9e61 NFC: Add support for M24SR driver
The repository https://github.com/ARMmbed/mbed-nfc-m24sr
is no longer required to build applications that require
this driver.
2021-01-26 10:33:06 +00:00
Hugues Kamba 9a1c24e254 CMake: Add support for Mbed TLS Greentea tests
The Mbed TLS Greentea tests can now be built with CMake.
2021-01-25 10:48:15 +00:00
Martin Kojtal 83c18dd67c
Merge pull request #14099 from hugueskamba/hk_cmake_greentea_cordio
CMake: Add support for CORDIO Greentea tests
2021-01-20 21:14:33 +00:00
Martin Kojtal dc40c47cfa
Merge pull request #14169 from artokin/nanostack_release_12_8_0_to_master
Nanostack release v12.8.0
2021-01-20 14:38:16 +00:00
Martin Kojtal 5860bd3eea
Merge pull request #14126 from urutva/fix-mbedtls-sanity-test
tests: Limit PSA crypto tests to Arm-v7M targets
2021-01-20 12:35:44 +00:00
Arto Kinnunen 4d13419f38 Add nsdynmem_tracker_lib.c to CMakeLists.txt 2021-01-20 13:09:06 +02:00
Arto Kinnunen 0810306ca4 Add random_early_detection to CMakeLists.txt 2021-01-20 11:43:43 +02:00
Martin Kojtal 8145477cab
Merge pull request #14098 from hugueskamba/hk_cmake_greentea_lorawan
CMake: Add support for LoRaWAN Greentea tests
2021-01-20 08:34:50 +00:00
Martin Kojtal 8effecdf29
Merge pull request #14063 from dustin-crossman/pr/wifi_reserved_region
Support arbitrary storage alongside WiFi firmware in external storage on Cypress targets
2021-01-20 08:34:23 +00:00
Martin Kojtal 4324d32d7c
Merge pull request #14148 from mikaleppanen/nano_coverity_corr_master
Corrected nanostack coverity warnings
2021-01-20 08:05:00 +00:00
Paul Szczepanek 5d26114458 astyle 2021-01-19 14:47:02 +00:00
Paul Szczepanek 5ef1f161c3
Update cert for testing server 2021-01-19 13:25:16 +00:00
Arto Kinnunen 0c4294b1af Merge commit 'b0e699fe3e03f574aa2b6d74ff56a024d6e1d508'
* commit 'b0e699fe3e03f574aa2b6d74ff56a024d6e1d508':
  Squashed 'connectivity/nanostack/sal-stack-nanostack/' changes from 715ae9a693..3183d87e41
2021-01-19 11:53:20 +02:00
Arto Kinnunen a13d6ab0f3 Merge commit 'aad453e0ac69b9de3b3e218c21a423bebd506174'
* commit 'aad453e0ac69b9de3b3e218c21a423bebd506174':
  Squashed 'connectivity/nanostack/coap-service/' changes from 5aa54b8e62..4a126bd278
2021-01-19 11:52:43 +02:00
Arto Kinnunen 6354a1e8dc Merge commit '084b722d1c3fa00e29d7ded181aaabbcc3f1f793'
* commit '084b722d1c3fa00e29d7ded181aaabbcc3f1f793':
  Squashed 'connectivity/libraries/nanostack-libservice/' changes from 67d7b93ec6..a526cc3f41
2021-01-19 11:43:02 +02:00
Arto Kinnunen 06b913ff7e Merge commit '2f56ffab52d78986aebc1a290f106f5cf58830f8'
* commit '2f56ffab52d78986aebc1a290f106f5cf58830f8':
  Squashed 'connectivity/nanostack/sal-stack-nanostack-eventloop/' changes from 86cf0cca08..fb20d3f32c
2021-01-19 11:38:59 +02:00
Arto Kinnunen 908278f771 Merge commit '61315d197624480acfe555a3031228e62a55b239'
* commit '61315d197624480acfe555a3031228e62a55b239':
  Squashed 'connectivity/drivers/802.15.4_RF/atmel-rf-driver/' changes from ae4ef1b197..b1a8186d75
2021-01-19 11:33:45 +02:00
Martin Kojtal f8e586492f
Merge pull request #14091 from hugueskamba/hk_cmake_greentea_nfc
CMake: Add support for NFC Greentea test
2021-01-19 09:24:59 +00:00
jeromecoutant 7ab7933d12 STM32 / CMAKE / mbedtls : correct CMakeLists.txt files 2021-01-15 11:46:26 +01:00
Hugues Kamba 9985392c09 CMake: Add support for LoRaWAN Greentea test
The LoRaWAN Greentea test can now be built with CMake.
2021-01-14 17:35:16 +00:00
Hugues Kamba 5616537c3a CMake: Add MbedTLS dependency to LoRaWAN library
This way applications that need LoRaWAN do need to also add MbedTLS
2021-01-14 17:32:00 +00:00
Martin Kojtal 82f3126ab8
Merge pull request #14049 from jeromecoutant/PR_L072_LORA
DISCO_L072CZ_LRWAN1: enable LORA by default
2021-01-14 17:16:19 +00:00
Devaraj Ranganna 61009ba05a tests: Limit PSA crypto tests to Arm-v7M targets
The PSA crypto tests in
connectivity/mbedtls/tests/TESTS/mbedtls/sanity/main.cpp are only
supported for Arm-v7M PSA targets. For Arm-v8M PSA targets, crypto
regression tests provided by TF-M are used. Refer to
https://github.com/ARMmbed/mbed-os-tf-m-regression-tests for more
information.

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2021-01-14 11:56:04 +00:00
Devaraj Ranganna 9186fe57b2 tests: Fix test_crypto_asymmetric_encrypt_decrypt
The test `test_crypto_asymmetric_encrypt_decrypt` was incorrectly
setting the key usage flags. The key usage is updated to support both
encryption and decryption.

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2021-01-14 11:52:36 +00:00
Mika Leppänen 1e3d32ad41 Corrected nanostack coverity warnings 2021-01-13 13:05:51 +02:00
Martin Kojtal 8fb31d7ec3
Merge pull request #14008 from MultiTechSystems/mtqn-cpsms
Add proper power save mode command format for MTS_DRAGONFLY_L471
2021-01-12 15:16:01 +00:00
Hugues Kamba edab3140e2 CMake: Add support for NFC Greentea test
The NFC Greentea test can now be built with CMake
2021-01-12 10:57:27 +00:00
jeromecoutant e0217ad9f7 DISCO_L072CZ_LRWAN1: enable LORAWAN by default 2021-01-12 11:42:07 +01:00
jeromecoutant c3664d2339 LORA: update test 2021-01-12 11:42:06 +01:00
jeromecoutant 80aa710a48 LORA-DRIVER: add pins in json configuration 2021-01-12 11:42:04 +01:00
Martin Kojtal 265aa4cc92
Merge pull request #14103 from hugueskamba/hk_cmake_greentea_netsocket_network
CMake: Add support for netsocket/network Greentea tests
2021-01-12 10:40:20 +00:00
jeromecoutant 61059d45e4 STM32F439 : correct cmake compilation 2021-01-11 18:07:58 +01:00
Hugues Kamba 088ce195b6 CMake: Add support for netsocket/network Greentea tests
The netsocket/network Greentea tests can now be built with CMake
2021-01-11 16:34:07 +00:00
Hugues Kamba 51bd84ef7d CMake: Add support for CORDIO Greentea tests
The Cordio Greentea tests can now be built with CMake.
2021-01-11 16:30:29 +00:00
Martin Kojtal 15de1aae18
Merge pull request #14101 from rajkan01/add_cmake_greentea_netsocket
CMake: Add CMake support for netsocket greentea test
2021-01-11 15:38:55 +00:00
Martin Kojtal 53776fec43
Merge pull request #14125 from pan-/fix-sm-key-generation
BLE: Fix Security Manager key generation
2021-01-11 13:39:19 +00:00
Martin Kojtal a124bcab32
Merge pull request #14048 from mikaleppanen/corr_cert_add
Corrected Wi-SUN certificate add and remove functions on Wi-SUN interface
2021-01-11 11:19:26 +00:00
Vincent Coubard 4cfcadd9e9 BLE: Fix SM random number generation.
Ensure the more than 8 random bytes are fetched from the stack.
2021-01-07 12:38:47 +00:00
Vincent Coubard b28e11574a BLE: Regenerate CSRK if it is all zeroes. 2021-01-07 12:35:24 +00:00
Rajkumar Kanagaraj 48829eee60 CMake: Add CMake support for netsocket greentea test 2021-01-05 09:11:22 -08:00
Martin Kojtal dd4eca1b69
Merge pull request #14100 from hugueskamba/hk_cmake_fix_ambiq_ble
CMake: Fix path to Ambiq BLE source file
2021-01-05 15:50:32 +00:00
Martin Kojtal d0cd5fa5f1
Merge pull request #13826 from arduino/portenta-mainline
Add Arduino Portenta H7 as target
2021-01-05 15:49:44 +00:00
Hugues Kamba a1e80925af CMake: Fix path to Ambiq BLE source file
Update the hci_drv_apollo3.c listing as the file location was changed.
2021-01-05 13:50:50 +00:00
Martino Facchin 62b6cc9a05 cmake: STM32H7: enable PORTENTA* target 2021-01-05 14:49:37 +01:00
Martin Kojtal e1d1753726
Merge pull request #14111 from paul-szczepanek-arm/ble-fix-ext
BLE: fix scanning/advertising when extended features are available but disabled on host
2021-01-05 13:28:13 +00:00
Martin Kojtal ce825bcd45
Merge pull request #14084 from paul-szczepanek-arm/gatt-copy-callbacks
BLE: Fix GattServer callbacks not being copied to GattServer instance of the service
2021-01-05 11:26:25 +00:00