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

getting logging on sdk working

Hi,

      I am working with the examples/peripherals/application template code from SDK 15 against the brf52840-DK board.  I am running Linux as my dev environment I am using the SES IDE. The board has been flashed with the s140 softdevice. I have searched for the answer to this and have found several answers none of which have worked - looks like this has changed over time for one thing and I am probably doing it wrong.

I am wanting to see log messages in either a separate terminal or in the target output pane of the SES IDE - don't care which but the SES would be more convenitent. I have tried setting the options:

#define NRF_LOG_BACKEND_RTT_ENABLED 1

#define NRF_LOG_BACKEND_UART_ENABLED 0

#define NRF_LOG_DEFAULT_LEVEL 4

#define NRF_LOG_DEFERRED 0

#define NRF_LOG_ENABLED 1

These were set in the main.c and when this didn't work, deleted and set in sdk_config.h. I have yet to see any log messages from the code itself, just complie, and download/device programming messages. Have watched the target:output pane in ses, have setup a link using JlinkCommander and JLinkRTTClientl and have even tried a log file by setting it in the project options.

Many thanks in advance

Paul

Related