From 7028676d81c038990055c4869b998f04f85e4e56 Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Tue, 18 Feb 2025 16:17:16 +0100 Subject: [PATCH] feat(debugger): set dapdirect_swd as default transport hla_swd deprecated since STLink V2 (2015). Signed-off-by: Frederic Pillon --- boards.txt | 2 -- platform.txt | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/boards.txt b/boards.txt index a76f15d662..7d0187e247 100644 --- a/boards.txt +++ b/boards.txt @@ -474,7 +474,6 @@ Nucleo_64.menu.pnum.NUCLEO_C071RB.build.variant=STM32C0xx/C071R(8-B)T Nucleo_64.menu.pnum.NUCLEO_C071RB.build.peripheral_pins=-DCUSTOM_PERIPHERAL_PINS Nucleo_64.menu.pnum.NUCLEO_C071RB.build.st_extra_flags=-D{build.product_line} {build.enable_usb} {build.xSerial} -D__CORTEX_SC=0 Nucleo_64.menu.pnum.NUCLEO_C071RB.openocd.target=stm32c0x -Nucleo_64.menu.pnum.NUCLEO_C071RB.debug.server.openocd.scripts.1={runtime.platform.path}/debugger/select_dapdirect.cfg Nucleo_64.menu.pnum.NUCLEO_C071RB.debug.svd_file={runtime.tools.STM32_SVD.path}/svd/STM32C0xx/STM32C071.svd # NUCLEO_F030R8 board @@ -831,7 +830,6 @@ Nucleo_64.menu.pnum.NUCLEO_U083RC.build.product_line=STM32U083xx Nucleo_64.menu.pnum.NUCLEO_U083RC.build.variant=STM32U0xx/U073R(8-B-C)(I-T)_U083RC(I-T) Nucleo_64.menu.pnum.NUCLEO_U083RC.build.st_extra_flags=-D{build.product_line} {build.enable_usb} {build.xSerial} -D__CORTEX_SC=0 Nucleo_64.menu.pnum.NUCLEO_U083RC.openocd.target=stm32u0x -Nucleo_64.menu.pnum.NUCLEO_U083RC.debug.server.openocd.scripts.1={runtime.platform.path}/debugger/select_dapdirect.cfg Nucleo_64.menu.pnum.NUCLEO_U083RC.debug.svd_file={runtime.tools.STM32_SVD.path}/svd/STM32U0xx/STM32U083.svd # NUCLEO_WB15CC diff --git a/platform.txt b/platform.txt index afb13c19a5..2ef7ec0305 100644 --- a/platform.txt +++ b/platform.txt @@ -258,5 +258,5 @@ debug.server.openocd.path={openocd_dir}/bin/openocd debug.server.openocd.scripts_dir={openocd_dir}/openocd/scripts # Common config debug.server.openocd.scripts.0=interface/stlink.cfg -debug.server.openocd.scripts.1={runtime.platform.path}/debugger/select_hla.cfg +debug.server.openocd.scripts.1={runtime.platform.path}/debugger/select_dapdirect.cfg debug.server.openocd.scripts.2=target/{openocd.target}.cfg