diff --git a/builder/main.py b/builder/main.py index 60b9231..8bcdd2a 100644 --- a/builder/main.py +++ b/builder/main.py @@ -237,7 +237,7 @@ def _jlink_cmd_script(env, source): if not isdir(build_dir): makedirs(build_dir) script_path = join(build_dir, "upload.jlink") - commands = ["h", "loadbin %s,0x0" % source, "r", "q"] + commands = ["h", "loadfile %s" % source, "r", "q"] with open(script_path, "w") as fp: fp.write("\n".join(commands)) return script_path