application crashes when debug log enabled using CONFIG_NET_LOG

Other Configurations:

prj.conf

# General config
CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=4
CONFIG_STACK_SENTINEL=y
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_NET_LOG=y  #setting this to n stops the problem, but I want to see
# 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
# Application-specific
CONFIG_SLM_LOG_LEVEL_DBG=y
child_secure_partition_manager.conf
CONFIG_SERIAL=n
CONFIG_CONSOLE=n
CONFIG_UART_CONSOLE=n
CONFIG_LOG=y
CONFIG_LOG_BACKEND_UART=n
 
CONFIG_NET_LOG=y  #setting this to n stops the problem, but I want to see detailed logs from mqtt to find out why my device stops getting mqtt messages some times while publishing still works.
More details:
  1. nrf connect sdk 1.3.2
  • Hello Umer, 

    First of all, I assume that there is a reason why you operate on NCS v1.3.2? We are about to release v2.0.0, so upgrading would be a recommended step from our side. 

    Are you seeing any warnings during build that might give you a hint on that the application configuration is no good? 

    Otherwise, it would be good if you could share a full application log starting from device boot until the crash occurs. 

    Thanks & regards, 

    Markus 

Related