Skip to content

Commit 4ae5c1e

Browse files
kvanherckhenrikbrixandersen
authored andcommitted
boards: raspberrypi: rpi_pico2: Add jlink runner for rpi_pico2 board
jlink runner works fine for the Pico2, just like Pico1 (rpi_pico). Copied relevant lines from rpi_pico/board.cmake. Fixed typo in documentation. Signed-off-by: Koen Van Herck <koen.v.herck@gmail.com>
1 parent 2dd0b4f commit 4ae5c1e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

boards/raspberrypi/rpi_pico2/board.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ board_runner_args(openocd --cmd-pre-init "source [find target/rp2350.cfg]")
1212
# https://www.raspberrypi.com/documentation/microcontrollers/debug-probe.html#debugging-with-swd
1313
board_runner_args(openocd --cmd-pre-init "set_adapter_speed_if_not_set 5000")
1414

15+
board_runner_args(jlink "--device=RP2350_M33_0")
1516
board_runner_args(uf2 "--board-id=RP2350")
1617

1718
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
19+
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
1820
include(${ZEPHYR_BASE}/boards/common/uf2.board.cmake)

boards/raspberrypi/rpi_pico2/doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Programming and Debugging
4242

4343
.. zephyr:board-supported-runners::
4444
45-
The overall explanation regarding flashing and debugging is the same as or :zephyr:board:`rpi_pico`.
45+
The overall explanation regarding flashing and debugging is the same as for :zephyr:board:`rpi_pico`.
4646
See :ref:`rpi_pico_programming_and_debugging` in :zephyr:board:`rpi_pico` documentation. N.b. OpenOCD support requires using Raspberry Pi's forked version of OpenOCD.
4747

4848
Below is an example of building and flashing the :zephyr:code-sample:`blinky` application.

0 commit comments

Comments
 (0)