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

NRFX_LOG_DEBUG not working

I would simply like to see the debug outputs (NRFX_LOG_DEBUG) the NRFX_TWIM.C module using RTT debugger through Segger J-LINK.

I cannot find any documentation on how to configure this properly nor any posts explaining this. 

Can someone please explain what supporting modules need to be included and what #defines must be set. Please also point to where this is documented if possible.

The current logger-related defines I have are as follows:

#define NRF_LOG_BACKEND_UART_ENABLED 0
#define NRF_LOG_BACKEND_RTT_ENABLED 1
#define NRF_LOG_DEFAULT_LEVEL 4
#define NRF_LOG_DEFERRED 0
#define SEGGER_RTT_CONFIG_BUFFER_SIZE_UP 16384
#define NRFX_TWIM_CONFIG_LOG_ENABLED 1
#define NRFX_TWIM_CONFIG_LOG_LEVEL 4
#define COMMON_CONFIG_LOG_LEVEL 4

Thank you in advance.

Parents
  • I added these two lines and it worked:

    #define TWI_CONFIG_LOG_ENABLED 1
    #define TWI_CONFIG_LOG_LEVEL 4

    Which i found in apply_old_config.h when doing a directory search.

    My new question is: 

    How was anyone supposed to know to do this from looking at the NRFX_TWIM module? What is this file that seems to be confusing everyone because they don't know it's being called? 

    Documentation needs improved in my opinion. 

Reply
  • I added these two lines and it worked:

    #define TWI_CONFIG_LOG_ENABLED 1
    #define TWI_CONFIG_LOG_LEVEL 4

    Which i found in apply_old_config.h when doing a directory search.

    My new question is: 

    How was anyone supposed to know to do this from looking at the NRFX_TWIM module? What is this file that seems to be confusing everyone because they don't know it's being called? 

    Documentation needs improved in my opinion. 

Children
Related