From 9c50e0c8096042a162f49334faa71e0a6a678632 Mon Sep 17 00:00:00 2001 From: xiongweichao Date: Wed, 10 Jan 2024 15:16:55 +0800 Subject: [PATCH] fix(ble): Fixed the issue of being unable to enter light sleep - Fixed the issue where light sleep cannot be entered when external 32k XTAL does not exist --- examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32c3 | 2 ++ examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32s3 | 2 ++ 2 files changed, 4 insertions(+) diff --git a/examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32c3 b/examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32c3 index 6fe39ffb73..fff614bf97 100644 --- a/examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32c3 +++ b/examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32c3 @@ -5,6 +5,8 @@ CONFIG_BT_CTRL_MODEM_SLEEP=y CONFIG_BT_CTRL_MODEM_SLEEP_MODE_1=y # Bluetooth low power clock CONFIG_BT_CTRL_LPCLK_SEL_EXT_32K_XTAL=y +# Power up main XTAL during light sleep +CONFIG_BT_CTRL_MAIN_XTAL_PU_DURING_LIGHT_SLEEP=y # RTC clock source CONFIG_RTC_CLK_SRC_EXT_CRYS=y diff --git a/examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32s3 b/examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32s3 index 4e9d2f3edf..306bc4ab2d 100644 --- a/examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32s3 +++ b/examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32s3 @@ -5,6 +5,8 @@ CONFIG_BT_CTRL_MODEM_SLEEP=y CONFIG_BT_CTRL_MODEM_SLEEP_MODE_1=y # Bluetooth low power clock CONFIG_BT_CTRL_LPCLK_SEL_EXT_32K_XTAL=y +# Power up main XTAL during light sleep +CONFIG_BT_CTRL_MAIN_XTAL_PU_DURING_LIGHT_SLEEP=y # RTC clock source CONFIG_RTC_CLK_SRC_EXT_CRYS=y