This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How understand who wake up from system off

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

Parents
  • 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;

    }

Reply
  • 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;

    }

Children
No Data
Related