linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ 0/3] Receiving monitor data stream over RTT
@ 2018-02-22  9:20 Andrzej Kaczmarek
  2018-02-22  9:20 ` [PATCH BlueZ 1/3] monitor: Extract TTY data processing to separate function Andrzej Kaczmarek
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Andrzej Kaczmarek @ 2018-02-22  9:20 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Andrzej Kaczmarek

Hi,

Here's patch series which adds support for receiving monitor data stream over
Segger RTT channel. This allows to stream data from embedded device without
need to spare a UART for monitor data and is also much faster. It is now
supported by Apache Mynewt (NimBLE stack), but I believe it can be also added
to other RTOS-es like Zephyr Project.

RTT is handled natively by talking to J-Link via libjlinkarm.so. Since there
is no public documentation for this library, interface was done mostly by
trial and error so it may be lacking something - I tried it with few Cortex-M
devices and it works smoothly.

Both J-Link and RTT needs few configuration parameters to work so I combined
them into two command line options:
  -J --jlink <device>,<interface>,<speed>,<serialno>
  -R --rtt <address>,<area>,<buffer>

<device> - one of devices supported by J-Link (no default)
<interface> - only 'swd' supported for now (default: swd)
<speed> - interface speed (default: 1000)
<serialno> - emu serial number or 0 if not used (detault: 0)
<address> - RTT control block address (default: 0)
<area> - RTT control block search area length (default: 0)
<buffer> - RTT buffer name with monitor data stream (default: monitor)


Andrzej Kaczmarek (3):
  monitor: Extract TTY data processing to separate function
  monitor: Add interface for J-Link library
  monitor: Add support for reading over J-Link RTT

 Makefile.tools    |   3 +-
 monitor/control.c |  87 +++++++++++++----
 monitor/control.h |   1 +
 monitor/jlink.c   | 282 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 monitor/jlink.h   |  27 ++++++
 monitor/main.c    |  30 +++++-
 6 files changed, 409 insertions(+), 21 deletions(-)
 create mode 100644 monitor/jlink.c
 create mode 100644 monitor/jlink.h

-- 
2.16.2


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-02-26 15:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-22  9:20 [PATCH BlueZ 0/3] Receiving monitor data stream over RTT Andrzej Kaczmarek
2018-02-22  9:20 ` [PATCH BlueZ 1/3] monitor: Extract TTY data processing to separate function Andrzej Kaczmarek
2018-02-22  9:20 ` [PATCH BlueZ 2/3] monitor: Add interface for J-Link library Andrzej Kaczmarek
2018-02-22  9:20 ` [PATCH BlueZ 3/3] monitor: Add support for reading over J-Link RTT Andrzej Kaczmarek
2018-02-23  7:00   ` ERAMOTO Masaya
2018-02-23 11:34     ` Andrzej Kaczmarek
2018-02-26 13:59   ` Marcel Holtmann
2018-02-26 15:02     ` Andrzej Kaczmarek
2018-02-22 11:14 ` [PATCH BlueZ 0/3] Receiving monitor data stream over RTT Luiz Augusto von Dentz
2018-02-22 12:20   ` Andrzej Kaczmarek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).