Not all debug messages coming through

I am using Zephyr with a nRF5340 DK with the nRF Connect for VSCode  Add-In. I am not getting the debug messages I am sending to it unless there is some sort of error and I get the last one.

#include <zephyr/logging/log.h>

LOG_MODULE_REGISTER(mymodule, LOG_LEVEL_DBG);
I put a function at the top of one of my calls:
LOG_DBG("starting...");
printf("testing...\n");
I have these settings in the prj.conf:
CONFIG_LOG=y
CONFIG_DEBUG=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_BACKEND_UART=y
The testing... comes through and eventually the starting... comes through after an error and reboot and some other inf lines from littlefs, but I have a bunch of other LOG_DBG messages that don't come through. I need to see what's happening leading up to the problem.
Parents
  • Hi,

     

    I have a bunch of other LOG_DBG messages that don't come through. I need to see what's happening leading up to the problem.

    Where are these located in code (ie. which module?)?

     

    Note that other modules have kconfig's that needs to be set to *_LOG_LEVEL_DBG (for instance CONFIG_FS_LOG_LEVEL_DBG=y if targeting FS subsys) in order for them to print over the logger.

     

    Could you also share the log output that you are currently seeing?

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    I have a bunch of other LOG_DBG messages that don't come through. I need to see what's happening leading up to the problem.

    Where are these located in code (ie. which module?)?

     

    Note that other modules have kconfig's that needs to be set to *_LOG_LEVEL_DBG (for instance CONFIG_FS_LOG_LEVEL_DBG=y if targeting FS subsys) in order for them to print over the logger.

     

    Could you also share the log output that you are currently seeing?

     

    Kind regards,

    Håkon

Children
Related