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

Where can I see NRF_LOG output?

I am using nrf51 SDK v.12.1. And I found NRF_LOG_INFO("BLINKY START\n"); where can I find this log? Is this different from SEEGER_WriteString or something?

Parents
  • FormerMember
    0 FormerMember

    The output from NRF_LOG_xxx can be displayed in a terminal (if logging over UART) or in the J-link RTT viewer (logging over RTT).

    The sdk_config.h file --> configuration wizard can be used to choose logging over UART or RTT.

    As you can see in nrf_log_backend_serial.c, logging over RTT uses SEGGER_RTT_xxx functions.

    Update: Use the configuration wizard tab in sdk_config.h to enable RTT and/or UART logging: image description

Reply
  • FormerMember
    0 FormerMember

    The output from NRF_LOG_xxx can be displayed in a terminal (if logging over UART) or in the J-link RTT viewer (logging over RTT).

    The sdk_config.h file --> configuration wizard can be used to choose logging over UART or RTT.

    As you can see in nrf_log_backend_serial.c, logging over RTT uses SEGGER_RTT_xxx functions.

    Update: Use the configuration wizard tab in sdk_config.h to enable RTT and/or UART logging: image description

Children
Related