kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/verify-directory-exists' into 'master'
Bugfix: add check for existence build directory Closes IDF-984 See merge request espressif/esp-idf!9695pull/5688/head
commit
ba717a298f
|
@ -109,10 +109,10 @@ def action_extensions(base_actions, project_path):
|
||||||
run_tool("idf_monitor", monitor_args, args.project_dir)
|
run_tool("idf_monitor", monitor_args, args.project_dir)
|
||||||
|
|
||||||
def flash(action, ctx, args):
|
def flash(action, ctx, args):
|
||||||
ensure_build_directory(args, ctx.info_name)
|
|
||||||
"""
|
"""
|
||||||
Run esptool to flash the entire project, from an argfile generated by the build system
|
Run esptool to flash the entire project, from an argfile generated by the build system
|
||||||
"""
|
"""
|
||||||
|
ensure_build_directory(args, ctx.info_name)
|
||||||
if args.port is None:
|
if args.port is None:
|
||||||
args.port = _get_default_serial_port()
|
args.port = _get_default_serial_port()
|
||||||
|
|
||||||
|
@ -120,6 +120,7 @@ def action_extensions(base_actions, project_path):
|
||||||
"ESPBAUD": str(args.baud)})
|
"ESPBAUD": str(args.baud)})
|
||||||
|
|
||||||
def erase_flash(action, ctx, args):
|
def erase_flash(action, ctx, args):
|
||||||
|
ensure_build_directory(args, ctx.info_name)
|
||||||
esptool_args = _get_esptool_args(args)
|
esptool_args = _get_esptool_args(args)
|
||||||
esptool_args += ["erase_flash"]
|
esptool_args += ["erase_flash"]
|
||||||
run_tool("esptool.py", esptool_args, args.build_dir)
|
run_tool("esptool.py", esptool_args, args.build_dir)
|
||||||
|
|
Ładowanie…
Reference in New Issue