This adds simple interface to libjlinkarm.so which will be used to read data from RTT buffer. It was mostly made by trial and error since there is no public documentation for this library so it may lack something, but seems to work fine with few Cortex-M devices I tried.
7ce36e236 monitor: Add interface for J-Link library
monitor/jlink.c | 283 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
monitor/jlink.h | 27 ++++++
2 files changed, 310 insertions(+)