Skip to content

Commit 129c28f

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: Pete Johanson <[email protected]>
1 parent 3a4cfa3 commit 129c28f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ endif()
3434

3535
board_runner_args(openocd --cmd-pre-init "source [find interface/${MAX32_INTERFACE_CFG}]")
3636
board_runner_args(openocd --cmd-pre-init "source [find target/${MAX32_TARGET_CFG}]")
37+
board_runner_args(openocd "--target-handle=_CHIPNAME.cpu")
3738

3839
if(CONFIG_SOC_FAMILY_MAX32_M4)
3940
board_runner_args(openocd --cmd-pre-init "allow_low_pwr_dbg")

0 commit comments

Comments
 (0)