Hi DA team
In the previous post you told me "The DA14682 can wake up form hibernation via the VBUS (USB) interrupt."
But I can only wake up via the wkup button。
I plugged in the USB while sleeping and did not enter the VBUS_Handler。
I can only do the following configuration:
hw_wkup_init(NULL); hw_wkup_configure_pin(HW_GPIO_PORT_1,HW_GPIO_PIN_6, 1, HW_WKUP_PIN_STATE_LOW); hw_wkup_register_interrupt(button_interrupt_cb, 1);
and in button_interrupt_cb is:
void button_interrupt_cb(void) { hw_cmp_reboot_system(); }
Please tell me how to configure to wake up using VBUS(USB) interrupt in hibernation state.
very thanks!
Device:

Hi There,
Apologies let me clarify my answer.
In case of extended sleep mode, DA14682 can wake-up in two ways:
In case of hibernation mode, DA14682 can only wake-up asynchronously from the Wake-up timer.
If you would like to wake-up the DA14682 with VBUS (USB) interrupt, a possible solution would be to use the VBUS to trigger GPIO by dividing VBUS with pull-up resistor and connecting GPIO with pull-down setting. The VBUS plugin could wakeup the system is by generating RST pulse when VBUS plugs in. Any GPIO can be used to wake the chip from hibernation. Another possible solution would be to use a C-R circuit in the VBUS line, that circuit generates a pulse that was applied to the RST pin. The same can be used for a GPIO.
Thanks, PM_Dialog