This patch adds support for reading data over J-Link RTT. It can be used as replacement for TTY when reading from embedded devices since it's much faster and does block a UART. Data format is the same as for TTY. At the moment monitor over RTT is only supported by Apache Mynewt project.
Reading data is done by polling RTT every 1 msec since there is no blocking API to read something from RTT buffer.
To enable reading from RTT, J-Link configuration needs to be passed via command line (all parameters except
In some cases J-Link cannot locate RTT buffer in RAM. In such case RAM area and buffer name should be provided via command line:-R ,,
4f5a1df1c monitor: Add support for reading over J-Link RTT
Makefile.tools | 3 ++-
monitor/control.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
monitor/control.h | 1 +
monitor/main.c | 21 +++++++++++++++++++--
4 files changed, 72 insertions(+), 3 deletions(-)