Skip to content

Commit f4e6aaf

Browse files
gmarulljukkar
authored andcommitted
scripts: west_commands: create_board: fix openocd for nrf52
Since custom boards may not contain the soc name as part of the board name, automatic guess does not work. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 651daf0 commit f4e6aaf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/west_commands/create_board/templates/nrf52/board.cmake.jinja2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
board_runner_args(jlink "--device={{ soc | replace("nrf", "nRF") }}_xx{{ variant[2:] | upper }}" "--speed=4000")
2+
3+
set(OPENOCD_NRF5_SUBFAMILY "nrf52")
24
board_runner_args(pyocd "--target={{ soc }}" "--frequency=4000000")
35

46
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)

0 commit comments

Comments
 (0)