Skip to content

Commit baf4b70

Browse files
committed
boards: lpcxpresso55s69: enable multicore debugging
- Refactoring of the cmake code so LinkServer can be invoked with the correct switches. - Documentation update Signed-off-by: Yves Vandervennet <[email protected]>
1 parent 0e036a3 commit baf4b70

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

boards/nxp/lpcxpresso55s69/board.cmake

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,19 @@
88
## DAP Link implementation in pyocd is underway,
99
## until then jlink can be used or copy image to storage
1010

11-
if(CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0 OR
12-
CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0_NS OR
13-
CONFIG_SECOND_CORE_MCUX)
11+
board_runner_args(linkserver "--device=LPC55S69:LPCXpresso55S69")
12+
13+
if(CONFIG_SECOND_CORE_MCUX)
14+
board_runner_args(linkserver "--core=all")
15+
elseif(CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0 OR
16+
CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0_NS)
1417
board_runner_args(jlink "--device=LPC55S69_M33_0")
15-
board_runner_args(linkserver "--device=LPC55S69:LPCXpresso55S69")
1618
board_runner_args(linkserver "--override=/device/memory/0/flash-driver=LPC55xx_S.cfx")
1719
board_runner_args(linkserver "--override=/device/memory/0/location=0x10000000")
20+
board_runner_args(linkserver "--core=cm33_core0")
1821
elseif(CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU1)
1922
board_runner_args(jlink "--device=LPC55S69_M33_1")
23+
board_runner_args(linkserver "--core=cm33_core1")
2024
endif()
2125

2226
board_runner_args(pyocd "--target=lpc55s69")
@@ -25,6 +29,6 @@ if(CONFIG_BUILD_WITH_TFM)
2529
set_property(TARGET runners_yaml_props_target PROPERTY hex_file tfm_merged.hex)
2630
endif()
2731

32+
include(${ZEPHYR_BASE}/boards/common/linkserver.board.cmake)
2833
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
2934
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
30-
include(${ZEPHYR_BASE}/boards/common/linkserver.board.cmake)

boards/nxp/lpcxpresso55s69/doc/index.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ Build and flash applications as usual (see :ref:`build_an_application` and
273273
Configuring a Debug Probe
274274
=========================
275275

276+
LinkServer is the default runner for this board.
276277
A debug probe is used for both flashing and debugging the board. This board is
277278
configured by default to use the LPC-Link2 CMSIS-DAP Onboard Debug Probe,
278279
however the :ref:`pyocd-debug-host-tools` does not yet support this probe so you
@@ -316,7 +317,7 @@ Flashing
316317
========
317318

318319
Here is an example for the :zephyr:code-sample:`hello_world` application. This example uses the
319-
:ref:`jlink-debug-host-tools` as default.
320+
:ref:`linkserver-debug-host-tools` as default.
320321

321322
.. zephyr-app-commands::
322323
:zephyr-app: samples/hello_world
@@ -328,8 +329,8 @@ see the following message in the terminal:
328329

329330
.. code-block:: console
330331
331-
***** Booting Zephyr OS v1.14.0 *****
332-
Hello World! lpcxpresso55s69
332+
***** Booting Zephyr OS v3.7.0 *****
333+
Hello World! lpcxpresso55s69/lpc55s69/cpu0
333334
334335
Building and flashing secure/non-secure with Arm |reg| TrustZone |reg|
335336
----------------------------------------------------------------------

0 commit comments

Comments
 (0)