Skip to content

Commit

Permalink
Fix upload with blackmagic probe
Browse files Browse the repository at this point in the history
  • Loading branch information
h2zero committed Jan 10, 2025
1 parent 9e61108 commit 6ba7d47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def AfterUpload(target, source, env): # pylint: disable=W0613,W0621
UPLOADERFLAGS=[
"-nx",
"--batch",
"-ex", "target extended-remote %s$UPLOAD_PORT" % '\\\\.\\' if IS_WINDOWS else '',
"-ex", "target extended-remote %s$UPLOAD_PORT" % ('\\\\.\\' if IS_WINDOWS else ''),
"-ex", "monitor %s_scan" %
("jtag" if upload_protocol == "blackmagic-jtag" else "swdp"),
"-ex", "attach 1",
Expand All @@ -220,7 +220,7 @@ def AfterUpload(target, source, env): # pylint: disable=W0613,W0621
ERASEFLAGS=[
"-nx",
"--batch",
"-ex", "target extended-remote %s$UPLOAD_PORT" % '\\\\.\\' if IS_WINDOWS else '',
"-ex", "target extended-remote %s$UPLOAD_PORT" % ('\\\\.\\' if IS_WINDOWS else ''),
"-ex", "monitor %s_scan" %
("jtag" if upload_protocol == "blackmagic-jtag" else "swdp"),
"-ex", "attach 1",
Expand Down

0 comments on commit 6ba7d47

Please sign in to comment.