Commit Graph

33390 Commits (062638e835d1de1be0ddf3497d1bc64cd4c0884d)

Author SHA1 Message Date
Rajkumar Kanagaraj 062638e835 CMake: Move rtos stub headers to the rtos/tests/UNITTESTS/double directory
Move rtos stubs headers to the mbed-os/rtos/tests/UNITTESTS/double
directory and update CMake to create a mbed-stubs-rtos-headers
library for rtos stub headers
2021-06-28 06:31:37 -07:00
Rajkumar Kanagaraj 6a5f3ae661 CMake: Move rtos stubs sources to the mbed-os/rtos directory
Move the rtos stub library into the rtos component directory.
so we can avoid duplicating the mbed-os source tree in a central
UNITTESTS folder.
2021-06-28 06:31:37 -07:00
Martin Kojtal de7e326bc1
Merge pull request #14677 from MubeenHCLite/corrections_in_STM_canapi
Changes required in STM CAN read API
2021-06-25 10:49:20 +02:00
Martin Kojtal 7523945df2
Merge pull request #14826 from ARMmbed/events_unittest_header_lib
CMake: unit-tests: Make events UNITTESTS only depend on headers it uses
2021-06-25 10:10:09 +02:00
Martin Kojtal a2281a7e49
Merge pull request #14822 from jeromecoutant/PR_H7_M4
STM32H7: correction for FLASH API for CM4
2021-06-25 10:02:31 +02:00
Mohammed Mubeen 6f436dbac3 Adjusted spcae alignment 2021-06-25 12:06:44 +05:30
Martin Kojtal 43f1ee7a56
Merge pull request #14814 from boraozgen/bg96-get-ip-address
BG96: Add correct get_ip_address implementation
2021-06-24 16:18:41 +02:00
Martin Kojtal 829164acdb
Merge pull request #14778 from MubeenHCLite/Can_TxIrq_callback_resolution
CAN TxIRq callback never called -STM32G474
2021-06-24 15:44:52 +02:00
Martin Kojtal 9244625508
Merge pull request #14786 from ARMmbed/move_drivers_stub
Move mbed-stubs-drivers to the drivers directory
2021-06-24 15:43:37 +02:00
Martin Kojtal 28cdb37058
Merge pull request #14813 from ARMmbed/drivers_unittest_header_lib
CMake: unit-tests: Make drivers unittests only depend on headers it uses
2021-06-24 15:43:18 +02:00
Rajkumar Kanagaraj ef5c86f1dd CMake: unit-tests: Make events UNITTESTS only depend on headers it uses
Previously the events unit tests depended on `mbed-headers`, which
is a collection of all available headers in mbed-os. To make it easier
to separate the library, only depend on the headers we're using.
2021-06-24 03:03:40 -07:00
jeromecoutant a4b2695d15 STM32H7 CM4: enable ART 2021-06-23 16:58:16 +02:00
jeromecoutant ec945ba990 STM32H7 CM4: correct FLASH_SIZE
FLASH_SIZE_DATA_REGISTER is not accessible by M4,
acces makes a hard fault
2021-06-23 16:53:38 +02:00
Rajkumar Kanagaraj e64d1c7605 CMake: unit-tests: Make drivers stub only depend on headers it uses
Previously the drivers stub library depended on `mbed-headers`, which
is a collection of all available headers in mbed-os. To make it easier
to separate the library, only depend on the headers we're using.
2021-06-22 04:32:17 -07:00
Rajkumar Kanagaraj 05cd885931 CMake: unit-tests: Move mbed-headers-drivers to the drivers directory
Move the header-only mbed-headers-drivers library the unit test stubs
depend on into the drivers component directory. This makes the drivers
stubs more self-contained and improves the composition of the library.
2021-06-22 04:28:06 -07:00
Rajkumar Kanagaraj ae5bc5a39e CMake: Move drivers stubs to the mbed-os/drivers directory
Move the drivers stub library into the drivers component directory.
so we can avoid duplicating the mbed-os source tree in a central
UNITTESTS folder.
2021-06-22 04:28:06 -07:00
Rajkumar Kanagaraj 9a4bdb8ef4 CMake: unit-tests: Make drivers UNITTESTS only depend on headers it uses
Previously the drivers unit tests depended on `mbed-headers`, which
is a collection of all available headers in mbed-os. To make it easier
to separate the library, only depend on the headers we're using.
2021-06-22 04:17:56 -07:00
Rajkumar Kanagaraj 10beeab6c2 CMake: unit-tests: Pwmout & Watchdog: Remove trailing whitespace 2021-06-22 04:05:07 -07:00
Mohammed Mubeen 9732cdcce6 Updated comments appropriately 2021-06-22 14:22:16 +05:30
Mohammed Mubeen 2cc08cf5a6 Rebaseing to current master 2021-06-21 14:34:48 +05:30
Mohammed Mubeen 5049b518fb Added working functionality to the can_filter api to accept IDs for filtering in both bxCAN and FDCAN 2021-06-21 14:17:41 +05:30
Mohammed Mubeen 064f94d0a6 Added to return failure if filter if unsupported format 2021-06-21 14:17:31 +05:30
Mohammed Mubeen 274d8aa40c The default FIFO for can by hardware is FIFO0 as set by the CAN STM API in configuration. Hence the read api is modified to access FIFO0 only 2021-06-21 14:17:14 +05:30
mbedmain cecc47b4a5 Update Mbed version block 2021-06-18 11:54:51 +01:00
Martin Kojtal 3319bebfc4
Merge pull request #14801 from paul-szczepanek-arm/fix-ble
BKE: fix statements outside correct feature guard blocks
2021-06-17 22:03:17 +02:00
Paul Szczepanek ede39c4608 put statements inside the correct feature guard blocks 2021-06-17 16:51:28 +01:00
Martin Kojtal 1a2e96bb04
Merge pull request #14797 from saheerb/mbedtls_fix
run example-tls on faster K64F board (than K66F)
2021-06-17 15:58:12 +02:00
Martin Kojtal c358ab2946
Merge pull request #14749 from tymoteuszblochmobica/fcntl
Fcntl  setting improvement,
2021-06-17 15:37:55 +02:00
Martin Kojtal 8cb8e49a67
Merge pull request #14747 from paul-szczepanek-arm/fix-adv-con
BLE: fix advertising set termination event
2021-06-17 15:37:29 +02:00
saheerb 5d11a1e350 run example-tls on faster K64F board (than K66F) 2021-06-17 09:43:53 +01:00
Mohammed Mubeen 1fc141905e Added code to set TBTIE, to enable the tx complete/abort interrupts, for
all supported FDCAN platforms
2021-06-15 20:17:50 +05:30
Martin Kojtal 3cf5f8e14f
Merge pull request #14752 from tymoteuszblochmobica/sockets
LWIP Broadcast  socket option added
2021-06-15 15:08:53 +02:00
Bora Özgen 97362f23ff BG96: Add correct get_ip_address implementation
The default get_ip_address implementation was not working for
BG9x. Furthermore the cellular connect routine tries to get the
address multiple times, which added around 2 seconds of
unnecessary delay to the connection. This commit adds the correct
implementation using the AT+QIACT? command.
2021-06-15 14:20:46 +02:00
Martin Kojtal fd7e33b361
Merge pull request #14772 from LDong-Arm/mbedtls_timing
Improve implementation of Mbed TLS timing
2021-06-15 13:09:49 +02:00
Lingkai Dong 49163f0f33 Move Mbed TLS self tests to a separate configuration
We potentially save flash space by not enabling Mbed TLS self-tests
by default. A new test config file, TESTS/configs/mbedtls.json, is
provided to enable self tests. This newly created JSON file also
enables timing in Mbed TLS so timing gets tested.
2021-06-15 10:50:14 +01:00
Lingkai Dong d6f825ebf0 mbedtls: Run mbedtls_timing_self_test if MBEDTLS_TIMING_C
This allows us to verify the support for Mbed TLS timing on Mbed OS.

Note: The macros MBEDTLS_TIMING_C and MBEDTLS_TIMING_ALT are not
enabled by default and need to be additionally enabled to run this
test.
2021-06-14 17:49:17 +01:00
Lingkai Dong ca719a96a8 mbedtls: Use LowPowerTimeout for mbedtls_set_alarm() if available
The function `mbedtls_set_alarm()` is only precise to seconds, so
`LowPowerTimeout` is enough and saves power.
2021-06-14 17:49:17 +01:00
Lingkai Dong e16f59a2ee timing_mbed.cpp: Check MBEDTLS_TIMING_ALT
Do not compile the Mbed implementation of Mbed TLS unless
MBEDTLS_TIMING_ALT is defined. This prevents a macro check error on
devices that do not have LPTICKER or USTICKER when Mbed TLS timing
is not enabled.
2021-06-14 17:48:42 +01:00
Lingkai Dong 17ae051075 mbedtls: Add full platform implementation of timing
When MBEDTLS_TIMING_C and MBEDTLS_TIMING_ALT are enabled,
the Arm Compiler generates errors like the following (one for
each missing symbol):

    Error: L6218E: Undefined symbol mbedtls_timing_get_delay

Reason:

The function `mbedtls_timing_self_test()` in the Mbed TLS default
`timing.c` always gets compiled, if MBEDTLS_SELF_TEST is defined.
And MBEDTLS_SELF_TEST is always defined, as we have a Greentea test
to run some of the Mbed TLS self tests. (In the future we should try
not to enable MBEDTLS_SELF_TEST except for tests, but it requires
a rework in our test flow.)

`mbedtls_timing_self_test()` tests (calls) the full API declared in
`timing.h`, and the ARM Compiler requires all symbols referenced by
all functions to be defined, even those not used by the final
application. This is unlike GCC_ARM which resolves what are required.

Solution:

To fix the "undefined symbol" errors, we add an implementation of
`mbedtls_timing_get_timer()` based on Mbed OS `LowPowerTimer` or
`Timer` (depending on which one is available), and copy Mbed TLS's
default `mbedtls_timing_set_delay()` and `mbedtls_timing_get_delay()`
which are built on top of `mbedtls_timing_get_timer()`. This will also
benefit user applications that need to enable timing in Mbed TLS.
2021-06-14 17:29:19 +01:00
Lingkai Dong f96f98e60e mbedtls: Use LowPowerTimer/Timer for timing
Previously we used `gettimeofday()` for Mbed TLS timing, but its
implementation provided by Mbed OS is only precise to seconds. The
microsecond component of the output `struct timeval` is always set
to zero. But Mbed TLS requires millisecond precision.

To provide required timing precision, switch to use `LowPowerTicker`
or (microsecond) `Ticker`. `LowPowerTicker` is preferred as it saves
power and Mbed TLS does not require microsecond precision.
2021-06-14 17:25:08 +01:00
Martin Kojtal 0c9be22f58
Merge pull request #14768 from anttiylitokola/update-mbed-coap
Update mbed-coap to version v5.1.11
2021-06-14 12:09:46 +02:00
Martin Kojtal 2dcd6c026d
Merge pull request #14767 from ghseb/early-test-skip
connectivity tests: early skip fix
2021-06-14 12:06:59 +02:00
Martin Kojtal 1606b00186
Merge pull request #14741 from boraozgen/trng-def-checks
MbedTLS: Add definition checks for TRNG
2021-06-14 12:05:16 +02:00
Sebastian Stockhammer 3bee4917bb Early test skip
Adding mbed-os subdirectories that are not required for a specific project to .mbedignore is a good way to reduce compilation time. Sometimes it happens that tests depend on ignored files, which causes the test-build to fail even though the corresponding feature/component
is not configured. The reason is that the conditional that skips the test is placed after the includes.
2021-06-14 10:46:14 +02:00
Martin Kojtal 2a73d44343
Merge pull request #14750 from tymoteuszblochmobica/size_spi
Increase SPI stack size to 2048 for BlueNrg driver
2021-06-14 10:32:51 +02:00
Martin Kojtal 50e23b75f8
Merge pull request #14765 from rwalton-arm/fix_unittest_check
Fix unittest check
2021-06-14 10:17:17 +02:00
Antti Yli-Tokola 6a3e0d55ae Update mbed-coap to version v5.1.11
Block-Wise request (block1) error handling improvements:
 * Removed SN_COAP_BLOCKWISE_MAX_TIME_DATA_STORED usage. Block-Wise requests will now follow normal retranmission rules.
 * Process block1 responses only once. If response is coming in wrong order just ignore it wait next response to happen.
2021-06-14 09:21:45 +03:00
Martin Kojtal 39644781a2
Merge pull request #14748 from AlbanJeantheau-silabs/fix_calculate_ufsi
Correct ufsi timing calculation
2021-06-11 16:11:10 +02:00
Martin Kojtal 3c622f60b5
Merge pull request #14743 from OpenNuvoton/nuvoton_m251_m261_wdt
Nuvoton: Support watchdog on M251/M261 series
2021-06-11 16:10:53 +02:00
Martin Kojtal 530d4beea5
Merge pull request #14734 from jeromecoutant/PR_RFSWITCH
STM32WL LORA: HW specific out of STM32WL_LoRaRadio class
2021-06-11 16:09:48 +02:00