Hello,
I am testing nrf52840 low power module on usb power supply, but it's current is about 22ua not 7ua.

hardware design

software design
int main(void)
{
nrf_delay_ms(100);
NRF_POWER->DCDCEN = 1;
APP_ERROR_CHECK(NRF_LOG_INIT(NULL));
NRF_LOG_DEFAULT_BACKENDS_INIT();
clock_init();
NRF_LOG_INFO("lowpower test.");
m_flag = true;
while (true) {
NRF_LOG_PROCESS();
if (m_flag) {
nrf_delay_ms(100);
for (uint8_t index = 0; index < 32; index++) {
NRF_GPIO->PIN_CNF[index] =
(GPIO_PIN_CNF_SENSE_Disabled << GPIO_PIN_CNF_SENSE_Pos) |
(GPIO_PIN_CNF_DRIVE_S0S1 << GPIO_PIN_CNF_DRIVE_Pos) |
(GPIO_PIN_CNF_PULL_Disabled << GPIO_PIN_CNF_PULL_Pos) |
(GPIO_PIN_CNF_INPUT_Disconnect << GPIO_PIN_CNF_INPUT_Pos) |
(GPIO_PIN_CNF_DIR_Input << GPIO_PIN_CNF_DIR_Pos);
}
NRF_TIMER2->TASKS_SHUTDOWN = 1;
NRF_TIMER1->TASKS_SHUTDOWN = 1;
NRF_TIMER0->TASKS_SHUTDOWN = 1;
NRF_RTC0->TASKS_STOP = 1;
NRF_RTC1->TASKS_STOP = 1;
NRF_RADIO->TASKS_STOP = 1;
NRF_CLOCK->TASKS_HFCLKSTOP = 1;
NRF_CLOCK->TASKS_LFCLKSTOP = 1;
__WFE();
__WFE();
__WFI();
__WFI();
__WFI();
}
}
}
Can you give me some advice? Thanks.

