E5F8 esp32: Skip validation of image on boot from deepsleep. · micropython/micropython@0bafdaf · GitHub
[go: up one dir, main page]

Skip to content

Commit 0bafdaf

Browse files
glenn20dpgeorge
authored andcommitted
esp32: Skip validation of image on boot from deepsleep.
sdkconfig.base: Add CONFIG_BOOTLOADER_SKIP_VALIDATE_IN_DEEP_SLEEP=y. This reduces time to boot from deepsleep by at least 200ms and can provide significant power savings for deepsleep-based battery applications. docs/library/esp32.rst: Add note cautioning not to enter deepsleep after changing the boot partition, without first performing a hard reset. Signed-off-by: Glenn Moloney <glenn.moloney@gmail.com>
1 parent 5e50593 commit 0bafdaf

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/library/esp32.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ methods to enable over-the-air (OTA) updates.
114114

115115
Sets the partition as the boot partition.
116116

117+
.. note:: Do not enter :func:`deepsleep<machine.deepsleep>` after changing
118+
the OTA boot partition, without first performing a hard
119+
:func:`reset<machine.reset>` or power cycle. This ensures the bootloader
120+
will validate the new image before booting.
121+
117122
.. method:: Partition.get_next_update()
118123

119124
Gets the next update partition after this one, and returns a new Partition object.

ports/esp32/boards/sdkconfig.base

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ CONFIG_APP_EXCLUDE_PROJECT_NAME_VAR=y
1313

1414
# Bootloader config
1515
CONFIG_BOOTLOADER_LOG_LEVEL_WARN=y
16+
CONFIG_BOOTLOADER_SKIP_VALIDATE_IN_DEEP_SLEEP=y
1617

1718
# Change default log level to "ERROR" (instead of "INFO")
1819
CONFIG_LOG_DEFAULT_LEVEL_INFO=n

0 commit comments

Comments
 (0)
0