Browse Source

boards: common: Enable debugging MAX32 with pico + OpenOCD

Explicitly set the OpenOCD target-handle so `west debug` will work
as expected on MAX32 targets using a supported OpenOCD version.

Signed-off-by: Pete Johanson <pete.johanson@analog.com>
(cherry picked from commit 0e8ea4d12a)
backport-87080-to-v4.1-branch
Pete Johanson 4 months ago committed by github-actions[bot]
parent
commit
8c788e9fb2
  1. 1
      boards/common/openocd-adi-max32.boards.cmake

1
boards/common/openocd-adi-max32.boards.cmake

@ -34,6 +34,7 @@ endif() @@ -34,6 +34,7 @@ endif()
board_runner_args(openocd --cmd-pre-init "source [find interface/${MAX32_INTERFACE_CFG}]")
board_runner_args(openocd --cmd-pre-init "source [find target/${MAX32_TARGET_CFG}]")
board_runner_args(openocd "--target-handle=_CHIPNAME.cpu")
if(CONFIG_SOC_FAMILY_MAX32_M4)
board_runner_args(openocd --cmd-pre-init "allow_low_pwr_dbg")

Loading…
Cancel
Save