I'm following the NCS tutorials. I'm targeting the 52840 on the 9160DK board. I'm using SES with NCS1.6.
I'm able to get the hello world to run and the message is out on the serial port. Now I'd like to have RTT for logging but I found it's very confusing to how to get it to work.
I used Project->Config NCS project to enable the RTT option. I'm not sure if this is the only thing needed. Probably not because it doesn't work. I saw others also modify prj.conf to include various options but it doesn't seem conclusive as to what are the necessary changes. They all look different.
I'm wondering if there are tutorial or documents to:
1. how to enable RTT
2. how the logger works in general.
3. How does the configuration (ie KConfig) work? Should I just use SES for that or also need to edit the prj.conf?
Thanks!
My main() is like this:
#include "logging/log.h" LOG_MODULE_REGISTER(main); void main(void) { LOG_INF("Hello World!\n"); }
As to the hardware, I assume it works through the same interface chip on the 9160DK, without needing a dedicated JLink?