wakeup from gpio does not workin deep sleep mode
Hi
Wakeup from gpio works fine when TUYA_CPU_SLEEP mode is used. However when TUYA_CPU_DEEP_SLEEP mode is used the device does not wakeup from sleep.
the wakeup settings in sdk are as below
// TUYA DEEP SLEEP MODE SETTINGS
tkl_cpu_sleep_mode_set(1, TUYA_CPU_SLEEP);
Code: Select all
// WAKE UP SOURCE SETTINGS
TUYA_WAKEUP_SOURCE_BASE_CFG_T param;
param.source = TUYA_WAKEUP_SOURCE_GPIO;
param.wakeup_para.gpio_param.gpio_num = TUYA_GPIO_NUM_12;
param.wakeup_para.gpio_param.level = TUYA_GPIO_LEVEL_LOW;
tkl_wakeup_source_set(¶m);
the low level signal (ground) to TUYA_GPIO_NUM_12 for waking up the cpu is provided by TUYA_GPIO_NUM_16 through a pushbutton.
This works fine in TUYA_CPU_SLEEP mode .
However in TUYA_CPU_DEEP_SLEEP mode the TUYA_GPIO_NUM_16 is no longer able to provide the low level signal as the cpu goes into sleep mode. how do we fix the scenario. no other external connection is available to the wakeup pin.