Commit Graph

403 Commits (2e1627d31e7936ba672c0080787f6d4c5accf02e)

Author SHA1 Message Date
Qinghao Shi 0bacd5b8e1 TESTS: update test with explicit skip message 2020-07-28 14:15:51 +01:00
Dustin Crossman 0ae7516cac Fix serial wait bug in sleep test.
During the sleep_usticker_test and the deepsleep_lpticker_test a sleep
was placed above the main testing loop in order to give the device some
time to finish the Green Tea UART transmissions before entering sleep
mode. Since there is a Green Tea transmission at the end of each
iteration of this test loop, this sleep should be called for each loop
instead of just once before it.
2020-07-01 10:49:49 -07:00
Roman Okhrimenko 9be0baf406 Remove ES10 targets from flash_config header in tests, remove mbed_app.json 2020-06-19 16:16:54 +03: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
Martin Kojtal 867cd0f0b6
Merge pull request #13016 from jeromecoutant/PR_RTCTEST
tests-mbed_hal-rtc patch to match IAR compilation issue
2020-06-05 15:52:08 +02:00
jeromecoutant ccfb099255 tests-mbed_hal-rtc patch to match IAR compilation issue 2020-05-26 10:26:45 +02:00
Lingkai Dong 4ecd99f6a4 stack_size_unification test: set expected stack sizes from config 2020-05-15 14:42:27 +01:00
Martin Kojtal 6cbe22dc59
Merge pull request #12623 from toyowata/baremetal_lpc1114
LPC1114: baremetal profile support
2020-05-15 13:17:52 +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
toyowata 5a57670121 [TESTS] Add memory check for RAM constraint device 2020-05-12 10:07:34 +09:00
Kyle Kearney d058586c48 Remove CYW943012P6EVB_01 target 2020-04-30 11:12:00 -07: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 d1ae0d570c
Merge pull request #12425 from kjbracey-arm/chrono
C++ Chrono support
2020-04-30 11:41:43 +02:00
Marcelo Salazar 81a92e3cb5 Re-enable K82F target 2020-04-30 09:56:37 +01:00
MarceloSalazar a58de82a7f Remove KL82Z target 2020-04-30 09:56:33 +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
Lingkai Dong 81e676b86b RTOS: use default boot-stack-size for nRF as SoftDevice is no longer used
Previously we overrode nRF targets to have a larger stack
due to memory required by SoftDevice. Having deprecated SoftDevice
in favour of Cordio for BLE (#12674), such requirement does not
apply anymore.
2020-04-27 17:22:49 +01: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
Kevin Bracey e5e45d83e7 Chrono test fixes
* Remove ambiguity in single-parameter Queue::put and get
* Fix type problems in RTC test - add missing include
* Don't attempt to use TimerEvent default constructor
* Remove references to Timer::read_duration
2020-04-27 10:19:08 +03:00
Kevin Bracey f0ee31f119 Add RealTimeClock 2020-04-27 10:19:08 +03:00
Martin Kojtal aec6303437
Merge pull request #12787 from kyle-cypress/pr/cyeskit-064b0s2-4343w
Cypress: Add CYESKIT-064B0S2-4343W
2020-04-21 10:08:40 +02:00
Wilfried Chauveau 3d74526fa9
enable common tickers & lp_tickers hal tests in baremetal mode 2020-04-17 15:01:56 +01:00
Rajkumar Kanagaraj 9739b565b2 Fix the CI build issue 2020-04-08 10:35:07 +01:00
Rajkumar Kanagaraj 83be3f24a5 Remove mbed wait deprecated APIs 2020-04-08 10:35:07 +01:00
Roman Okhrimenko bb53efcdbd Add TARGET_CYESKIT_064B0S2_4343W to list in flash_configs in TESTS 2020-04-05 13:52:27 +03:00
Martin Kojtal ded879daed
Merge pull request #12603 from dustin-crossman/pr/add-cysbsyskit_01
Add target CYSBSYSKIT_01
2020-04-02 18:18:11 +02:00
Martin Kojtal f03860a971
Merge pull request #12604 from OpenNuvoton/nuvoton_nano130_tickless_lpticker
NANO130: Fix test failures with tickless from lp_ticker
2020-04-01 08:40:19 +02:00
Hugues Kamba 4318a0747f Tests: Remove support for ARM Compiler 5
ARM Compiler 5 is no longer actively supported and was superseded in
Mbed OS by ARM Compiler 6.
2020-03-25 18:22:00 +00:00
Chun-Chieh Li 9ddcdcde4e NANO130: Fix mbed_hal-stack_size_unification failure
NANO130 doesn't re-configure rtos.main-thread-stack-size, so keep EXPECTED_MAIN_THREAD_STACK_SIZE as normal.
2020-03-20 10:26:40 +08:00
Anna Bridge 33f3049286
Merge pull request #12233 from bulislaw/minimal_printf_default
Enable minimal-printf by default for all builds
2020-03-10 12:13:11 +00:00
Dustin Crossman 3f1afb8d91 Add CYSBSYSKIT_01 to qspi test flash configs. 2020-03-09 10:07:12 -07:00
Evelyne Donnaes 74884bb7a7 Fixed more greentea tests 2020-03-06 15:02:26 +00:00
David Lin 4a4c50fa4f
Fixed typo 'timout'
timout -> timeout
2020-03-06 22:04:12 +08:00
Martin Kojtal 22f3bc4ae7
Merge pull request #12436 from mprse/fpga_remove_gpio_pinmaps
Remove GPIO pin-maps used for FPGA testing
2020-03-04 13:24:05 +00:00
Evelyne Donnaes 5016fa1a10
Merge branch 'master' into minimal_printf_default 2020-03-02 17:31:37 +00:00
Evelyne Donnaes 0f2b0d1be5 Fixed greentea tests 2020-03-02 17:27:17 +00:00
Przemyslaw Stekiel 42a9cc1e20 tests-mbed_hal-sleep_manager: fix counter wraparound handling
There is a mismatch while handling counter wraparound in `test_sleep_auto` test case.
In the test timestamps in ticks are first converted to us and then while counting the time difference wraparound is handled (us and ticks fields are mismatched). The ticker wraparound case must be handled in the field of ticks, and then the difference converted to us.
2020-02-26 14:05:46 +01:00
Przemyslaw Stekiel 6cd012d215 tests-mbed_hal-pinmap: Remove testing GPIO pinmaps (GPIO pinmaps are removed) 2020-02-24 14:57:09 +01:00
Martin Kojtal e20e7b8066 tests: fix SPDX identifiers 2020-02-21 07:01:01 +00:00
Martin Kojtal 6e64fe3800 test: fix SPDX identifier 2020-02-21 07:00:59 +00:00
jeromecoutant 84b48410f0 STM32: enable QSPI test with MX25LM51245G octo SPI 2020-01-29 16:18:38 +01:00
Martin Kojtal 31988d85fe
Merge pull request #12139 from fkjagodzinski/hal-reset_reason-get_capabilities
HAL: Add a get_capabilities() function to ResetReason API
2020-01-16 14:44:31 +00:00
Filip Jagodzinski e8bbbaf1fb Test: LP_Ticker: Increase the UART flush wait 2020-01-15 13:34:50 +01:00
Filip Jagodzinski fa7eb7d888 Test: Sleep: Increase the UART flush wait 2020-01-15 13:34:45 +01:00
Filip Jagodzinski 7f1ed02291 Test: ResetReason: Increase the UART flush wait 2020-01-15 13:34:42 +01:00
Filip Jagodzinski 7d575af4b9 Test: Watchdog: Increase the UART flush wait 2020-01-15 13:34:28 +01:00
Martin Kojtal 8c4ed4a6cb
Merge pull request #11897 from kjbracey-arm/crc
MbedCRC: improve init value handling and tests
2020-01-09 13:31:30 +01:00
Martin Kojtal d7b7223bcd
Merge pull request #12218 from mprse/ticker_interrupt_test_fix
tests-mbed_hal-common_tickers: adapt ticker_interrupt_test() test case for high frequency tickers - WIP
2020-01-09 13:16:16 +01:00
Przemyslaw Stekiel db8e77672f tests-mbed_hal-common_tickers: adapt ticker_interrupt_test() test case for high frequency tickers
On some targets with very fast counters used for us ticker (e.g. 26 MHz) tested interrupt delays provided in the ticker_timeout array may be too short (execution of the set_interrupt() function takes longer than the tested delay).
We will skip tested ticker delay if the delay is less than assumed max set_interrupt() function execution time (20 us).
Also, the test array will be extended.
2020-01-09 08:32:30 +01:00
Kevin Bracey 83a9606140 CRC tests: increase parameter reflection coverage
CRC tests failed to exercise handling of the initial and final-xor
values with respect to reflection parameters. Add tests covering this.

Expected behaviour is that the initial value is always non-reflected and
the final-xor happens after the optional output reflection.
2020-01-08 13:36:17 +02:00