Wake on VBUS connected but not disconnectedW

Hi,

we are developing a device which should go to system off on receival of a command either via USB or BLE. If the device is connected via USB and is put into sleep it wakes up if the cable is disconnected. But it should stay in system off. Any idea why this happens and how to avoid it.

Kind regards,

C.W.

Parents Reply
  • Okay but I would say that the code is correct

        // reset areas
    
        static uint32_ reset_reas = 0x00000000;
        sd_power_reset_reason_get(&reset_reas);
        sd_power_reset_reason_clr(0x000F000F);
        NRF_LOG_ERROR("Reset reason %x", reset_reas);

    Because it behaves correct when I do a reset via the debugger. It gives 0x4 which means SREQ which is correct. But if I pull the USB cable it gives 0x100000. Which is protected.

Children
Related