-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OS Pwr Manager doesn't put nrf52 into LPS_1 #12025
Comments
If you read the code for the power management example it's pretty clear this isn't a bug. You have to implement the suspend hook yourself. Suggest closing. |
@tautologyclub do you mean pwer_mgr? I can't find any reference to a hook I have to implement. Just to make it clear, this issue is about 'OS Power Management' which should enter the appropriate sleep state 'by itself', see also power.c |
There are no low power states in nRF5x SoCs. The https://github.com/zephyrproject-rtos/zephyr/blob/master/samples/subsys/power/power_mgr example introduces them artificially in order to show the OS-based policies. There is no magic switch which reduces power consumption to XX uA in your design. |
@pizi-nordic ok, let's not name them LPS_x (as I just notived, commit f04a4c9 removed that naming). but without any magic switch, running the simple application mentioned in the description and have the pm handled by the kernel (logging etc. disabled) shouldn't end up in a current consumption of 700uA. |
@pizi-nordic @pabigot is this still a valid issue? |
IMO yes. |
A year later I don't think this is worth keeping open. Currently controlling power is mostly manual, and the referenced sample has been replaced by |
Describe the bug
Using a very simple app (
while (1) {k_sleep(MSEC_PER_SEC);}
in main thread only) with os pwr manager enabled, the lowest current consumption I get is around 700uA, which looks more like LPS_0 than LPS_1Expected behavior
A sleeping SoC for almost 1s with an expected current consumption of around ~5uA rather than 700uA
Additional context
Running the pwr manager demo, the systems sometimes (not reliable) enters LPS_1.
The text was updated successfully, but these errors were encountered: