Add support for filesystem flashing with JLink

This commit is contained in:
unknown 2022-06-17 17:59:34 +02:00
parent e0781a4221
commit d24609b89e

View File

@ -330,10 +330,11 @@ elif upload_protocol.startswith("jlink"):
if not isdir(build_dir):
makedirs(build_dir)
script_path = join(build_dir, "upload.jlink")
upload_addr = hex(env["FS_START"]) if "uploadfs" in COMMAND_LINE_TARGETS else board.get(
"upload.offset_address", "0x0")
commands = [
"h",
"loadbin %s, %s" % (source, board.get(
"upload.offset_address", "0x0")),
"loadbin %s, %s" % (source, upload_addr),
"r",
"q"
]