diff --git a/builder/main.py b/builder/main.py index d34c935..2c60bbc 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("board_upload_target", "rp2040.core0") + ]) openocd_args.extend([ "-c", "program {$SOURCE} %s verify reset; shutdown;" % board.get("upload.offset_address", "")