SPI Loopback
Overview
See tests/drivers/spi for the original scope of tests, its structure and description.
Requirements
You will need an ST-LINK/V2 debug tool adapter already connected to the TiaC Magpie board, which has an already configured UART console connection.
On the TiaC MAGPIE pin headers the following SPI pins must be connected.
Building and Running
Build and run the tests on target as follows:
$ ./zephyr/scripts/twister \
--verbose --jobs 4 --inline-logs \
--enable-size-report --platform-reports \
--device-testing --hardware-map map.yaml \
--extra-args SHIELD=loopback_test_tmph \
--testsuite-root zephyr/tests/drivers/spi
You should see the following messages on host console:
Device testing on: | Platform | ID | Serial device | |-------------|----------|-----------------| | tiac_magpie | DT04BNT1 | /dev/ttyUSB0 | INFO - Adding tasks to the queue... INFO - Added initial list of jobs to queue INFO - 12/14 tiac_magpie tests/drivers/spi/spi_loopback/drivers.spi.loopback.internal SKIPPED (runtime filter) INFO - 13/14 tiac_magpie tests/drivers/spi/dt_spec/drivers.spi.dt_spec PASSED (device 3.103s) INFO - 14/14 tiac_magpie tests/drivers/spi/spi_loopback/drivers.spi.loopback PASSED (device 2.335s) INFO - 14 test scenarios (14 test instances) selected, 12 configurations skipped (11 by static filter, 1 at runtime). INFO - 2 of 14 test configurations passed (100.00%), 0 failed, 0 errored, 12 skipped with 0 warnings in 24.60 seconds INFO - In total 2 test cases were executed, 24 skipped on 1 out of total 580 platforms (0.17%) INFO - 2 test configurations executed on platforms, 0 test configurations were only built. Hardware distribution summary: | Board | ID | Counter | |-------------|----------|-----------| | tiac_magpie | DT04BNT1 | 2 | INFO - Saving reports... INFO - Writing JSON report .../twister-out/twister.json INFO - Writing xunit report .../twister-out/twister.xml... INFO - Writing xunit report .../twister-out/twister_report.xml... INFO - Writing target report for tiac_magpie... INFO - Run completed