Commit: 4f5a1df1c4ddfbfea9fd46b43ca4ad3f67fd3858
Parent: 7ce36e236c1bdb1941242b00e1d5c7812749a2de
Author: Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
Committer: Szymon Janc <szymon.janc@codecoup.pl>
Date: 2019-10-14 13:12:32
Tree: e6ee4fec32d6eb19231a94aec08ec7d4ca925e4e

monitor: Add support for reading over J-Link RTT 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 <device> can be skipped to use default value): -J <device>,<serialno=0>,<interface=swd>,<speed=1000> -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 <address=0x0>,<area=0x1000>,<buffer=monitor> -R 0x20000000,0x10000

Diffstat

M Makefile.tools | 3 ++-
M monitor/control.c | 50 ++++++++++++++++++++++++++++++++++++++++
M monitor/control.h | 1 +
M monitor/main.c | 21 +++++++++++++++++++- -

4 files changed, 72 insertions(+), 3 deletions(-)

View Full Diff | Patch