This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cannot see NRF_LOG_INFO in Segger Embedded Studio

I can find some other topics about this:

Like this one:

https://devzone.nordicsemi.com/f/nordic-q-a/43370/nrf_log_info-and-printf-does-not-work

or this article:

https://westsideelectronics.com/getting-logging-to-work-in-segger-embedded-studio/

But the problem is, I can not find the define:

NRF_LOG_BACKEND_RTT_ENABLED

Should I just replace config_sdk.h with another file with the right defines ?

Using the blinky example.

  • Hi, 

    What version of SDK are you using?

    Are you using SAADC Example? If so, start a terminal emulator like PuTTY and connect to the used COM port to get the log with the following UART settings:

    • Baud rate: 115.200
    • 8 data bits
    • 1 stop bit
    • No parity
    • HW flow control: None

    To get the RTT log, you could enable NRF_LOG_BACKEND_RTT_ENABLED (1) & NRFX_SAADC_CONFIG_LOG_ENABLED (1) and disable NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED (0) in the sdk_config.h to get the log.  

    Please let me know this can help or not. Thanks. 

    -Amanda

  • I tested it with saadc example from SDK 17.1.0 and did the define's you say.

    The application works fine:

    But no NRFX_LOG_INFO outputs, it just skips that line, also when put a debug point over there there is a question mark, probably a missing define ?

    But you are getting the NRFX_LOG_OUTPUT to work ?

  • Hi, 

    Add the following config to sdk_config.h:

    // <e> SAADC_CONFIG_LOG_ENABLED - Enables logging in the module.
    //==========================================================
    #ifndef SAADC_CONFIG_LOG_ENABLED
    #define SAADC_CONFIG_LOG_ENABLED 1
    #endif

    Since this example doesn't use using nrfx_saadc directly, but through nrf_drv_saadc (legacy layer), you have to enable the legacy config. If not, the NRFX_ config will be overwritten by apply_old_config.h. 

    -Amanda

Related