dump.py: OpenOCD: Fixed targetfw paths with spaces not working

Signed-off-by: CTXz <ctx.xda@gmail.com>
This commit is contained in:
CTXz
2023-10-01 18:44:02 +02:00
parent e779950ad4
commit d434d7b8ba

View File

@@ -287,7 +287,7 @@ def upload_target_fw(fw_path: str):
result = openocd_run(
"stlink.cfg",
"stm32f1x.cfg",
["init", "load_image " + fw_path + " " + str(hex(SRAM_START)), "exit"],
["init", 'load_image "' + fw_path + '" ' + str(hex(SRAM_START)), "exit"],
)
for line in result.stderr.splitlines():