Skip to content

Commit

Permalink
Use unix path separator when uploading via openocd
Browse files Browse the repository at this point in the history
  • Loading branch information
valeros committed Oct 14, 2019
1 parent 5ea5b94 commit 8609343
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,9 @@ def _jlink_cmd_script(env, source):
openocd_args.extend(
debug_tools.get(upload_protocol).get("server").get("arguments", []))
openocd_args.extend([
"-c", "program {$SOURCE} %s verify reset; shutdown;" %
board.get("upload.offset_address", "0x8000000")
"-c", "program %s %s verify reset; shutdown;" % (
env.subst(upload_source)[0].replace("\\", "/"), board.get(
"upload.offset_address", "0x8000000"))
])
openocd_args = [
f.replace("$PACKAGE_DIR",
Expand Down

0 comments on commit 8609343

Please sign in to comment.