ADC Loopback (FAILED)
Overview
See tests/drivers/adc 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 ADC pins must be connected.
Building and Running
Build and run the tests on target as follows:
$ west twister \
--verbose --jobs 4 --inline-logs \
--enable-size-report --platform-reports \
--device-testing --hardware-map map.yaml \
--extra-args SHIELD="loopback_test_tmph" \
--alt-config-root bridle/zephyr/alt-config/tests \
--testsuite-root zephyr/tests --tag adc
You should see the following messages on host console:
Device testing on: | Platform | ID | Serial device | |---------------------------|----------|-----------------| | magpie_f777ni/stm32f777xx | DT04BNT1 | /dev/ttyUSB0 | INFO - JOBS: 4 INFO - Adding tasks to the queue... INFO - Added initial list of jobs to queue INFO - 1/1 magpie_f777ni/stm32f777xx tests/drivers/adc/adc_api/drivers.adc ERROR Build failure (device) INFO - .../twister-out/magpie_f777ni_stm32f777xx/tests/drivers/adc/adc_api/drivers.adc/build.log INFO - 2294 test scenarios (2077 test instances) selected, 2076 configurations skipped (2076 by static filter, 0 at runtime). INFO - 0 of 1 test configurations passed (0.00%), 0 built (not run), 0 failed, 1 errored, with no warnings in 17.46 seconds. INFO - 0 of 6 executed test cases passed (0.00%), 6 blocked on 1 out of total 876 platforms (0.11%). INFO - 16086 selected test cases not executed: 16086 filtered. INFO - 0 test configurations executed on platforms, 1 test configurations were only built. Hardware distribution summary: | Board | ID | Counter | Failures | |---------------------------|----------|-----------|------------| | magpie_f777ni/stm32f777xx | DT04BNT1 | 0 | 0 | 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 magpie_f777ni/stm32f777xx... INFO - Writing JSON report .../twister-out/magpie_f777ni_stm32f777xx.json INFO - -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ INFO - The following issues were found (showing the top 10 items): INFO - 1) tests/drivers/adc/adc_api/drivers.adc on magpie_f777ni/stm32f777xx error (Build failure) INFO - INFO - To rerun the tests, call twister using the following commandline: INFO - west twister -p <PLATFORM> -s <TEST ID>, for example: INFO - INFO - west twister -p magpie_f777ni/stm32f777xx -s tests/drivers/adc/adc_api/drivers.adc INFO - or with west: INFO - west build -p -b magpie_f777ni/stm32f777xx tests/drivers/adc/adc_api -T drivers.adc INFO - -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ INFO - Run completed
Open Issues
... ... ... .../zephyr/tests/drivers/adc/adc_api/src/test_adc.c:45:2: error: #error "Unsupported board." .../zephyr/tests/drivers/adc/adc_api/src/test_adc.c:50:31: error: 'adc_channels' undeclared here ... .../zephyr/tests/drivers/adc/adc_api/src/test_adc.c:82:39: error: 'adc_channels' undeclared here ... .../zephyr/tests/drivers/adc/adc_api/src/test_adc.c:84:25: error: 'adc_channels_count' undeclared here ... .../zephyr/tests/drivers/adc/adc_api/src/test_adc.c:131:37: error: 'adc_channels' undeclared here ... .../zephyr/tests/drivers/adc/adc_api/src/test_adc.c:158:37: error: 'adc_channels' undeclared here ... .../zephyr/tests/drivers/adc/adc_api/src/test_adc.c:160:29: error: 'adc_channels_count' undeclared here ... .../zephyr/tests/drivers/adc/adc_api/src/test_adc.c:177:13: error: 'adc_channels_count' undeclared here ... .../zephyr/tests/drivers/adc/adc_api/src/test_adc.c:209:37: error: 'adc_channels' undeclared here ... .../zephyr/tests/drivers/adc/adc_api/src/test_adc.c:268:37: error: 'adc_channels' undeclared here ... .../zephyr/tests/drivers/adc/adc_api/src/test_adc.c:301:35: error: 'adc_channels_count' undeclared here ... .../zephyr/tests/drivers/adc/adc_api/src/test_adc.c:344:37: error: 'adc_channels' undeclared here ... .../zephyr/tests/drivers/adc/adc_api/src/test_adc.c:346:13: error: 'adc_channels_count' undeclared here ... .../zephyr/tests/drivers/adc/adc_api/src/test_adc.c:371:36: error: 'adc_channels' undeclared here ... ... ... ... ... ... ... ... ... ...