Skip to content

Commit d24609b

Browse files
committed
Add support for filesystem flashing with JLink
1 parent e0781a4 commit d24609b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

builder/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,11 @@ def _jlink_cmd_script(env, source):
330330
if not isdir(build_dir):
331331
makedirs(build_dir)
332332
script_path = join(build_dir, "upload.jlink")
333+
upload_addr = hex(env["FS_START"]) if "uploadfs" in COMMAND_LINE_TARGETS else board.get(
334+
"upload.offset_address", "0x0")
333335
commands = [
334336
"h",
335-
"loadbin %s, %s" % (source, board.get(
336-
"upload.offset_address", "0x0")),
337+
"loadbin %s, %s" % (source, upload_addr),
337338
"r",
338339
"q"
339340
]

0 commit comments

Comments
 (0)