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

nrf5340 logging issue

I want to add some logging to my nrf5340 net application and I'm having some troubles.

I have the following in my main.c:



#include <logging/log.h>

LOG_MODULE_REGISTER(foo, LOG_LEVEL_DBG);

int main() {

  LOG_INF("hello world");





and the following in my prj.conf file:


CONFIG_GPIO=y
CONFIG_NRFX_DPPI=y
CONFIG_NRFX_NVMC=y

CONFIG_LOG=y
CONFIG_NET_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=3
CONFIG_STACK_SENTINEL=y
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_RING_BUFFER=y

# Segger RTT
CONFIG_USE_SEGGER_RTT=n
CONFIG_RTT_CONSOLE=n
CONFIG_UART_CONSOLE=y
CONFIG_LOG_BACKEND_RTT=n
CONFIG_LOG_BACKEND_UART=y
Parents Reply Children
Related