feat(esptool_py): Add option to use soft reset after finishing downloading

Closes https://github.com/espressif/ESP8266_RTOS_SDK/pull/221
This commit is contained in:
dongheng
2019-03-05 15:12:19 +08:00
parent c726af8fda
commit a327a715c6

View File

@ -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