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

nRF91: unable to log using Segger RTT Viewer

I just trying log via Segger RTT viewer, followed the the same procedure as that of serial_lte_modem sample in my new project and could not see logs showing in the viewer.

NOTE: The RTT logging works fine with serial_lte_modem sample

prj.config

# General config
CONFIG_ASSERT=y
CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=3
CONFIG_STACK_SENTINEL=y
CONFIG_CP_LOG_LEVEL_INF=y

# Segger RTT
CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y
CONFIG_UART_CONSOLE=n
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_BACKEND_UART=n

Kconfig

source "Kconfig.zephyr"

menu "TCP/IP Server client"


module = CP
module-str = server client
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config"

endmenu

main.c

#include <logging/log.h>

LOG_MODULE_REGISTER(main, CONFIG_CP_LOG_LEVEL);

int main(void) 
{

    LOG_INF("RTT Log Test\n");
}

Is there anything else i am missing here?

regards

KK

Parents Reply Children
Related