Skip to content

Commit 2a8b256

Browse files
yvandervcarlescufi
authored andcommitted
boards: mimxrt1020_evk: enable linkserver support
- adds the definitions in the board.cmake file - updates documentation Signed-off-by: Yves Vandervennet <[email protected]>
1 parent 8ecda04 commit 2a8b256

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

boards/arm/mimxrt1020_evk/board.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
board_runner_args(pyocd "--target=mimxrt1020")
88
board_runner_args(jlink "--device=MIMXRT1021xxx5A")
9+
board_runner_args(linkserver "--device=MIMXRT1021xxxxx:EVK-MIMXRT1020")
910

11+
include(${ZEPHYR_BASE}/boards/common/linkserver.board.cmake)
1012
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
1113
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)

boards/arm/mimxrt1020_evk/doc/index.rst

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,23 @@ however the :ref:`pyocd-debug-host-tools` do not yet support programming the
231231
external flashes on this board so you must reconfigure the board for one of the
232232
following debug probes instead.
233233

234-
Option 1: :ref:`opensda-jlink-onboard-debug-probe` (Recommended)
235-
----------------------------------------------------------------
234+
Using LinkServer
235+
----------------
236+
237+
Install the :ref:`linkserver-debug-host-tools` and make sure they are in your
238+
search path. LinkServer works with the default CMSIS-DAP firmware included in
239+
the on-board debugger.
240+
241+
Linkserver is the default runner. You may also se the ``-r linkserver`` option
242+
with West to use the LinkServer runner.
243+
244+
.. code-block:: console
245+
246+
west flash
247+
west debug
248+
249+
JLink (on-board): :ref:`opensda-jlink-onboard-debug-probe`
250+
----------------------------------------------------------
236251

237252
Install the :ref:`jlink-debug-host-tools` and make sure they are in your search
238253
path.
@@ -242,8 +257,8 @@ the `OpenSDA J-Link MIMXRT1020-EVK Firmware`_. Check that jumpers J27 and J28
242257
are **on** (they are on by default when boards ship from the factory) to ensure
243258
SWD signals are connected to the OpenSDA microcontroller.
244259

245-
Option 2: :ref:`jlink-external-debug-probe`
246-
-------------------------------------------
260+
External JLink: :ref:`jlink-external-debug-probe`
261+
-------------------------------------------------
247262

248263
Install the :ref:`jlink-debug-host-tools` and make sure they are in your search
249264
path.

0 commit comments

Comments
 (0)