Skip to content

Frdm_k64f tests/drivers/adc/adc_dma/drivers.adc-dma fails. #57733

@gbarkadiusz

Description

@gbarkadiusz

Describe the bug
The drivers.adc-dma suite contains a few tests.

adc_dma.test_adc_asynchronous_call
adc_dma.test_adc_invalid_request
adc_dma.test_adc_repeated_samplings
adc_dma.test_adc_sample_one_channel
adc_dma.test_adc_sample_two_channels
adc_dma.test_adc_sample_with_interval

But only adc_dma.test_adc_repeated_samplings fails.
The handler.log file contains more information about this fail.

Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/adc/adc_dma/src/test_adc.c:469: test_task_repeated_samplings: (ret not equal to 0)
adc_read() failed with code -16
FAIL - test_adc_repeated_samplings in 0.017 seconds

To Reproduce
twister --device-testing --hardware-map <path_to>/map.yml -T <path_to>/tests/drivers/adc/adc_dma/ -v

Expected behavior
Passes

Impact
Annoyance.

Logs and console output

Renaming output directory to <path_to>/zephyr/twister-out.17
INFO    - Using Ninja..
INFO    - Zephyr version: zephyr-v3.3.0-3680-gf66b14974268
INFO    - Using 'zephyr' toolchain.
INFO    - Building initial testsuite list...
INFO    - Writing JSON report <path_to>/zephyr/twister-out/testplan.json

Device testing on:

| Platform   | ID                                               | Serial device                                                                                     |
|------------|--------------------------------------------------|---------------------------------------------------------------------------------------------------|
| frdm_k64f  | 02400b0132044e4500417009997b00316781000097969900 | /dev/serial/by-id/usb-ARM_DAPLink_CMSIS-DAP_02400b0132044e4500417009997b00316781000097969900-if01 |
| frdm_k64f  | 02400b0140214e45001b1018c89200349e11000097969900 | /dev/serial/by-id/usb-ARM_DAPLink_CMSIS-DAP_02400b0140214e45001b1018c89200349e11000097969900-if01 |

INFO    - JOBS: 8
INFO    - Adding tasks to the queue...
INFO    - Added initial list of jobs to queue
INFO    - 1/1 frdm_k64f                 tests/drivers/adc/adc_dma/drivers.adc-dma           FAILED Failed (device 3.245s)
ERROR   - see: <path_to>/zephyr/twister-out/frdm_k64f/tests/drivers/adc/adc_dma/drivers.adc-dma/handler.log

INFO    - 1 test scenarios (1 test instances) selected, 0 configurations skipped (0 by static filter, 0 at runtime).
INFO    - 0 of 1 test configurations passed (0.00%), 1 failed, 0 errored, 0 skipped with 0 warnings in 8.31 seconds
INFO    - In total 6 test cases were executed, 0 skipped on 1 out of total 567 platforms (0.18%)
INFO    - 1 test configurations executed on platforms, 0 test configurations were only built.

Hardware distribution summary:

| Board     | ID                                               |   Counter |
|-----------|--------------------------------------------------|-----------|
| frdm_k64f | 02400b0132044e4500417009997b00316781000097969900 |         1 |
| frdm_k64f | 02400b0140214e45001b1018c89200349e11000097969900 |         0 |
INFO    - Saving reports...
INFO    - Writing JSON report <path_to>/zephyr/twister-out/twister.json
INFO    - Writing xunit report <path_to>/zephyr/twister-out/twister.xml...
INFO    - Writing xunit report <path_to>/zephyr/twister-out/twister_report.xml...
INFO    - -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
INFO    - The following issues were found (showing the top 10 items):
INFO    - 1) tests/drivers/adc/adc_dma/drivers.adc-dma on frdm_k64f failed (Failed)
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 frdm_k64f -s tests/drivers/adc/adc_dma/drivers.adc-dma
INFO    - or with west:
INFO    - west build -p -b frdm_k64f -T tests/drivers/adc/adc_dma/drivers.adc-dma
INFO    - -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
INFO    - Run completed

The handler.log file:

START - test_adc_repeated_samplings
repeated_samplings_callback: done 1
Samples read: 0x0356 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 
0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 
0xffff8000 0xffff8000 0xffff8000 
repeated_samplings_callback: done 2
Samples read: 0x0356 0x0341 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 
0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 
0xffff8000 0xffff8000 0xffff8000 
repeated_samplings_callback: done 3
Samples read: 0x0356 0x03e8 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 
0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 
0xffff8000 0xffff8000 0xffff8000 
repeated_samplings_callback: done 4
Samples read: 0x0356 0x03d9 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 
0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 
0xffff8000 0xffff8000 0xffff8000 
repeated_samplings_callback: done 5
Samples read: 0x0356 0x03e8 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 
0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 
0xffff8000 0xffff8000 0xffff8000 
repeated_samplings_callback: done 6
Samples read: 0x0356 0x03c1 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 
0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 
0xffff8000 0xffff8000 0xffff8000 
repeated_samplings_callback: done 7
Samples read: 0x0356 0x0326 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 
0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 
0xffff8000 0xffff8000 0xffff8000 
repeated_samplings_callback: done 8
Samples read: 0x0356 0x03ee 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 
0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 
0xffff8000 0xffff8000 0xffff8000 
repeated_samplings_callback: done 9
Samples read: 0x0356 0x03d9 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 
0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 
0xffff8000 0xffff8000 0xffff8000 
repeated_samplings_callback: done 10
Samples read: 0x0356 0x03ee 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 
0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 
0xffff8000 0xffff8000 0xffff8000 
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/adc/adc_dma/src/test_adc.c:469: test_task_repeated_samplings: (ret not equal to 0)
adc_read() failed with code -16
FAIL - test_adc_repeated_samplings in 0.017 seconds
===================================================================
START - test_adc_sample_one_channel
Samples read: 0x01cd 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 
0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 
0xffff8000 0xffff8000 0xffff8000 
PASS - test_adc_sample_one_channel in 0.025 seconds
===================================================================
START - test_adc_sample_two_channels
SKIP - test_adc_sample_two_channels in 0.001 seconds
===================================================================
START - test_adc_sample_with_interval
Samples read: 0x03ee 0x03e8 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 
0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 0xffff8000 
0xffff8000 0xffff8000 0xffff8000 
PASS - test_adc_sample_with_interval in 0.225 seconds
===================================================================
TESTSUITE adc_dma failed.
------ TESTSUITE SUMMARY START ------
SUITE FAIL -  80.00% [adc_dma]: pass = 4, fail = 1, skip = 1, total = 6 duration = 0.321 seconds
- PASS - [adc_dma.test_adc_asynchronous_call] duration = 0.024 seconds
- PASS - [adc_dma.test_adc_invalid_request] duration = 0.029 seconds
- FAIL - [adc_dma.test_adc_repeated_samplings] duration = 0.017 seconds
- PASS - [adc_dma.test_adc_sample_one_channel] duration = 0.025 seconds
- SKIP - [adc_dma.test_adc_sample_two_channels] duration = 0.001 seconds
- PASS - [adc_dma.test_adc_sample_with_interval] duration = 0.225 seconds
------ TESTSUITE SUMMARY END ------
===================================================================
RunID: 6db3a500c23afd233d79cdf23fa6c88a
PROJECT EXECUTION FAILED

Environment :

  • OS: Linux
  • Toolchain Zephyr SDK 0.16.0
  • West version: v0.13.1
  • Latest main: 2c2d1c7

Metadata

Metadata

Assignees

Labels

bugThe issue is a bug, or the PR is fixing a bugplatform: NXPNXP

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions