File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 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)
77include (${ZEPHYR_BASE} /boards/common/openocd.board.cmake)
8+ include (${ZEPHYR_BASE} /boards/common/jlink.board.cmake)
Original file line number Diff line number Diff line change @@ -14,13 +14,15 @@ endif()
1414# MAX32666 share the same target configuration file with MAX32665
1515if (CONFIG_SOC_MAX32666)
1616 set (MAX32_TARGET_CFG "max32665.cfg" )
17+ elseif (CONFIG_SOC_MAX32657)
18+ set (MAX32_INTERFACE_CFG "jlink.cfg" )
1719endif ()
1820
1921board_runner_args(openocd --cmd-pre-init "source [find interface/${MAX32_INTERFACE_CFG} ]" )
2022board_runner_args(openocd --cmd-pre-init "source [find target/${MAX32_TARGET_CFG} ]" )
2123board_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" )
2628endif ()
You can’t perform that action at this time.
0 commit comments