This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Using Segger RTT viewer to control Nordic NRF52832

Hello, I'm trying to set up a series of remote scripts to test functionality on my hardware. The idea being that I can run a handler on the Nordic device and then control functionality remotely. 

This isn't the final implementation but a key part to assisting with proving functionality on our board.

Essentially I simply want to be able to:

1) Send info to RTT Viewer from Nordic on specific channels

2) Receive info from RTT and handle it to perform functions

I have read documentation which seems a little conflicting of maybe just out of date and relates to a considerable amount of steps to use Segger_RTT but NRF_LOG seems to work fine.

I can so far print info to the RTT viewer terminal using NRF_LOG_INFO().  However using this macro I seem unable to specify a channel.  

I am able to send text from RTT viewer but I have no idea how to get access to the data.  I need to write a handler unless one exists but I've yet to find anything explaining how to do this.  

Any example code or info would be much appreciated.

N

Related