Commit Graph

33126 Commits (39922228d6534d9331ccb6751d19a0bd1df7d736)

Author SHA1 Message Date
Anna Bridge 39922228d6
Merge pull request #14683 from jeromecoutant/PR_WBBARE
Baremetal tests: enable BLE tests with NUCLEO_WB55RG
2021-05-24 13:20:55 +01:00
Anna Bridge e0069d8b9a
Merge pull request #14678 from ghseb/uartserial-shadowing-2
Serial: remove shadowing member variables
2021-05-24 13:20:11 +01:00
Anna Bridge ae62f9d02c
Merge pull request #14674 from anttiylitokola/master
Update mbed-coap to version v5.1.10
2021-05-24 13:18:53 +01:00
Anna Bridge 12025a107f
Merge pull request #14671 from saheerb/master
enable aws example test in CI
2021-05-24 13:17:24 +01:00
Anna Bridge 10a2da9b5e
Merge pull request #14668 from ikmdani/fix_i2c_read_13967
Driver: I2C: STM32F2/STM32F4/STM32L1: Fix alternate i2c read.
2021-05-24 13:14:36 +01:00
Anna Bridge 95dadc67b1
Merge pull request #14664 from LDong-Arm/nrf52832_flashiap
Enable FlashIAP for MCU_NRF52832
2021-05-24 13:12:06 +01:00
Anna Bridge 72f08db8f6
Merge pull request #14593 from JeanMarcR/STM32F7_NEW_CUBE
STM32F7 update drivers version to CUBE V1.16.1
2021-05-24 13:10:35 +01:00
Anna Bridge 9e98a2ceb4
Merge pull request #14592 from JeanMarcR/STM32G4_NEW_CUBE
STM32G4 update drivers version to CUBE V1.4.0
2021-05-24 13:10:04 +01:00
Anna Bridge 5ef56cc6f4
Merge pull request #14557 from affrinpinhero-2356/feature_i2cTiming_Calculation
STM32: driver/Added I2C timing calculation algorithm
2021-05-24 13:09:19 +01:00
Anna Bridge dcd6dc3837
Merge pull request #14536 from jeromecoutant/DEV_STM32F0_LPTICKER_OPTIM
STM32: Add LP_TICKER and US_TICKER optimisation macro
2021-05-24 13:06:03 +01:00
Anna Bridge 4e586a93d3
Merge pull request #14426 from ARMmbed/feature_unittest_refactor
CMake: Refactor UNITTESTS CMake
2021-05-24 13:04:22 +01:00
Rajkumar Kanagaraj 6d4caad83d CMake: Move CMAKE_CROSSCOMPILING check inside library CMake 2021-05-20 06:26:10 -07:00
jeromecoutant ba6d664ff2 Baremetal tests: enable BLE tests with NUCLEO_WB55RG 2021-05-19 17:52:48 +02:00
Affrin Pinhero d974b47439 driver/i2c: Added I2C timing calculation function.
This commit adds I2C timing value automatic calculation algorithm
for all supported families added. This patch improves I2C timing calculation
according to I2C input clock and I2C bus speed.
This commit also allows user to change the system clock and I2C input clock.

Related issue: #12907

Pull request type:
[x] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results:
[] No Tests required for this change (E.g docs only update)
[x] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

Signed-off-by: Affrin Pinhero <affrin.pinhero@hcl.com>
2021-05-19 18:35:47 +05:30
Sebastian Stockhammer 77b5ffc2f6 Remove shadowing member variables
- The variables shadow SerialBase::_tx_enabled and SerialBase::_rx_enabled
- Update interrupts when input/output is enabled to avoid infinite congestion
- Update comments
2021-05-19 09:01:06 +02:00
Antti Yli-Tokola 18728957b5 Update mbed-coap to version v5.1.10
- Fix regression from previous release concerning 1024 byte blocksize operations.
- Do not store ACK's into duplicate list.
- Code size optimizations
2021-05-18 13:24:20 +03:00
Krishna Mohan Dani 8f2c45c5af Driver: I2C: STM32F4: Fix for every alternate i2c read failure in F2, F4 & L1 families.
This commit fixes the i2c driver issue reported in the below link:
https://github.com/ARMmbed/mbed-os/issues/13967 on STM32F4xx platform.

The data type of XferOperation has been changed from uint8_t to uint32_t
so that it can hold a 32bit value (for example: I2C_OTHER_FRAME or
I2C_OTHER_AND_LAST_FRAME).

Signed-off-by: Krishna Mohan Dani <krishnamohan.d@hcl.com>
2021-05-17 18:20:00 +05:30
Saheer Babu 9b1947c332 enable aws example test in CI 2021-05-17 13:07:01 +01:00
mbedmain 14e5d307bb Update Mbed version block 2021-05-17 12:12:30 +01:00
Martin Kojtal b2b54a9e33
Merge pull request #14661 from rohitramu/patch-1
Delete STM32F401XE.ld
2021-05-17 12:23:52 +02:00
Lingkai Dong 6e169ed2a1 Enable FlashIAP for MCU_NRF52832
The NRF52832 MCU supports flash which is declared in `targets.json`
but the declaration of FlashIAP was missing. Applications were unable
to access the MCU's internal flash.

For example, with Mbed OS PSA enabled for NRF52_DK, Mbed CLI 1's
configuration check fails:

    [ERROR] library 'psa-services' requires 'flashiap-block-device' which is not present

because Mbed OS PSA requires internal flash.
2021-05-17 10:53:46 +01:00
Rohit Ramu 20ea05cc31
Delete STM32F401XE.ld
Duplicate file causing collisions when cloning the repo on a case-insensitive OS (e.g. Windows).
2021-05-15 23:59:03 -07:00
Anna Bridge 7279ae2cd0
Merge pull request #14657 from LDong-Arm/refactor_securestore
Deprecate broken TDB_EXTERNAL_NO_RBP and FILESYSTEM_NO_RBP in kv_config
2021-05-13 14:45:38 +01:00
Anna Bridge 117ecd5404
Merge pull request #14656 from rwalton-arm/windows_ninja_response_files
CMake: Only force Ninja response files on Windows
2021-05-13 11:18:49 +01:00
Anna Bridge 640d844251
Merge pull request #14623 from s-bruce13/master
Updated SDK 2.9.1 and added Flash Support for MIMXRT1170_EVK
2021-05-13 11:18:05 +01:00
Anna Bridge d64d0b7864
Merge pull request #14609 from JeanMarcR/STM32L0_NEW_CUBE
STM32L0 update drivers version to CUBE V1.12.0
2021-05-13 11:17:09 +01:00
Martin Kojtal 541ae06545
Merge pull request #14619 from debdeep-arm/ws-stats-nbr-table-master
Add API to get Wi-SUN Neighbor Table
2021-05-12 16:28:33 +02:00
Martin Kojtal 0f907d7620
Merge pull request #13791 from Patater/default-random-seed-experimental
mbedtls: Don't attempt to use default_random_seed
2021-05-12 11:03:52 +02:00
Martin Kojtal a4c63e6fdb
Merge pull request #14576 from marcuschangarm/trace_debug_color
Trace: Change tr_debug color from gray to bright blue
2021-05-12 10:48:44 +02:00
Martin Kojtal c02e101e9f
Merge pull request #14336 from AGlass0fMilk/polymorphic-can
Implement polymorphism for CAN driver
2021-05-12 10:17:28 +02:00
Martin Kojtal a104dac9cb
Merge pull request #14655 from rwalton-arm/fix_missing_stub_include
mbedtls_stub: Add missing include
2021-05-12 09:13:35 +02:00
harmut01 6b2c133a98 Refactor KVStore config override explanation
The documentation previously referred to a weakly defined function
`storage_configuration`, however, this function was replaced at some
stage by `kv_init_storage_config`. Refactor the explanation on how to
override the default configurations to reflect this. Also, remove
the snippet which was used to show the implentation of
`storage_configuration`.
2021-05-11 17:19:16 +01:00
harmut01 468ee97bdd Deprecate TDB_EXTERNAL_NO_RBP and FILESYSTEM_NO_RBP in kv_config
NO_RBP (no rollback protection) is intended to not require an internal
TDB, however, DeviceKey, which we use to derive SecureStore's
encryption key, still does. Currently, no internal TDB is created with
these two configurations, meaning there's no way to store the DeviceKey
and SecureStore doesn't work.
2021-05-11 17:19:10 +01:00
Robert Walton ccb49b506d CMake: Only force Ninja response files on Windows
We force Ninja to create response files to work around file path length
limitations on Windows. Previously we were forcing the response file
generation for all platforms, unless we were building on Windows using
ARMClang, this was to work around a CMake issue
https://gitlab.kitware.com/cmake/cmake/-/issues/21093

Unfortunately `ar` on macOS doesn't support Ninja response files. So the
check was incorrect, as forcing a response file to be generated on macOS
causes a build failure when trying to build Mbed's unit tests.

This PR changes the logic so we only generate a response file on Windows
systems if we're not building with ARMClang.
2021-05-11 13:26:12 +01:00
reme c61ccedd4b STM32F7 update drivers version to CUBE V1.16.1 2021-05-11 13:01:30 +01:00
reme 0200a2e61d README update STM32F7 to CUBE V1.6.1 2021-05-11 13:01:21 +01:00
Robert Walton 31926c81e0 mbedtls_stub: Add missing include
mbedtls_stub uses memset but doesn't add the <string.h> include. This
causes build failures with clang.

Add the include so we can build unit tests using clang.
2021-05-11 12:47:51 +01:00
Rajkumar Kanagaraj 10625b35b1 CMake: Update hal and platform stub CMake linker options for coverage
- Armclang is not working when we add gcov as target_link_libraries,
modified to pass as linker options with --coverage so it can work armclang and gcc
2021-05-11 04:27:09 -07:00
Rajkumar Kanagaraj f096b3b3c3 Fix missing newline 2021-05-11 04:22:26 -07:00
Rajkumar Kanagaraj 91051cbd4d CMake: fix lifflefs filesystem header include path
- LittleFileSystem.h and LittleFileSystem.cpp refers to the littflefs headers with the complete path like storage/filesystem/littlefs/littlefs/lfs_util.h and fixed the path issue
2021-05-11 03:41:00 -07:00
Rajkumar Kanagaraj 728883532d CMake: Run the unit tests in travis CI 2021-05-11 03:41:00 -07:00
Rajkumar Kanagaraj f93f71b260 CMake: Update build tools python modules to pick refactored way of unittest CMake
- Update mbed_unittest python module to pick unittest from mbed os root
CMake configuration file
- Add BUILD_TESTING flag ON in test python module
2021-05-11 02:49:03 -07:00
Rajkumar Kanagaraj a88f43f367 CMake: Update mbed os, unittest CMake and add CMAKE_CROSSCOMPILING guard
- Add a new MbedOS project in mbed os root CMake which can be used along with
  BUILD_TESTING conditional check for enabling the unittest build
- Update UNITTEST CMake for setting the CMake configuration like c, cxx flags etc.,
- Add if CMAKE_CROSSCOMPILING conditional check wherever target configuration check
  and toolchain configuration to avoid such configuration gets included for unittest build.
2021-05-11 02:49:03 -07:00
Martin Kojtal 125f58449d
Merge pull request #14497 from jarlamsa/no_duplicate_status_cb
Check for duplicate status callbacks before adding to the list
2021-05-11 11:41:06 +02:00
Rajkumar Kanagaraj 4ade0bdbea CMake: Fix DTLS socket unittest
- Binding the socket address into network stack to avoid socket connect API call hangs in the unittest
2021-05-11 02:29:56 -07:00
Paul Szczepanek 452c45b37a CMake: Update target_h stub headers
- Avoid using cmsis headers as it brings more redundant dependency into unittest build and for unittest build, all the required OS flags can provide from mbed rtos types header so replaced cmsis header with mbed os types header
2021-05-11 02:29:56 -07:00
Rajkumar Kanagaraj bf4ec4a290 CMake: Refactor lorawan unittest cmake
- Add CMakeLists.txt file to all lorawan test suite
2021-05-11 02:29:56 -07:00
Rajkumar Kanagaraj 37d4bc2d9e CMake: Refactore cellular framework unittest
- Add CMake configuration file into framework AT, device, common
unittest
2021-05-11 02:29:56 -07:00
Rajkumar Kanagaraj c5a4fecd28 CMake: Refactor netsocket unittest CMake
- Add Cmake configuration file
- Fix the header inclusion in DTLSSocketWrapper and TLSSocketWrapper test
2021-05-11 02:29:56 -07:00
Rajkumar Kanagaraj b6647355bf CMake: Refactor event unittest cmake
- Added CMake configuration file into events unittests
2021-05-11 02:29:56 -07:00