убран лишний вывод

This commit is contained in:
sh-sergey 2024-12-27 18:09:50 +03:00
parent 2d5a23268f
commit 304469890b
3 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
__pycache__
.vscode
openocd
venv
*.code-workspace
dist
mik32_upload.spec

View File

@ -45,7 +45,6 @@ def init_periphery(openocd: OpenOcdTclRpc):
def init(openocd: OpenOcdTclRpc):
print("MCU clock init", flush=True)
init_periphery(openocd)

View File

@ -240,6 +240,8 @@ def upload_file(
time.sleep(0.1)
with OpenOcdTclRpc(host, port) as openocd:
try:
openocd.run(f"log_output \"{log_path}\"")
openocd.run(f"debug_level 1")
openocd.run("capture \"riscv.cpu curstate\"")
except OSError as e:
print("ERROR: Tcl port connection failed")
@ -248,8 +250,7 @@ def upload_file(
if (all(openocd_interface.find(i) == -1 for i in adapter_speed_not_supported)):
openocd.run(f"adapter speed {adapter_speed}")
openocd.run(f"log_output \"{log_path}\"")
openocd.run(f"debug_level 1")
logging.debug("OpenOCD configured!")