Skip to content

Commit 84ec336

Browse files
ozersakartben
authored andcommitted
boards: adi: Enable jlink runner for MAX32657
Enable JLink runner for MAX32657 Signed-off-by: Sadik Ozer <[email protected]>
1 parent 9e6ca51 commit 84ec336

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Copyright (c) 2024-2025 Analog Devices, Inc.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
board_runner_args(openocd --cmd-pre-init "source [find interface/jlink.cfg]")
5-
board_runner_args(openocd --cmd-pre-init "source [find target/max32657.cfg]")
4+
board_runner_args(jlink "--device=MAX32657" "--reset-after-load")
65

6+
include(${ZEPHYR_BASE}/boards/common/openocd-adi-max32.boards.cmake)
77
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
8+
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ endif()
1414
# MAX32666 share the same target configuration file with MAX32665
1515
if(CONFIG_SOC_MAX32666)
1616
set(MAX32_TARGET_CFG "max32665.cfg")
17+
elseif(CONFIG_SOC_MAX32657)
18+
set(MAX32_INTERFACE_CFG "jlink.cfg")
1719
endif()
1820

1921
board_runner_args(openocd --cmd-pre-init "source [find interface/${MAX32_INTERFACE_CFG}]")
2022
board_runner_args(openocd --cmd-pre-init "source [find target/${MAX32_TARGET_CFG}]")
2123
board_runner_args(openocd "--target-handle=_CHIPNAME.cpu")
2224

23-
if(CONFIG_SOC_FAMILY_MAX32_M4)
25+
if(CONFIG_SOC_FAMILY_MAX32_M4 OR CONFIG_SOC_FAMILY_MAX32_M33)
2426
board_runner_args(openocd --cmd-pre-init "allow_low_pwr_dbg")
2527
board_runner_args(openocd "--cmd-erase=max32xxx mass_erase 0")
2628
endif()

0 commit comments

Comments
 (0)