How does SLM use RTT?

How does the slm routine of ncs1.9.1 use rtt log. Below is my configuration:

CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=3

CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_UART_CONSOLE=n
CONFIG_LOG_BACKEND_UART=n

With the default configuration, there should be RTT log output, but nothing happens in the actual window.

Parents Reply
  • How does the slm routine

    What does "slm" stand for, by the way?

    Make sure that you try to connect the RTT viewer after (!) you have started the application.

    Did you try any of the unmodified NCS samples, such as NCS\nrf\samples\bluetooth\peripheral_uart? This uses the RTT backend for logging.

    What HW are you running on?

    Are you sure that your application is using logging at all? I see LOG_CORE_INIT() from your screenshot, but is there anything in your application, e.g. in main.c that indicates that something should be logged?

    BR,

    Edvin

Children
Related