Commit Graph

1793 Commits (aeacaa8191f659d68c73ec2eecff7593be00d33d)

Author SHA1 Message Date
Martin Kojtal fe2fb48907
Merge pull request #13210 from dustin-crossman/pr/sleep_test_fix
Fix hal-sleep/sleep_manager Tests on Cypress Targets
2020-07-03 10:36:22 +02:00
Martin Kojtal fa7c32c29d
Merge pull request #13207 from jamesbeyond/fpga_fix
TEST: update NRF52840_DK with correct FPAG configuration
2020-07-03 10:17:02 +02: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
Martin Kojtal a0fd81bcd0
Merge pull request #13188 from toyowata/fix_baremetal_build
TEST: Add spif-driver support for baremetal test build
2020-07-01 11:48:18 +02:00
Martin Kojtal 76831a95f4
Merge pull request #13174 from jeromecoutant/PR_FPGA_WATCHDOG
tests-mbed_timing_fpga_ci_test_shield-watchdog update with clock accuracy
2020-07-01 11:47:25 +02:00
Qinghao Shi a5f1895c5b TEST: update NRF52840_DK with correct FPAG configration 2020-06-30 16:03:44 +01:00
toyowata ee5ef0b3ed Add spif-driver support for baremetal test build 2020-06-25 11:57:45 +09:00
jeromecoutant 4d7db01d01 tests-mbed_timing_fpga_ci_test_shield-watchdog update with clock accuracy information
Test is checking the exact time for watchdog,
which is based on a non accurate clock...

Correction is then taken into account clock information from API.
2020-06-24 14:20:24 +02:00
Martin Kojtal 846fbfb0fd
Merge pull request #13175 from Patater/remove-tfm-kvstore-adapter
psa: Remove not needed TF-M ITS KVStore adapter
2020-06-24 10:14:20 +02:00
Jaeden Amero 6c9d16843c test: Add an experimental API config
It's important we still continue to run `mbed test` tests for APIs
considered experimental. Add a new test config which enables all
experimental APIs for test purposes.

For example, to run mbed test including experimental APIs on K64F:
    mbed test -m K64F -t GCC_ARM --app-config TESTS/configs/experimental.json
2020-06-23 13:48:03 +01: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
Martin Kojtal 802c89707e
Merge pull request #12905 from kjbracey-arm/timer_tweaks
Timer: minor revisions
2020-06-18 22:23:56 +02:00
Martin Kojtal 3e42991289
Merge pull request #13046 from hugueskamba/hk_use_chrono
Use std::chrono based functions
2020-06-18 22:16:00 +02:00
Hugues Kamba 2b934a228f Fix tests-netsocket-udp
Use std::chrono literals and variables where it makes sense
2020-06-18 18:10:10 +01: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 62c2431344
Merge pull request #12824 from kjbracey-arm/faultasm
Optimise fault handler assembly
2020-06-18 09:43:00 +02:00
Hugues Kamba a3f4cf212d Use std::chrono based functions
The chrono based functions improve readability. Using them also removes
warnings related to usage of deprecated warnings.
2020-06-17 14:52:50 +01:00
Martin Kojtal 698fc09b4c
Merge pull request #12615 from jeromecoutant/PR_FPGA_UART
FPGA UART test cases addition with 7 and 9 bits data length
2020-06-10 13:51:18 +02: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
Martin Kojtal 8ff3c95b2d
Merge pull request #13030 from kjbracey-arm/thisthreadgetname
Fix ThisThread::get_name definition
2020-06-05 10:39:34 +02:00
Martin Kojtal ab439624ed
Merge pull request #12979 from LDong-Arm/stack_size_expectation_from_config
stack_size_unification test: set expected stack sizes from config
2020-06-04 14:39:08 +02:00
Darryl Green e5f8dd8798 Move import to after TARGET_PSA define check
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-05-29 13:19:12 +01:00
Jaeden Amero b44a263729 psa: Put Mbed PSA implementation into MBED_PSA_SRV
Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
2020-05-29 13:19:11 +01:00
Kevin Bracey 922b656d39 Fix ThisThread::get_name definition 2020-05-29 11:46:58 +03:00
jeromecoutant ccfb099255 tests-mbed_hal-rtc patch to match IAR compilation issue 2020-05-26 10:26:45 +02:00
jeromecoutant 1a64d6e525 FPGA UART test: disable 7 bits test for K64F 2020-05-18 11:48:27 +02:00
jeromecoutant 64f9a7a8ba FPGA UART test: disable 9 bits test for K64F 2020-05-18 11:48:26 +02:00
jeromecoutant ba94adbf65 FPGA test: Add ReadMe file 2020-05-18 11:48:26 +02:00
jeromecoutant 6900ec69dd FPGA test shield: UART test capability update 2020-05-18 11:48:25 +02:00
jeromecoutant 864c96efd4 FGGA UART test: add test cases with 7 and 9 bits data length 2020-05-18 11:47:31 +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
Anna Bridge 90a8fef7d0
Merge pull request #12942 from kjbracey-arm/chrono-timeout-test
Add Timeout rescheduling test
2020-05-15 11:13:25 +01:00
Martin Kojtal 37ee008b90
Merge pull request #12961 from MarceloSalazar/remove_nrf51
Remove nRF51 targets
2020-05-15 08:08:26 +02:00
Martin Kojtal 595754dffa
Merge pull request #12917 from rajkan01/usb_serial_greentea
Bare metal profile: Enable USB serial greentea test
2020-05-14 10:49:39 +02:00
Rajkumar Kanagaraj 15dd18a058 Incorporated the review comment 2020-05-13 16:47:35 +01:00
Rajkumar Kanagaraj 3ee6d8993b Incorporated the review comment 2020-05-13 14:11:36 +01: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
Martin Kojtal 0b4b2afaf4
Merge pull request #12901 from kjbracey-arm/mailchrono
Rationalise Mail/Queue/MemoryPool timing APIs
2020-05-12 17:10:43 +02:00
Martin Kojtal 15ade20b4d
Merge pull request #12909 from kyle-cypress/pr/cypress-misc-fixes
Cypress: Misc target updates
2020-05-12 14:27:34 +02:00
Kevin Bracey 181446331e Rationalise Queue/Mail get/put APIs
To line up with MemoryPool/Mail alloc, rework naming of get/put

    Queue::get -> try_get, try_get_for
    Queue::put -> try_put, try_put_for
    Mail::get -> try_get, try_get_for
    Mail::put (no change, but assert that it works)

In the future the names `get` and `put` can be used for untimed blocking
operations. In the interim, you have to use
`try_get_for(Kernel::wait_for_u32_forever)`.

`Mail::put` differs in that it has always been a non-blocking call, but
it can be assumed to always succeed when used correctly, because the
Queue has enough room to store a pointer to every block in the
MemoryPool. It could in future be made a `void` return, similar to the
change made to `Mutex::lock`.
2020-05-12 15:17:01 +03:00
Kevin Bracey 166ada084e Rationalise MemoryPool/Mail alloc APIs
alloc APIs were generally inconsistent - take the opportunity to align with
other APIs like Semaphore.

    alloc -> try_alloc
    alloc_for -> try_alloc_for
    alloc_until -> try_alloc_until

In future the name `alloc` can be used for an untimed blocking
allocation.
2020-05-12 15:17:01 +03:00
Rajkumar Kanagaraj 2feb1124f8 Call non-blocking USB send_nb instead of blocking send from ticker callback 2020-05-12 13:16:47 +01:00
Rajkumar Kanagaraj beacd629d1 Bare metal profile: Enable USB serial greentea test 2020-05-12 13:16:47 +01:00
Martin Kojtal 44b98761e0
Merge pull request #12944 from rajkan01/usb_msd_greentea_py3
Fix the USB MSD greentea host side pyusb_msd.py script
2020-05-12 14:06:27 +02:00
Martin Kojtal 631e81e07e
Merge pull request #12916 from rajkan01/usb_basic_hid_greentea
USB basic and hid greentea test cleanup and enable to the bare metal profile
2020-05-12 14:06:07 +02:00
Martin Kojtal 5f76dfe896
Merge pull request #12805 from fkjagodzinski/test_update-usb_serial-minimal_printf
Tests: USBSerial: Handle minimal printf limitations
2020-05-12 14:05:51 +02:00
toyowata 5a57670121 [TESTS] Add memory check for RAM constraint device 2020-05-12 10:07:34 +09:00
Rajkumar Kanagaraj 61c70e0fdc Cleanup
- Remove the partially implemented VENDOR_TEST_CTRL_NONE USB control request type.
- Remove the USB control request type VENDOR_TEST_CTRL_IN_DELAY, VENDOR_TEST_CTRL_OUT_DELAY, VENDOR_TEST_CTRL_IN_STATUS_DELAY, VENDOR_TEST_CTRL_OUT_STATUS_DELAY macros as did not have any test.
2020-05-11 20:55:15 +01:00
Kevin Bracey e3ef38d71d Add Timer copy/move tests 2020-05-11 16:20:13 +03:00