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

RTT Printing Method for nrf9160

Hello,

I am trying to enable RTT instead of the default UART output of the nrf91dk AT client code example. I am using Segger Embedded Studio V5.34 with Nordic nRF Connect SDKv1.5.1 with nRF Connect Toolchain Version 1.5.1.

The only way I found to get RTT to print anything was manually inserting SEGGER_RTT.c/h..etc source files into each library, which isn't practical, since it doesn't handle all the existing print statements. This isn't a good solution.

I looked at some similar questions:  https://devzone.nordicsemi.com/f/nordic-q-a/50312/how-to-use-rtt-for-debugging-in-nrf9160

But, their techniques don't seem to work here. It isn't clear what exactly needs to be modified and where. For example, if autoconf.h, .config, or prj.conf needs to be modified. It seems that modifying the prj.conf file doesn't change anything. I couldn't find a clear, documented procedure that works yet.

How can I get log statements to print with RTT? 

Thanks.

Parents Reply Children
No Data
Related