Skip to content

Commit 1a98641

Browse files
authored
Merge pull request #29 from episource/feature/no-offset-use-elf
Use *.elf instead of *.bin if no offset given
2 parents a05a0c6 + d825c1e commit 1a98641

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

builder/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ def _jlink_cmd_script(env, source):
222222
UPLOADER="openocd",
223223
UPLOADERFLAGS=openocd_args,
224224
UPLOADCMD="$UPLOADER $UPLOADERFLAGS")
225+
if not board.get("upload").get("offset_address"):
226+
upload_source = target_elf
225227
upload_actions = [env.VerboseAction("$UPLOADCMD", "Uploading $SOURCE")]
226228

227229
# custom upload tool

0 commit comments

Comments
 (0)