new console

This commit is contained in:
Sergey Shchelkanov 2023-06-02 17:03:34 +03:00
parent 01e24277f8
commit ed1c19cc73

View File

@ -205,10 +205,10 @@ def upload_file(
f"{openocd_exec} -s {openocd_scripts} " f"{openocd_exec} -s {openocd_scripts} "
f"-f {openocd_interface} -f {openocd_target}", posix=False f"-f {openocd_interface} -f {openocd_target}", posix=False
) )
# proc = subprocess.Popen(
# cmd, creationflags=subprocess.CREATE_NEW_CONSOLE | subprocess.SW_HIDE)
proc = subprocess.Popen( proc = subprocess.Popen(
cmd, creationflags= subprocess.SW_HIDE) cmd, creationflags=subprocess.CREATE_NEW_CONSOLE | subprocess.SW_HIDE)
# proc = subprocess.Popen(
# cmd, creationflags= subprocess.SW_HIDE)
with OpenOcdTclRpc(host, port) as openocd: with OpenOcdTclRpc(host, port) as openocd:
pages_eeprom = segments_to_pages(list(filter( pages_eeprom = segments_to_pages(list(filter(