]> granicus.if.org Git - esp-idf/commitdiff
sdkconfig: set CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 by default
authorIvan Grokhotkov <ivan@espressif.com>
Mon, 15 May 2017 02:32:35 +0000 (10:32 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Thu, 25 May 2017 02:51:39 +0000 (10:51 +0800)
To increase the chances that the examples work out of the box, this
change is raising the default deep sleep wakeup delay to 1ms.
If GPIO15 is low at startup, ROM code takes less time to execute
(because no logging is performed), so more time may be needed to allow
flash chip to become ready.

components/esp32/Kconfig
examples/system/deep_sleep/sdkconfig.defaults
examples/system/ulp/sdkconfig.defaults
examples/system/ulp_adc/sdkconfig.defaults

index c5145219729cb017d2cb2d4c6dffee687f7ad89e..3625ce59e076091077bf6eb7dceb574454994ac4 100644 (file)
@@ -548,18 +548,18 @@ config ESP32_RTC_CLK_CAL_CYCLES
 
 config ESP32_DEEP_SLEEP_WAKEUP_DELAY
     int "Extra delay in deep sleep wake stub (in us)"
-    default 0
+    default 2000
     range 0 5000
     help
         When ESP32 exits deep sleep, the CPU and the flash chip are powered on
         at the same time. CPU will run deep sleep stub first, and then
         proceed to load code from flash. Some flash chips need sufficient
         time to pass between power on and first read operation. By default,
-        without any extra delay, this time is approximately 900us.
-
-        If you are using a flash chip which needs more than 900us to become
-        ready after power on, set this parameter to add extra delay
-        to the default deep sleep stub.
+        without any extra delay, this time is approximately 900us, although
+        some flash chip types need more than that.
+        
+        By default extra delay is set to 2000us. When optimizing startup time
+        for applications which require it, this value may be reduced. 
 
         If you are seeing "flash read err, 1000" message printed to the
         console after deep sleep reset, try increasing this value.
index dd7da3f88d73b5fcadc164422d7742dabca50304..78f466407ffddc6085c40b7cd5c371d70c81dd78 100644 (file)
@@ -4,4 +4,3 @@ CONFIG_ULP_COPROC_ENABLED=y
 CONFIG_ULP_COPROC_RESERVE_MEM=512
 CONFIG_ESP32_TIME_SYSCALL_USE_RTC_FRC1=y
 CONFIG_ESP32_RTC_CLOCK_SOURCE_INTERNAL_RC=y
-CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=500
index 0ce9dc7632b37d3b58cc5f0aed3beb2c0b538559..f6d33f3948fd89d1cce9c701dcdc9111f02e82ec 100644 (file)
@@ -1,9 +1,6 @@
 # Enable ULP
 CONFIG_ULP_COPROC_ENABLED=y
 CONFIG_ULP_COPROC_RESERVE_MEM=1024
-# Some flash chips need extra time to wake up
-# Set this a bit higher to improve out-of-the-box experience
-CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=500
 # Set log level to Warning to produce clean output
 CONFIG_LOG_BOOTLOADER_LEVEL_WARN=y
 CONFIG_LOG_BOOTLOADER_LEVEL=2
index 68a23afddb57ae1aacb72fa56581c0e857550388..f6d33f3948fd89d1cce9c701dcdc9111f02e82ec 100644 (file)
@@ -1,9 +1,6 @@
 # Enable ULP
 CONFIG_ULP_COPROC_ENABLED=y
 CONFIG_ULP_COPROC_RESERVE_MEM=1024
-# Some flash chips need extra time to wake up
-# Set this a bit higher to improve out-of-the-box experience
-CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=1000
 # Set log level to Warning to produce clean output
 CONFIG_LOG_BOOTLOADER_LEVEL_WARN=y
 CONFIG_LOG_BOOTLOADER_LEVEL=2