Skip to content

Commit fbaa809

Browse files
committed
Escape path to binary image in J-Link upload script
1 parent 58f5d9a commit fbaa809

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

builder/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,11 +363,11 @@ def _jlink_cmd_script(env, source):
363363
script_path = join(build_dir, "upload.jlink")
364364
commands = ["h"]
365365
if "DFUBOOTHEX" in env:
366-
commands.append("loadbin %s,%s" % (str(source).replace("_signature", ""),
366+
commands.append('loadbin "%s",%s' % (str(source).replace("_signature", ""),
367367
env.BoardConfig().get("upload.offset_address", "0x26000")))
368-
commands.append("loadbin %s,%s" % (source, env.get("BOOT_SETTING_ADDR")))
368+
commands.append('loadbin "%s",%s' % (source, env.get("BOOT_SETTING_ADDR")))
369369
else:
370-
commands.append("loadbin %s,%s" % (source, env.BoardConfig().get(
370+
commands.append('loadbin "%s",%s' % (source, env.BoardConfig().get(
371371
"upload.offset_address", "0x0")))
372372

373373
commands.append("r")

0 commit comments

Comments
 (0)