Skip to content

Commit

Permalink
Merge pull request #29 from episource/feature/no-offset-use-elf
Browse files Browse the repository at this point in the history
Use *.elf instead of *.bin if no offset given
  • Loading branch information
ivankravets authored Apr 1, 2022
2 parents a05a0c6 + d825c1e commit 1a98641
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ def _jlink_cmd_script(env, source):
UPLOADER="openocd",
UPLOADERFLAGS=openocd_args,
UPLOADCMD="$UPLOADER $UPLOADERFLAGS")
if not board.get("upload").get("offset_address"):
upload_source = target_elf
upload_actions = [env.VerboseAction("$UPLOADCMD", "Uploading $SOURCE")]

# custom upload tool
Expand Down

0 comments on commit 1a98641

Please # to comment.