monitor: Add support for reading over J-Link RTT

System Internals / BlueZ - Andrzej Kaczmarek [] - 14 October 2019 10:12 EDT

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 can be skipped to use default value):-J ,,,-J nrf52,683649029

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 ,,-R 0x20000000,0x10000

4f5a1df1c monitor: Add support for reading over J-Link RTT | 3 ++-
monitor/control.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
monitor/control.h | 1 +
monitor/main.c | 21 +++++++++++++++++++--
4 files changed, 72 insertions(+), 3 deletions(-)


  • Share