Skip to content

RTT Interface

An interface that works with SEGGER's Real Time Transfer (RTT) for system monitoring and interactive user I/O in embedded applications.

RTTInterface

Provides an interface to read RTT messages via a connected J-Link. NOTE: When using this class, additional operations via the J-Link are not possible.

Methods:

Name Description
__init__

Create new instance and spawn child process, which will connect to the J-Link.

start
stop

Explicitly kill the child process, which will release the J-Link.

child_process = RTTChildWorker(self.command_input_queue, self.command_output_queue, self.data_output_queue) instance-attribute

command_input_queue = Queue() instance-attribute

command_output_queue = Queue() instance-attribute

data_output_queue = Queue() instance-attribute

outfile = None instance-attribute

outfile_name = outfile instance-attribute

target_cpu = target_cpu instance-attribute

thread_exit_flag = False instance-attribute

__init__(target_cpu, outfile)

Create new instance and spawn child process, which will connect to the J-Link. Target CPU must match the J-Link naming convention (ie, "nRF5340_xxAA_APP")

start()

stop()

Explicitly kill the child process, which will release the J-Link.