Merge pull request #29 from episource/feature/no-offset-use-elf

Use *.elf instead of *.bin if no offset given
This commit is contained in:
Ivan Kravets 2022-04-01 12:41:46 +03:00 committed by GitHub
commit 1a9864187a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -222,6 +222,8 @@ elif upload_protocol in debug_tools:
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