Hi all, there is something that wake my board from system off but i don't understand who. Someone have a suggestion?
Thank you, Anna
Hi all, there is something that wake my board from system off but i don't understand who. Someone have a suggestion?
Thank you, Anna
Does your system wake up straight after calling system off? What is your main source for wakeup in design? If GPIO for example then make sure that you clear events port before system off otherwise previouse signal changes on IO remembered.
Hi Alex, wake up and curent consumption is high variable from 0.5 uA to 1.5 uA . Yes i use a gpio example to wake the system with Gpio Interrupt. Before to go in sleep mode i use this configuration to set the gpio wake up
uint32_t BTN_SetWakeUpBotton(BTN_Id_t idButton )
{
uint32_t new_sense = 0;
for (int btnIndex = 0; btnIndex < BTN_ID_STOP; btnIndex ++) { uint32_t new_cnf = NRF_GPIO->PIN_CNF[ButtonConfigTable[btnIndex].pin_no]; if(ButtonConfigTable[btnIndex].idBtn == idButton) { new_sense = GPIO_PIN_CNF_SENSE_Low; } else { new_sense = GPIO_PIN_CNF_SENSE_Disabled; }
new_cnf &= ~GPIO_PIN_CNF_SENSE_Msk;
new_cnf |= (new_sense << GPIO_PIN_CNF_SENSE_Pos);
NRF_GPIO->PIN_CNF[ButtonConfigTable[btnIndex].pin_no] = new_cnf;
} return NRF_SUCCESS;
}
Also, i try to read register RESETREAS for understand if a Reset is reason of wkae up. I read that the field A (RW RESETPIN) C(RW SREQ) and E RW OFF are 1.
Check 19.2 in here regarding events and system wakeup. From your previous posts I understand that you are using nRF52.