-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
tests/drivers/adc/adc_api failed on mec15xxevb_assy6853 board. #21755
Comments
Comment from dcpleung: requires specific hardware setup for ADC to work (jumpers and a reasonable voltage source). It possibly needs pinmux changes in code. IIRC, the ADC pins are being used for other purposes in the EC code where this test would not work as-is |
On header J35, instead of connecting pins 1-2 and 4-5, try pin 1-2 and 3-4. This provides the ADC pins with ~2.048V with Vref at 3.0V. With 12-bit ADC, this should give you values around 0xAF0. |
After changing the jumper on header J35 to pin 1-2 and 3-4 , Sanity check is PASSED Environment (please complete the following information): |
@225296 could you show me how to connect pins on JP35? |
@chen-png JP35 is not the header we use for ADC , Environment (please complete the following information): |
@225296 thanks, i will have a try. |
@225296 i shorted pin 1-2 and pin 3-4 and ran this test, it wouldn't report any error, but it would stop at "test_adc_repeated_samplings", do you know how to fix this? *** Booting Zephyr OS build zephyr-v2.2.0-1091-gc98652b42f12 *** starting test - test_adc_sample_one_channel starting test - test_adc_sample_two_channels starting test - test_adc_asynchronous_call starting test - test_adc_sample_with_interval starting test - test_adc_repeated_samplings |
This is due to the board going into deep sleep and not waking up. |
how to fix this? otherwise, it will always be judged as failed test cases by sanity check script. |
In current power management scheme, it is possible to turn on DEVICE_POWER_MANAGEMENT and modify the device driver to take advantage of this. It is also possible to modify the residency so the test would not fail. |
To Reproduce
Steps to reproduce the behavior:
https://docs.zephyrproject.org/latest/boards/arm/mec1501modular_assy6885/doc/index.html to set up.
Screenshots or console output
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: