zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.6k stars 6.49k forks source link

test: tests/driver/adc/adc_api: frdm_mcxn947/mcxn947/cpu0 : test failure since first merge #74842

Closed hakehuang closed 2 months ago

hakehuang commented 3 months ago

Describe the bug adc does not function as expected

Please also mention any information which could help others to understand the problem you're facing:

To Reproduce Steps to reproduce the behavior:

scripts/twister build -b frdm_mcxn947/mcxn947/cpu0 -T tests/driver/adc/adc_api
scripts/twister flash

Expected behavior Test PASS

Impact ALL ADC functions

Logs and console output

*** Booting Zephyr OS build v3.7.0-rc1-242-ge5c05da9cbda ***
Running TESTSUITE adc_basic
===================================================================
START - test_adc_asynchronous_call
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/adc/adc_api/src/test_adc.c:86: init_adc: (ret not equal to 0)
Setting up of channel 0 failed with code -22
FAIL - test_adc_asynchronous_call in 0.015 seconds
===================================================================
START - test_adc_invalid_request
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/adc/adc_api/src/test_adc.c:86: init_adc: (ret not equal to 0)
Setting up of channel 0 failed with code -22
FAIL - test_adc_invalid_request in 0.015 seconds
===================================================================
START - test_adc_repeated_samplings
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/adc/adc_api/src/test_adc.c:86: init_adc: (ret not equal to 0)
Setting up of channel 0 failed with code -22
FAIL - test_adc_repeated_samplings in 0.015 seconds
===================================================================
START - test_adc_sample_one_channel
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/adc/adc_api/src/test_adc.c:86: init_adc: (ret not equal to 0)
Setting up of channel 0 failed with code -22
FAIL - test_adc_sample_one_channel in 0.015 seconds
===================================================================
START - test_adc_sample_two_channels
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/adc/adc_api/src/test_adc.c:86: init_adc: (ret not equal to 0)
Setting up of channel 0 failed with code -22
FAIL - test_adc_sample_two_channels in 0.015 seconds
===================================================================
START - test_adc_sample_with_interval
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/adc/adc_api/src/test_adc.c:86: init_adc: (ret not equal to 0)
Setting up of channel 0 failed with code -22
FAIL - test_adc_sample_with_interval in 0.015 seconds
===================================================================
TESTSUITE adc_basic failed.
------ TESTSUITE SUMMARY START ------
SUITE FAIL -   0.00% [adc_basic]: pass = 0, fail = 6, skip = 0, total = 6 duration = 0.090 seconds
- FAIL - [adc_basic.test_adc_asynchronous_call] duration = 0.015 seconds
- FAIL - [adc_basic.test_adc_invalid_request] duration = 0.015 seconds
- FAIL - [adc_basic.test_adc_repeated_samplings] duration = 0.015 seconds
- FAIL - [adc_basic.test_adc_sample_one_channel] duration = 0.015 seconds
- FAIL - [adc_basic.test_adc_sample_two_channels] duration = 0.015 seconds
- FAIL - [adc_basic.test_adc_sample_with_interval] duration = 0.015 seconds
------ TESTSUITE SUMMARY END ------
===================================================================
RunID: 1c35e182024c27d2ee6903329cc977ac
PROJECT EXECUTION FAILED

Environment (please complete the following information):

Additional context

this case kept failing since first merged by https://github.com/zephyrproject-rtos/zephyr/pull/70642

ZhaoxiangJin commented 3 months ago

The FRDM MCXN947 board LPADC test case was directly copied from the internal bitbucket repo, sorry for not doing a full test. I'm now working on resolving this bug.