Skip to content

Commit ed4069c

Browse files
ozersakartben
authored andcommitted
boards: adi: Centralize openocd debugger configuration
Add a common openocd configuration files for MAX32 MCUs to simplify maintanence of them. After this update it will be easy to add/remove new command Signed-off-by: Sadik Ozer <[email protected]>
1 parent c268f15 commit ed4069c

File tree

17 files changed

+65
-50
lines changed

17 files changed

+65
-50
lines changed

boards/adi/apard32690/board.cmake

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
# Copyright (c) 2024 Analog Devices, Inc.
1+
# 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/cmsis-dap.cfg]")
5-
board_runner_args(openocd --cmd-pre-init "source [find target/max32690.cfg]")
64
board_runner_args(jlink "--device=MAX32690" "--reset-after-load")
75

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

boards/adi/max32655evkit/board.cmake

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

4-
board_runner_args(openocd --cmd-pre-init "source [find interface/cmsis-dap.cfg]")
5-
board_runner_args(openocd --cmd-pre-init "source [find target/max32655.cfg]")
64
board_runner_args(jlink "--device=MAX32655" "--reset-after-load")
75

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

boards/adi/max32655fthr/board.cmake

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

4-
board_runner_args(openocd --cmd-pre-init "source [find interface/cmsis-dap.cfg]")
5-
board_runner_args(openocd --cmd-pre-init "source [find target/max32655.cfg]")
6-
4+
include(${ZEPHYR_BASE}/boards/common/openocd-adi-max32.boards.cmake)
75
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)

boards/adi/max32662evkit/board.cmake

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
# Copyright (c) 2024 Analog Devices, Inc.
1+
# 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/cmsis-dap.cfg]")
5-
board_runner_args(openocd --cmd-pre-init "source [find target/max32662.cfg]")
64
board_runner_args(jlink "--device=MAX32662" "--reset-after-load")
75

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

boards/adi/max32666evkit/board.cmake

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
# Copyright (c) 2024 Analog Devices, Inc.
1+
# 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/cmsis-dap.cfg]")
5-
board_runner_args(openocd --cmd-pre-init "source [find target/max32665.cfg]")
64
board_runner_args(jlink "--device=MAX32666" "--reset-after-load")
75

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

boards/adi/max32666fthr/board.cmake

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

4-
board_runner_args(openocd --cmd-pre-init "source [find interface/cmsis-dap.cfg]")
5-
board_runner_args(openocd --cmd-pre-init "source [find target/max32665.cfg]")
64
board_runner_args(jlink "--device=MAX32666" "--reset-after-load")
75

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

boards/adi/max32670evkit/board.cmake

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
# Copyright (c) 2024 Analog Devices, Inc.
1+
# 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/cmsis-dap.cfg]")
5-
board_runner_args(openocd --cmd-pre-init "source [find target/max32670.cfg]")
6-
4+
include(${ZEPHYR_BASE}/boards/common/openocd-adi-max32.boards.cmake)
75
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)

boards/adi/max32672evkit/board.cmake

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
# Copyright (c) 2024 Analog Devices, Inc.
1+
# 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/cmsis-dap.cfg]")
5-
board_runner_args(openocd --cmd-pre-init "source [find target/max32672.cfg]")
64
board_runner_args(jlink "--device=MAX32672" "--reset-after-load")
75

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

boards/adi/max32672fthr/board.cmake

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
# Copyright (c) 2024 Analog Devices, Inc.
1+
# 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/cmsis-dap.cfg]")
5-
board_runner_args(openocd --cmd-pre-init "source [find target/max32672.cfg]")
6-
4+
include(${ZEPHYR_BASE}/boards/common/openocd-adi-max32.boards.cmake)
75
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)

boards/adi/max32675evkit/board.cmake

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
# Copyright (c) 2024 Analog Devices, Inc.
1+
# 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/cmsis-dap.cfg]")
5-
board_runner_args(openocd --cmd-pre-init "source [find target/max32675.cfg]")
64
board_runner_args(jlink "--device=MAX32675" "--reset-after-load")
75

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

0 commit comments

Comments
 (0)