Commit 8c788e9f authored by Pete Johanson's avatar Pete Johanson Committed by github-actions[bot]
Browse files

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: default avatarPete Johanson <pete.johanson@analog.com>
(cherry picked from commit 0e8ea4d1)
parent d610e2aa
Loading
Loading
Loading
Loading
+1 −0
Changes for boards/common/openocd-adi-max32.boards.cmake: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -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")