Power Management stopped shell working on uart0

Hello,

I'm trying to implement runtime power management (SDK 2.9.0), but as soon as I enable the option, the shell and logging on UART0 stop working at startup. The rest of the system functions normally.The status of UART0 is active, and I have never put it in standby.

Do you have any idea what might be causing this?

Changed configuration options :
CONFIG_PM_DEVICE=y
CONFIG_PM_DEVICE_RUNTIME=y
If I remove these two lines, everything works fine...

BR
Parents Reply
  • Hi,

    Thanks for confirming that the example worked. 

    timl2415 said:
    Applying this commit as a patch alone in 2.9.0 fixes the uart shell when PM_DEVICE_RUNTIME is enabled, I also didn't have to edit my devicetree or call pm_device_runtime_get.

    When PM device runtime is enabled for the driver (enabled by setting the pm-device-runtime-auto property), the shell device will start in suspended mode, and the application must call pm_device_runtime_get() before using it.

    timl2415 said:
    I confirmed the modified example works, although I was trying to backport the fixes back to NCS 2.9.0

    v3.0.0 will be tagged soon, so I recommend upgrading the SDK if possible.

Children
No Data
Related