Skip to content

Commit

Permalink
[build] Fixed '0x0x' prefix for UF2 memory map
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Rush authored and salkinium committed Jun 20, 2023
1 parent 2384756 commit 07d4b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/build_script_generator/make/module.lb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def post_build(env):
if subs["core"].startswith("cortex-m"):
# get memory information
subs["memories"] = env.query("::memories")
subs["uf2mem"] = ["0x{}:0x{}:{}".format(hex(m["start"]), hex(m["start"] + m["size"]),
subs["uf2mem"] = ["{:#x}:{:#x}:{}".format(m["start"], m["start"] + m["size"],
"CONTENTS" if "flash" in m["name"] else "NO_CONTENTS")
for m in subs["memories"]]
else:
Expand Down

0 comments on commit 07d4b7f

Please sign in to comment.