Add support for filesystem flashing with JLink
This commit is contained in:
parent
e0781a4221
commit
d24609b89e
@ -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"
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user