Use *.elf instead of *.bin if no offset given

This commit is contained in:
Philipp Serr 2022-02-26 22:19:25 +01:00
parent eca3b40879
commit d825c1e531

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