From a327a715c68599ba6d9ee63927b7a154aebd90d7 Mon Sep 17 00:00:00 2001 From: dongheng Date: Tue, 5 Mar 2019 15:12:19 +0800 Subject: [PATCH] feat(esptool_py): Add option to use soft reset after finishing downloading Closes https://github.com/espressif/ESP8266_RTOS_SDK/pull/221 --- components/esptool_py/Kconfig.projbuild | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/components/esptool_py/Kconfig.projbuild b/components/esptool_py/Kconfig.projbuild index 5e1d028f..fd442542 100644 --- a/components/esptool_py/Kconfig.projbuild +++ b/components/esptool_py/Kconfig.projbuild @@ -170,23 +170,26 @@ config ESPTOOLPY_BEFORE choice ESPTOOLPY_AFTER prompt "After flashing" - default ESPTOOLPY_AFTER_RESET + default ESPTOOLPY_AFTER_HARD_RESET help - Configure whether esptool.py should reset the ESP32 after flashing. + Configure whether esptool.py should reset the ESP8266 after flashing. Automatic resetting depends on the RTS & DTR signals being wired from the serial port to the ESP32. Most USB development boards do this internally. -config ESPTOOLPY_AFTER_RESET - bool "Reset after flashing" +config ESPTOOLPY_AFTER_HARD_RESET + bool "Hard reset after flashing" +config ESPTOOLPY_AFTER_SOFT_RESET + bool "Soft reset after flashing" config ESPTOOLPY_AFTER_NORESET bool "Stay in bootloader" endchoice config ESPTOOLPY_AFTER string - default "hard_reset" if ESPTOOLPY_AFTER_RESET + default "hard_reset" if ESPTOOLPY_AFTER_HARD_RESET + default "soft_reset" if ESPTOOLPY_AFTER_SOFT_RESET default "no_reset" if ESPTOOLPY_AFTER_NORESET choice MONITOR_BAUD