esptool: Add support for ESP32-S2 Secure Download Mode

* Pass --no-stub from build system if configured to enable ESP32-S2 Secure Download Mode
* Update esptool submodule
This commit is contained in:
Angus Gratton
2020-04-25 16:44:27 +10:00
committed by Angus Gratton
parent f64ae4fa99
commit d45eabe676
5 changed files with 16 additions and 3 deletions
@@ -153,6 +153,9 @@ else()
list(APPEND esptool_flash_main_args "--after=${CONFIG_ESPTOOLPY_AFTER}")
endif()
if(NOT CONFIG_ESPTOOLPY_WITH_STUB)
list(APPEND esptool_flash_main_args "--no-stub")
endif()
idf_component_set_property(esptool_py FLASH_ARGS "${esptool_flash_main_args}")
idf_component_set_property(esptool_py FLASH_SUB_ARGS "${ESPTOOLPY_FLASH_OPTIONS}")