Hi Sir/Miss,
I'm using nrf52832, softdevice s132 and SDK 17.0.2.
In specification, I saw nrf52832 has a ultra low power mode.
It's in system on with full retention RAM or without retention RAM.
I enable a RTC2 to tick and count the calendar, I want to let nrf52832 in ultra low power mode and running RTC.
Then, it can be wake up by using GPIOs.
Is it possible to run RTC in ultra low power mode?
Another question, I remove peripheral circuit in our board. It's just keeping components which nrf52832 needs.
I try it with sd_power_system_off(); The sleep current nears specification value (1uA).
But, when I use sd_app_evt_wait() or __WFE. That current is 2.X mA.
And, it can't be waked up in sd_app_evt_wait() and __WFE.
Here is my entering sleep mode code.
void shutdown_configuration(void)
{
uint32_t err_code;
nrf_gpio_cfg_input(BTN_START_PIN, NRF_GPIO_PIN_NOPULL);
while(1)
{
if(nrf_gpio_pin_read(BTN_START_PIN) == 1)
{
nrf_gpio_pin_sense_t sense = NRF_GPIO_PIN_SENSE_LOW;
nrf_gpio_cfg_sense_set(BTN_START_PIN, sense);
break;
}
}
//err_code = sd_power_system_off(); // 1uA
//err_code = sd_app_evt_wait(); // mA
//APP_ERROR_CHECK(err_code);
// mA
__SEV();
__WFE();
__WFE();
}
Please help.
Thank you.