PWM not working when CONFIG_PM_DEVICE_RUNTIM is enabled on nRF52840

Hi folks,

I am working on an nRF52840-based custom board using nRF Connect SDK v3.2.4 and have observed an issue related to runtime power management and PWM.

Environment

  • SoC: nRF52840
  • NCS Version: v3.2.4
  • PWM Instance: pwm0
  • Use Case: Motor control

The motor control works as expected when runtime power management is disabled.

However, when I enable:

CONFIG_PM=y
CONFIG_PM_DEVICE=y
CONFIG_PM_DEVICE_RUNTIME=y

PWM0 no longer generates the expected output and the motor does not operate correctly.

Q: What is the recommended approach for keeping PWM active for continuous motor control while still benefiting from runtime power management ?

Thank you for your support.

Related