Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions boards/nxp/lpcxpresso55s69/board.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,19 @@
## DAP Link implementation in pyocd is underway,
## until then jlink can be used or copy image to storage

if(CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0 OR
CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0_NS OR
CONFIG_SECOND_CORE_MCUX)
board_runner_args(linkserver "--device=LPC55S69:LPCXpresso55S69")

if(CONFIG_SECOND_CORE_MCUX)
board_runner_args(linkserver "--core=all")
elseif(CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0 OR
CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0_NS)
board_runner_args(jlink "--device=LPC55S69_M33_0")
board_runner_args(linkserver "--device=LPC55S69:LPCXpresso55S69")
board_runner_args(linkserver "--override=/device/memory/0/flash-driver=LPC55xx_S.cfx")
board_runner_args(linkserver "--override=/device/memory/0/location=0x10000000")
board_runner_args(linkserver "--core=cm33_core0")
elseif(CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU1)
board_runner_args(jlink "--device=LPC55S69_M33_1")
board_runner_args(linkserver "--core=cm33_core1")
endif()

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

include(${ZEPHYR_BASE}/boards/common/linkserver.board.cmake)
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
include(${ZEPHYR_BASE}/boards/common/linkserver.board.cmake)
7 changes: 4 additions & 3 deletions boards/nxp/lpcxpresso55s69/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ Build and flash applications as usual (see :ref:`build_an_application` and
Configuring a Debug Probe
=========================

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

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

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

.. code-block:: console

***** Booting Zephyr OS v1.14.0 *****
Hello World! lpcxpresso55s69
***** Booting Zephyr OS v3.7.0 *****
Hello World! lpcxpresso55s69/lpc55s69/cpu0

Building and flashing secure/non-secure with Arm |reg| TrustZone |reg|
----------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion scripts/west_commands/runners/linkserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

DEFAULT_LINKSERVER_EXE = 'Linkserver.exe' if sys.platform == 'win32' else 'LinkServer'
DEFAULT_LINKSERVER_GDB_PORT = 3333
DEFAULT_LINKSERVER_SEMIHOST_PORT = 3334
DEFAULT_LINKSERVER_SEMIHOST_PORT = 8888

class LinkServerBinaryRunner(ZephyrBinaryRunner):
'''Runner front-end for NXP Linkserver'''
Expand Down Expand Up @@ -95,6 +95,7 @@ def do_add_parser(cls, parser):
@classmethod
def do_create(cls, cfg, args):

print("RUNNER - gdb_port = " + str(args.gdb_port) + ", semih port = " + str(args.semihost_port))
return LinkServerBinaryRunner(cfg, args.device, args.core,
linkserver=args.linkserver,
dt_flash=args.dt_flash,
Expand Down
Loading