This is my environment
- IDE: VSC
- SDK: NCS v2.2.0
- nRF52-DK
I've been trying to get my current consumption down during System On Idle mode (spec sheet says I can get sub-2uA). I can get this to work with a simple example code I've put together, and I simply make a call to:
pm_device_action_run(uart, PM_DEVICE_ACTION_SUSPEND);
ret = uart_rx_disable(uart); if (ret !=0) { LOG_WRN("Error disabling UART: err %d\n", ret); } ret = pm_device_action_run(uart, PM_DEVICE_ACTION_SUSPEND); if (ret !=0) { LOG_WRN("Error suspending device: err %d\n", ret); }
[00:12:21.031,707] <wrn> idle_mode: Error suspending device: err -120 [00:12:22.031,860] <wrn> idle_mode: Error suspending device: err -120
EALREADY 120 Operation already in progress.