Skip to content

Commit c0960d2

Browse files
butokkartben
authored andcommitted
boards: nxp: mimxrt1160_evk: set LinkServer as the default runner
Sets LinkServer as the default runner for mimxrt1160-evk boards, as the board is configured for CMSIS-DAP by default. Signed-off-by: Andrej Butok <[email protected]>
1 parent 40ec42e commit c0960d2

File tree

2 files changed

+21
-22
lines changed

2 files changed

+21
-22
lines changed

boards/nxp/mimxrt1160_evk/board.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ board_runner_args(pyocd "--target=mimxrt1160_cm4")
1414
board_runner_args(jlink "--device=MIMXRT1166xxx6_M4")
1515
endif()
1616

17-
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
1817
include(${ZEPHYR_BASE}/boards/common/linkserver.board.cmake)
18+
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
1919
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)

boards/nxp/mimxrt1160_evk/doc/index.rst

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -209,15 +209,6 @@ The secondary core can be debugged normally in single core builds
209209
secondary core should be placed into a loop, then a debugger can be attached
210210
(see `AN13264`_, section 4.2.3 for more information)
211211

212-
Configuring a Debug Probe
213-
=========================
214-
215-
A debug probe is used for both flashing and debugging the board. This board is
216-
configured by default to use the :ref:`opensda-daplink-onboard-debug-probe`,
217-
however the :ref:`pyocd-debug-host-tools` do not yet support programming the
218-
external flashes on this board so you must reconfigure the board for one of the
219-
following debug probes instead.
220-
221212
Launching Images Targeting M4 Core
222213
==================================
223214
If building targeting the M4 core, the M7 core must first run code to launch
@@ -237,26 +228,34 @@ so:
237228
If desired, this behavior can be disabled by building with
238229
``-DSB_CONFIG_SECOND_CORE_MCUX_LAUNCHER=n``
239230

231+
Configuring a Debug Probe
232+
=========================
233+
234+
A debug probe is used for both flashing and debugging the board. The on-board
235+
debugger :ref:`opensda-daplink-onboard-debug-probe`
236+
works with the LinkServer runner, or can be reprogrammed with JLink firmware.
237+
238+
Using LinkServer
239+
----------------
240+
241+
Install the :ref:`linkserver-debug-host-tools` and make sure they are in your
242+
search path. LinkServer works with the default CMSIS-DAP firmware included in
243+
the on-board debugger.
244+
240245
Using J-Link
241246
------------
242247

243-
Install the :ref:`jlink-debug-host-tools` and make sure they are in your search
244-
path.
248+
Install the :ref:`jlink-debug-host-tools` and make sure they are in your search path.
245249

246-
There are two options: the onboard debug circuit can be updated with Segger
247-
J-Link firmware, or :ref:`jlink-external-debug-probe` can be attached to the
250+
The on-board debug circuit can be updated with Segger J-Link firmware,
251+
or :ref:`jlink-external-debug-probe` can be attached to the
248252
EVK. See `Using J-Link with MIMXRT1160-EVK or MIMXRT1170-EVK`_ for more details.
249253

250-
Using LinkServer
251-
----------------
254+
Use the ``-r jlink`` option with West to use the jlink runner.
252255

253-
Install the :ref:`linkserver-debug-host-tools` and make sure they are in your
254-
search path. LinkServer works with the CMSIS-DAP firmware include in LinkServer
255-
install. Please follow the ``LPCScrypt\docs\Debug_Probe_Firmware_Programming.pdf``
256-
for more details.
256+
.. code-block:: console
257257
258-
Linkserver is the default runner. You may also se the ``-r linkserver`` option
259-
with West to use the LinkServer runner.
258+
west flash -r jlink
260259
261260
Configuring a Console
262261
=====================

0 commit comments

Comments
 (0)