diff --git a/components/esptool_py/project_include.cmake b/components/esptool_py/project_include.cmake index 6163529b2..2194bc62c 100644 --- a/components/esptool_py/project_include.cmake +++ b/components/esptool_py/project_include.cmake @@ -133,7 +133,7 @@ function(esptool_py_custom_target target_name flasher_filename dependencies) -D ESPTOOLPY="${ESPTOOLPY}" -D ESPTOOL_ARGS="write_flash;@flash_${flasher_filename}_args" -D ESPTOOL_WORKING_DIR="${IDF_BUILD_ARTIFACTS_DIR}" - -P run_esptool.cmake + -P ${IDF_PATH}/components/esptool_py/run_esptool.cmake WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} USES_TERMINAL )