diff options
author | Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl> | 2018-02-20 15:52:49 +0100 |
---|---|---|
committer | Szymon Janc <szymon.janc@codecoup.pl> | 2019-10-14 12:12:32 +0200 |
commit | 4f5a1df1c4ddfbfea9fd46b43ca4ad3f67fd3858 (patch) | |
tree | e6ee4fec32d6eb19231a94aec08ec7d4ca925e4e /Makefile.tools | |
parent | 7ce36e236c1bdb1941242b00e1d5c7812749a2de (diff) | |
download | bluez-4f5a1df1c4ddfbfea9fd46b43ca4ad3f67fd3858.tar.gz |
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 (limited to 'Makefile.tools')
-rw-r--r-- | Makefile.tools | 3 |
1 files changed, 2 insertions, 1 deletions
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 |