Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sam_e70b_xplained: failed to run testcases tests/drivers/adc/adc_emul/ #35026

Closed
Zhaoningx opened this issue May 10, 2021 · 1 comment
Closed
Labels
bug The issue is a bug, or the PR is fixing a bug

Comments

@Zhaoningx
Copy link
Collaborator

To Reproduce

Failed to run testcase tests/drivers/adc/adc_emul/

Steps to reproduce the behavior:

export ZEPHYR_SDK_INSTALL_DIR=~/zephyr-sdk-0.12.4

twister -p sam_e70b_xplained --device-testing --device-serial /dev/ttyACM1 -T tests/drivers/adc/adc_emul/

see error

*** Booting Zephyr OS build zephyr-v2.5.0-3742-g0622bde3bf22 ***
Running test suite adc_basic_test

===================================================================
START - test_adc_emul_single_value
E: Selected reference is not valid
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/adc/adc_emul/src/main.c:64: channel_setup: (ret is non-zero)
Setting up of the 0 channel failed with code -22
FAIL - test_adc_emul_single_value in 0.18 seconds

===================================================================
START - test_adc_emul_single_value_2ch
E: Selected reference is not valid
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/adc/adc_emul/src/main.c:64: channel_setup: (ret is non-zero)
Setting up of the 0 channel failed with code -22
FAIL - test_adc_emul_single_value_2ch in 0.18 seconds

===================================================================
START - test_adc_emul_custom_function
E: Selected reference is not valid
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/adc/adc_emul/src/main.c:64: channel_setup: (ret is non-zero)
Setting up of the 0 channel failed with code -22
FAIL - test_adc_emul_custom_function in 0.18 seconds

===================================================================
START - test_adc_emul_custom_function_2ch
E: Selected reference is not valid
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/adc/adc_emul/src/main.c:64: channel_setup: (ret is non-zero)
Setting up of the 0 channel failed with code -22
FAIL - test_adc_emul_custom_function_2ch in 0.18 seconds

===================================================================
START - test_adc_emul_custom_function_and_value
E: Selected reference is not valid
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/adc/adc_emul/src/main.c:64: channel_setup: (ret is non-zero)
Setting up of the 0 channel failed with code -22
FAIL - test_adc_emul_custom_function_and_value in 0.18 seconds

===================================================================
START - test_adc_emul_gain
E: Selected ADC gain is not valid
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/adc/adc_emul/src/main.c:64: channel_setup: (ret is non-zero)
Setting up of the 0 channel failed with code -22
FAIL - test_adc_emul_gain in 0.18 seconds

===================================================================
START - test_adc_emul_input_higher_than_ref
E: Selected reference is not valid
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/adc/adc_emul/src/main.c:64: channel_setup: (ret is non-zero)
Setting up of the 0 channel failed with code -22
FAIL - test_adc_emul_input_higher_than_ref in 0.18 seconds

===================================================================
START - test_adc_emul_reference
E: Selected reference is not valid
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/adc/adc_emul/src/main.c:64: channel_setup: (ret is non-zero)
Setting up of the 0 channel failed with code -22
FAIL - test_adc_emul_reference in 0.18 seconds

===================================================================
START - test_adc_emul_ref_voltage_set
E: Selected reference is not valid
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/adc/adc_emul/src/main.c:64: channel_setup: (ret is non-zero)
Setting up of the 0 channel failed with code -22
FAIL - test_adc_emul_ref_voltage_set in 0.18 seconds

===================================================================
Test suite adc_basic_test failed.

===================================================================
PROJECT EXECUTION FAILED

Environment
OS: Fedora33
Toolchain:zephyr-sdk-0.12.4
Commit ID: 0622bde

@Zhaoningx Zhaoningx added the bug The issue is a bug, or the PR is fixing a bug label May 10, 2021
@galak
Copy link
Collaborator

galak commented May 11, 2021

Closed, should be fixed by #35090

@galak galak closed this as completed May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

No branches or pull requests

2 participants