From a6400b42feeb2cc44aacb14d7b29370602cb9ce2 Mon Sep 17 00:00:00 2001 From: Mario Paja Date: Tue, 16 Apr 2024 18:03:24 +0200 Subject: [PATCH] boards: st: b_u585_iot02a: add segger jlink support This PR adds the possibility to use the Segger JLink debugger with b_u858_iot02a board. Signed-off-by: Mario Paja --- boards/st/b_u585i_iot02a/board.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boards/st/b_u585i_iot02a/board.cmake b/boards/st/b_u585i_iot02a/board.cmake index e09257e941..73320d749c 100644 --- a/boards/st/b_u585i_iot02a/board.cmake +++ b/boards/st/b_u585i_iot02a/board.cmake @@ -19,7 +19,10 @@ board_runner_args(openocd "--tcl-port=6666") board_runner_args(openocd --cmd-pre-init "gdb_report_data_abort enable") board_runner_args(openocd "--no-halt") +board_runner_args(jlink "--device=STM32U585AI" "--reset-after-load") + include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake) # FIXME: openocd runner requires use of STMicro openocd fork. # Check board documentation for more details. include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake) +include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)