pyrtt-viewer icon indicating copy to clipboard operation
pyrtt-viewer copied to clipboard

Unable to accept input

Open josschne opened this issue 5 years ago • 1 comments

I have an NRF device with CLI over RTT. If I connect using JLinkRTTClient or RTTViewer (on Windows), I can interact with the prompt. However using pyrtt-viewer, the device does not appear to receive input. I can see output coming out, so RTT is connected, but any input is not received by the device.

I attempted this on both Mac OSX (High Sierra) and Windows 10. Both behaved the same.

josschne avatar Dec 27 '18 10:12 josschne

Not sure on which systems this is valid or not, but for others, I fixed this by removing the ".strip()" from my local copy of the _writer function:

def _writer(self):
        while not self._close_event.is_set():
            data = sys.stdin.readline()
            if len(data) > 0:
                self._nrf.rtt_write(self._args.channel, data)
                # Yield
            time.sleep(0.1)

amb-silvertree avatar Sep 30 '22 21:09 amb-silvertree