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

tutorial for setting up nrf_log in eclipse.

Is there a step by step tutorial for setting up nrf_log for eclipse? Or something equivalent for one of the other supported IDE's?

Parents Reply
  • I agree that the documentation is a little daunting. However, if you just want to print some debug strings here and there, then this is all the code you need to initialize the logger:

    NRF_LOG_INIT(NULL);
    NRF_LOG_DEFAULT_BACKENDS_INIT();
    

    Then you can use e.g. NRF_LOG_INFO("String") to print your messages. You also need to tweak some settings in the sdk_config.h file and you can have a look at other examples in the SDK to get a sense of what is needed there.

Children
No Data
Related