Skip to content

STM32WL ADC doesn't work with power management #37352

@honestech74

Description

@honestech74

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:

  1. add the nucleo_wl55jc.overlay to samples/drivers/adc/boards
/ {
	zephyr,user {
		io-channels = <&adc1 11>;
	};
};

&adc1 {
	pinctrl-0 = <&adc_in11_pa15>;
	status = "okay";
};
  1. add configs to the sample project
CONFIG_PM=y
  1. build and flash with nucleo_wl55jc board
  2. 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]

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions