diff --git a/components/esptool_py/esptool b/components/esptool_py/esptool index cd38666103..9c41a57955 160000 --- a/components/esptool_py/esptool +++ b/components/esptool_py/esptool @@ -1 +1 @@ -Subproject commit cd386661033d25521b1312cf7fa4699ff4719f77 +Subproject commit 9c41a57955b3c4b3873d653ac0d87c0900b135ff diff --git a/components/esptool_py/project_include.cmake b/components/esptool_py/project_include.cmake index b284845f70..dd3659dd59 100644 --- a/components/esptool_py/project_include.cmake +++ b/components/esptool_py/project_include.cmake @@ -2,7 +2,7 @@ # # Many of these are read when generating flash_app_args & flash_project_args idf_build_get_property(python PYTHON) -set(ESPTOOLPY ${python} "${CMAKE_CURRENT_LIST_DIR}/esptool/esptool.py" --chip esp32) +set(ESPTOOLPY ${python} "${CMAKE_CURRENT_LIST_DIR}/esptool/esptool.py" --chip ${IDF_TARGET}) set(ESPSECUREPY ${python} "${CMAKE_CURRENT_LIST_DIR}/esptool/espsecure.py") set(ESPEFUSEPY ${python} "${CMAKE_CURRENT_LIST_DIR}/esptool/espefuse.py")