diff --git a/boards/raspberrypi/rpi_pico2/board.cmake b/boards/raspberrypi/rpi_pico2/board.cmake index 5e6d859dff360d6..686fbd9d40e354e 100644 --- a/boards/raspberrypi/rpi_pico2/board.cmake +++ b/boards/raspberrypi/rpi_pico2/board.cmake @@ -5,12 +5,12 @@ if ("${RPI_PICO_DEBUG_ADAPTER}" STREQUAL "") endif() board_runner_args(openocd --cmd-pre-init "source [find interface/${RPI_PICO_DEBUG_ADAPTER}.cfg]") -board_runner_args(openocd --cmd-pre-init "transport select swd") board_runner_args(openocd --cmd-pre-init "source [find target/rp2350.cfg]") # The adapter speed is expected to be set by interface configuration. -# But if not so, set 2000 to adapter speed. -board_runner_args(openocd --cmd-pre-init "set_adapter_speed_if_not_set 2000") +# The Raspberry Pi's OpenOCD fork doesn't, so match their documentation at +# https://www.raspberrypi.com/documentation/microcontrollers/debug-probe.html#debugging-with-swd +board_runner_args(openocd --cmd-pre-init "set_adapter_speed_if_not_set 5000") board_runner_args(uf2 "--board-id=RP2350")