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 <yves.vandervennet@nxp.com>
This commit is contained in:
parent
26973bd054
commit
7b29b66bd5
|
@ -18,7 +18,7 @@ from runners.core import ZephyrBinaryRunner, RunnerCaps
|
|||
|
||||
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'''
|
||||
|
@ -95,6 +95,7 @@ class LinkServerBinaryRunner(ZephyrBinaryRunner):
|
|||
@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,
|
||||
|
|
Loading…
Reference in New Issue