mirror of
https://github.com/MikronMIK32/mik32-uploader.git
synced 2026-01-01 05:27:05 +03:00
убран лишний вывод
This commit is contained in:
parent
2d5a23268f
commit
304469890b
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,6 +1,7 @@
|
||||
__pycache__
|
||||
.vscode
|
||||
openocd
|
||||
venv
|
||||
*.code-workspace
|
||||
dist
|
||||
mik32_upload.spec
|
||||
|
||||
@ -45,7 +45,6 @@ def init_periphery(openocd: OpenOcdTclRpc):
|
||||
|
||||
|
||||
def init(openocd: OpenOcdTclRpc):
|
||||
print("MCU clock init", flush=True)
|
||||
|
||||
init_periphery(openocd)
|
||||
|
||||
|
||||
@ -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!")
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user