Commit Graph

33368 Commits (28cdb37058864c3336005a68e446a23f3fafb37c)

Author SHA1 Message Date
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
Rajkumar Kanagaraj 5ad51790a7 CMake: Refactor platform unittest CMake
- Add CMake configuration file test suites
2021-05-11 02:29:56 -07:00
Rajkumar Kanagaraj 98215d322d CMake: Fix ChainingBlockDevice unittest
- ChainingBlockModuleTest test case compares two strings with EXPECT_EQ
which normally compare strings residing memory address so replaced it with EXPECT_STREQ  to compare strings.
2021-05-11 02:29:56 -07:00
Rajkumar Kanagaraj 4536fff63a CMake: Refactor storage blockdevice and SFDP unittests cmake
- Add CMake configuration file
- Fix the header inclusion in blockdevice unittests
2021-05-11 02:29:56 -07:00
Rajkumar Kanagaraj c0a8fe62f5 CMake: Refactor storage TDBstore and FileSystemStore unittest cmake
- Add CMake configuration file in TDBstore and FileSystemStore unittest.
2021-05-11 02:29:56 -07:00
Rajkumar Kanagaraj 2bafdf82e7 CMake: Refactor drivers unittest cmake 2021-05-11 02:29:56 -07:00
Rajkumar Kanagaraj 9e6217924c CMake: Remove duplicate documents
- Remove the readme as it is a duplicate content of official document
  https://os.mbed.com/docs/mbed-os/v6.9/debug-test/unit-testing.html
2021-05-11 02:29:56 -07:00
Rajkumar Kanagaraj ba04c1cf76 CMake: Add add_subdirectory of unittests
- add every libraries unittest directory into respective CMake
  which allows to include unittest source into build based on
  MBED_BUILD_UNITTESTS flag
2021-05-11 02:29:56 -07:00
Rajkumar Kanagaraj d9db59f38c sort stubs into libraries 2021-05-11 02:29:56 -07:00
Martin Kojtal e25e94e74a
Merge pull request #14538 from harmut01/cmake-test-mode
Cmake: Add MBED_TEST_MODE macro
2021-05-11 11:12:19 +02:00
Martin Kojtal 5a121b9b2e
Merge pull request #14612 from uwrobotics/stm-slave-can-filter-fix
CAN: fix slave CAN start filter bank setup
2021-05-11 10:55:35 +02:00
Martin Kojtal b80128ff77
Merge pull request #14626 from jeromecoutant/DEV_STM32WB_1_11_1
STM32WB update drivers version to CUBE V1.11.1
2021-05-11 10:55:14 +02:00
Martin Kojtal 3bd40d3161
Merge pull request #14624 from 0xc0170/fix-14432
error: use __INITIAL_SP from cmsis instead of RTX one
2021-05-11 10:51:32 +02:00
s-bruce13 659f0bbe07 adding flash support
adding flash support

Updated SDK 2.9.1 and added Flash Support
2021-05-10 11:31:33 -05:00
Martin Kojtal 47b19eb157
Merge pull request #14548 from JeanMarcR/STM32F4_NEW_CUBE
STM32F4 update drivers version to CUBE V1.26.1
2021-05-10 17:25:11 +02:00
Martin Kojtal 3003a171b2 fixup! error: use __INITIAL_SP from cmsis instead of RTX one 2021-05-10 16:09:18 +01:00
Debdeep Saha d963a9af4a Added API to get Wi-SUN Neighbor Table 2021-05-10 20:00:32 +05:30
Martin Kojtal 4eff89c0cd
Merge pull request #14653 from rwalton-arm/relax_click_version_req
requirements: Relax Click version requirement
2021-05-10 16:28:04 +02:00
reme 5f279efc75 STM32F4 update drivers version to CUBE V1.26.1 2021-05-10 14:38:05 +01:00
reme b62970fdf1 README update STM32F4 to CUBE V1.26.1 2021-05-10 14:37:57 +01:00
Martin Kojtal e18d280ede
Merge pull request #14588 from Patater/mbed-libs-for-m55
Add v8.1-M architecture awareness
2021-05-10 15:13:33 +02:00
Martin Kojtal c54b089498
Merge pull request #14651 from JeanMarcR/STM32L4_NEW_CUBE
STM32L4 update drivers version to CUBE V1.17.0
2021-05-10 15:13:06 +02:00
Martin Kojtal 7f68465b3a
Merge pull request #14631 from affrinpinhero-2356/feature_i2c_CB_error
driver/I2C: STm32: Updated HAL_I2C_ErrorCallback function to store information about error reason in obj_s->event
2021-05-10 14:48:20 +02:00
Robert Walton a494a43fff requirements: Relax Click version requirement
We were pinning the version of Click to 7.0.~. This was preventing
side-by-side installs with mbed-tools, as mbed-tools requires
Click>=7.1,<8.

Relax the Click version requirement to >7.0,<8 to prevent dependency
conflicts with mbed-tools.
2021-05-10 11:35:19 +01:00
Martin Kojtal 26c6b75d3b
Merge pull request #14625 from paul-szczepanek-arm/fix-read-auth
BLE: Fix overwriting attribute data from read auth callback
2021-05-10 11:25:55 +02:00
Martin Kojtal ffd5389c1c
Merge pull request #14628 from notronrj/master
ARDUINO_UNO form factor and new PinNames for MIMXRT1050 target
2021-05-10 11:18:41 +02:00
reme de330d4365 README update STM32L4 to CUBE V1.17.0 2021-05-10 07:48:51 +01:00
reme 6b6b17dbbb STM32L4 update drivers version to CUBE V1.17.0 2021-05-10 07:28:27 +01:00
George Beckstein d39a4168ec Replace NonCopyable in CAN inheritance.
This commit moves the deletion of copy constructor and copy assignment operators to the `mbed::interface::can` class, where both `mbed::CAN` and `mbed::interface::CAN` inherit enum types from. This allows `NonCopyable` to be removed from the inheritance list.
2021-05-07 21:02:34 -04:00