mirror of
https://github.com/MikronMIK32/mik32-uploader.git
synced 2026-10-29 18:11:13 +03:00
убран лишний вывод
This commit is contained in:
1 parent
2d5a23268f
commit
304469890b
3 files changed
+4
-3
No files matched your search
@@ -1,6 +1,7 @@
|
|||||||
__pycache__
|
__pycache__
|
||||||
.vscode
|
.vscode
|
||||||
openocd
|
openocd
|
||||||
|
venv
|
||||||
*.code-workspace
|
*.code-workspace
|
||||||
dist
|
dist
|
||||||
mik32_upload.spec
|
mik32_upload.spec
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ def init_periphery(openocd: OpenOcdTclRpc):
|
|||||||
|
|
||||||
|
|
||||||
def init(openocd: OpenOcdTclRpc):
|
def init(openocd: OpenOcdTclRpc):
|
||||||
print("MCU clock init", flush=True)
|
|
||||||
|
|
||||||
init_periphery(openocd)
|
init_periphery(openocd)
|
||||||
|
|
||||||
|
|||||||
+3
-2
@@ -240,6 +240,8 @@ def upload_file(
|
|||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
with OpenOcdTclRpc(host, port) as openocd:
|
with OpenOcdTclRpc(host, port) as openocd:
|
||||||
try:
|
try:
|
||||||
|
openocd.run(f"log_output \"{log_path}\"")
|
||||||
|
openocd.run(f"debug_level 1")
|
||||||
openocd.run("capture \"riscv.cpu curstate\"")
|
openocd.run("capture \"riscv.cpu curstate\"")
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
print("ERROR: Tcl port connection failed")
|
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)):
|
if (all(openocd_interface.find(i) == -1 for i in adapter_speed_not_supported)):
|
||||||
openocd.run(f"adapter speed {adapter_speed}")
|
openocd.run(f"adapter speed {adapter_speed}")
|
||||||
openocd.run(f"log_output \"{log_path}\"")
|
|
||||||
openocd.run(f"debug_level 1")
|
|
||||||
|
|
||||||
logging.debug("OpenOCD configured!")
|
logging.debug("OpenOCD configured!")
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user