From 22b1a2cc1272f5b5ca147e939b2def121ee3151e Mon Sep 17 00:00:00 2001 From: Philipp Serr Date: Mon, 28 Feb 2022 11:59:08 +0100 Subject: [PATCH 1/2] Add upload_target option --- builder/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/builder/main.py b/builder/main.py index d34c935..561d82c 100644 --- a/builder/main.py +++ b/builder/main.py @@ -209,6 +209,9 @@ def _jlink_cmd_script(env, source): openocd_args.extend( ["-c", "adapter speed %s" % env.GetProjectOption("debug_speed")] ) + openocd_args.extend([ + "-c", "targets %s" % env.GetProjectOption("upload_target", "rp2040.core0") + ]) openocd_args.extend([ "-c", "program {$SOURCE} %s verify reset; shutdown;" % board.get("upload.offset_address", "") From 73ed9866de98edf130bf7e7fdd0ff98fa24b4335 Mon Sep 17 00:00:00 2001 From: Philipp Serr Date: Tue, 1 Mar 2022 19:40:43 +0100 Subject: [PATCH 2/2] Rename option to board_upload_target --- builder/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/main.py b/builder/main.py index 561d82c..2c60bbc 100644 --- a/builder/main.py +++ b/builder/main.py @@ -210,7 +210,7 @@ def _jlink_cmd_script(env, source): ["-c", "adapter speed %s" % env.GetProjectOption("debug_speed")] ) openocd_args.extend([ - "-c", "targets %s" % env.GetProjectOption("upload_target", "rp2040.core0") + "-c", "targets %s" % env.GetProjectOption("board_upload_target", "rp2040.core0") ]) openocd_args.extend([ "-c", "program {$SOURCE} %s verify reset; shutdown;" %