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):
|
if not isdir(build_dir):
|
||||||
makedirs(build_dir)
|
makedirs(build_dir)
|
||||||
script_path = join(build_dir, "upload.jlink")
|
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 = [
|
commands = [
|
||||||
"h",
|
"h",
|
||||||
"loadbin %s, %s" % (source, board.get(
|
"loadbin %s, %s" % (source, upload_addr),
|
||||||
"upload.offset_address", "0x0")),
|
|
||||||
"r",
|
"r",
|
||||||
"q"
|
"q"
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user