mec15xxevb_assy6853: tests/drivers/adc/adc_api asynchronous test failed #49601
Labels
bug
The issue is a bug, or the PR is fixing a bug
platform: Microchip MEC
Microchip MEC Platform
priority: low
Low impact/importance bug
Describe the bug
mec15xxevb_assy6853 board daily test tests/drivers/adc/adc_api asynchronous test failed
Please also mention any information which could help others to understand
the problem you're facing:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The test can pass
Impact
1 test case fail in daily test.
Some times the ADC will lost a sample.
Logs and console output
Original log
Add some printk
Environment (please complete the following information):
Additional context
The test will collect 5 samples of the ADC.
In the last sample, the interrupt is triggered, but the register shows there is no channel that have the ADC data.
If there is there is no ADC channel ready, there should not be an interrupt.
But in this case, I think the interrupt is correct, the problem is the adc_regs->status_reg not correct. If manually set the channel of last sample to 16, the case can pass correctly. So we need to analyze why this value is 0.
the WA
If change the timer to 2000ms, the problem will 100% happen.
The text was updated successfully, but these errors were encountered: