Skip to content

Commit 95fbda3

Browse files
yvandervtomchy
authored andcommitted
[nrf fromtree] west: linkserver: change the default port number for semihost
LinkServer manages port numbers for gdb and semihost as separate linear sequences when invoked to debug multi-core applications, e.g the gdb-server instance for cpu0 will have the default GDB port 3333 and the next gdb-server instance will be assigned the port 3334. The latter will conflict with the default port for semihost which is 3334. This patch changes the default port for semihost to 8888. Port numbers can be changed when invoking the linkserver runner. Signed-off-by: Yves Vandervennet <[email protected]> (cherry picked from commit 7b29b66) Signed-off-by: Tomasz Chyrowicz <[email protected]>
1 parent 36c71ec commit 95fbda3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/west_commands/runners/linkserver.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
DEFAULT_LINKSERVER_EXE = 'Linkserver.exe' if sys.platform == 'win32' else 'LinkServer'
2020
DEFAULT_LINKSERVER_GDB_PORT = 3333
21-
DEFAULT_LINKSERVER_SEMIHOST_PORT = 3334
21+
DEFAULT_LINKSERVER_SEMIHOST_PORT = 8888
2222

2323
class LinkServerBinaryRunner(ZephyrBinaryRunner):
2424
'''Runner front-end for NXP Linkserver'''
@@ -95,6 +95,7 @@ def do_add_parser(cls, parser):
9595
@classmethod
9696
def do_create(cls, cfg, args):
9797

98+
print("RUNNER - gdb_port = " + str(args.gdb_port) + ", semih port = " + str(args.semihost_port))
9899
return LinkServerBinaryRunner(cfg, args.device, args.core,
99100
linkserver=args.linkserver,
100101
dt_flash=args.dt_flash,

0 commit comments

Comments
 (0)