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?
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?
Hi,
Unfortunately we don't have any step-by-step tutorials, but the Logger module documentation is relatively thorough.
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.
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.