From 4f5a1df1c4ddfbfea9fd46b43ca4ad3f67fd3858 Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Tue, 20 Feb 2018 15:52:49 +0100 Subject: 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 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 --- Makefile.tools | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile.tools') diff --git a/Makefile.tools b/Makefile.tools index 81ed2e30d..7ce05b7ef 100644 --- a/Makefile.tools +++ b/Makefile.tools @@ -42,9 +42,10 @@ monitor_btmon_SOURCES = monitor/main.c monitor/bt.h \ monitor/analyze.h monitor/analyze.c \ monitor/intel.h monitor/intel.c \ monitor/broadcom.h monitor/broadcom.c \ + monitor/jlink.h monitor/jlink.c \ monitor/tty.h monitor_btmon_LDADD = lib/libbluetooth-internal.la \ - src/libshared-mainloop.la $(UDEV_LIBS) + src/libshared-mainloop.la $(UDEV_LIBS) -ldl endif if LOGGER -- cgit v1.2.1