Open
Description
Describe the bug
If enabled CONFIG_ADC and CONFIG_PM, you can read just once using adc_read()
, then Zephyr halts.
To Reproduce
Steps to reproduce the behavior:
- add the
nucleo_wl55jc.overlay
tosamples/drivers/adc/boards
/ {
zephyr,user {
io-channels = <&adc1 11>;
};
};
&adc1 {
pinctrl-0 = <&adc_in11_pa15>;
status = "okay";
};
- add configs to the sample project
CONFIG_PM=y
- build and flash with
nucleo_wl55jc
board - see the log
Expected behavior
It should show the ADC reading every second.
Logs and console output
Before enabled CONFIG_PM, could see the ADC value every second.
After enabled CONFIG_PM, only could see the ADC value one time, then not running.
Environment (please complete the following information):
- Ubuntu 18.04
- Toolchain: 0.12.4
- Zephyr v2.6.99
[UPDATED]
- Zephyr commit SHA-1:
57690f5